-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Update transport version docs #133862
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
Update transport version docs #133862
Changes from 1 commit
f576267
4ef84a4
ee77afb
04335d0
29f2aa7
bc7c9ac
482a031
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,21 @@ In order to ensure consistency and robustness, all new `TransportVersion`s | |
| must first be created in the `main` branch and then backported to the relevant | ||
| release branches. | ||
|
|
||
| ### Internal state files | ||
|
|
||
| The Elasticsearch server jar contains resource files representing each | ||
| transport version. These files are loaded at runtime to construct | ||
| `TransportVersion` instances. Since each transport version has its own file | ||
| they can be backported without conflict. | ||
|
|
||
| Additional resource files represent the latest transport version known on | ||
| each release branch. If two transport versions are added at the same time, | ||
| there will be a conflict in these internal state files, forcing one to be | ||
| regenerated to resolve the conflict before merging to `main`. | ||
|
|
||
| All of these internal state files are managed by gradle tasks; they should | ||
| not be edited directly. | ||
|
|
||
| _Elastic developers_ - please see corresponding documentation for Serverless | ||
| on creating transport versions for Serverless changes. | ||
|
|
||
|
|
@@ -95,7 +110,7 @@ needed to backport to `8.19` you would run (in `main`): | |
| ./gradlew generateTransportVersion --name=my_tv --backport-branches=9.1,8.19 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see the value of making As a user, I'd like to say something like
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a fair point, but I would like to start without this, and add it in the future (it's a bit of complexity to the task implementation). The vast majority of the time developers can just let CI regenerate the transport version based on version labels.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Works for me! |
||
|
|
||
| In the above case CI will not know what transport version name to update, so you | ||
| must update the transport version manually. After merging the updated transport | ||
| must run the generate task again as described. After merging the updated transport | ||
| version it will need to be backported to all the applicable branches. | ||
rjernst marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ### Resolving merge conflicts | ||
|
|
||
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.
This is perfect. It's exactly what I had in mind.