-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use version-specific documentation link in jvm.options file #76323
Use version-specific documentation link in jvm.options file #76323
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
@DaveCTurner one thing that just occurred to me after creating this PR is that we might run into issues when folks upgrade, but keep their old |
Thanks for addressing this Mark. I think it's better to link to the docs that correspond with the file as originally installed (i.e. what you've done here). It's also fairly common to install older versions afresh, and having a fresh install link to the wrong docs will cause more of a surprise than accumulating cruft through upgrades. We should know that the version-specific link will continue to exist even if we move things around in newer versions, and the page does warn you that it's not the latest version at the top, with facilities to choose the same page for a different version, so I think folks will get to the right place in the end. |
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.
I figured if this didn't work (e.g. we spelled project.minor.version
differently in the two places) then we wouldn't be able to build a distribution. But then I tried it and discovered that it didn't, it just left the mis-spelled @project.minor.vesrion@
literally in the file. Should we be failing the build on that?
Also I think we should make https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html
be version-specific too.
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.
lgtm. would be indeed great if we could fail the build if a token is not been replaced, but as we're using ReplaceToken filter I don't see how to do that in a straight forward fashion.
Acked, ok we'll take the risk of typos here then. I still think we should fix the link to |
💔 Backport failed
To backport manually run |
…76323) # Conflicts: # distribution/src/config/jvm.options
We use a hard-coded link to the "current" documentation on Java heap settings in our
jvm.options
file which may very well be out of date with the corresponding version of Elasticsearch the file is coming from.Closes #65808