Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if
default-jdk-headless
ends up being beyond JDK21 when they finally update?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no
java21-sdk-headless
, there are various outcomes:default-jdk-headless
(current behaviour), you can't use Hazelcast (👎)default-jdk-headless
17
) - Hazelcast works (👍)21
- Hazelcast works (👍)22
is close enough - Hazelcast works (👍)99
), Hazelcast doesn't work (👎)At least this way there's a chance it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes totally agree but if its
>21
than this will break our Java policy and if it doesn't work then we are back to current situationWondering why this was not flagged with PR builder or something? Not sure I fully grasp #237. Is this compile or runtime issue?
I think if we can't guarantee
default-jdk-headless
will confirm to our Java policy than may be just use JDK17?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other alternatives are that:
It's an installation issue (which I guess for this project would be defined as runtime).
When you install Hazelcast, it should install the listed prerequisites as well. But they aren't available, so the installation fails.
But then our JDKs are inconsistent between platforms... (no right answers here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes very true.
May be
Depends: java21-sdk-headless | java17-sdk-headless
so its pinned either way?In Docker we don't set default and I assume we will update all JDK usages when we update our Java policy
Just wondering if there a way to install JDk21 from a different location?
I am just giving my novice 2 cents so lets see what @ldziedziul has to say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is, but as it's not via
apt
I don't think you can tag it as a pre-requisite the same way so not useful for our purposes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs backporting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - already in the description.