Skip to content

Conversation

@jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Aug 13, 2025

This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial transport versions without adding confusion to latest.

ES-12401

@jdconrad jdconrad requested a review from a team as a code owner August 13, 2025 22:45
@jdconrad jdconrad added :Core/Infra/Transport API Transport client API >refactoring auto-backport Automatically create backport pull requests when merged v9.2.0 v8.18.6 v9.0.6 v9.1.3 v8.19.3 labels Aug 13, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Aug 13, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@jdconrad
Copy link
Contributor Author

@elasticmachine run "elasticsearch-ci/8.18.6 / Part 3 / bwc-snapshots"

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a couple small nits

String component,
String path,
boolean nameInFile,
boolean ignoreName,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe flip this to positive logic, like "recordName" or "captureName"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to isNamed

+ name
+ "];"
+ "\nknown names ["
+ VersionsHolder.ALL_VERSIONS_BY_NAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want this permanently or was it only for debugging?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about keeping this at least until we are further along, but decided to remove it unless we need it again.

if (nameInFile) {
name = parts[0];
} else {
name = path.substring(path.lastIndexOf('/') + 1, path.length() - 4);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: I'm not a fan of "magic numbers" (4) here or elsewhere, I'd rather this reference a constant if only purely to improve readability and maintainability. Not blocking - your call.

@jdconrad
Copy link
Contributor Author

@elasticsearchmachine run elasticsearch-ci/part-1

@jdconrad
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/part-3

@jdconrad jdconrad merged commit bde4004 into elastic:main Aug 15, 2025
33 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts
9.1
8.19 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 132891

jdconrad added a commit to jdconrad/elasticsearch that referenced this pull request Aug 15, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial 
transport versions without adding confusion to latest.

ES-12401
jdconrad added a commit to jdconrad/elasticsearch that referenced this pull request Aug 15, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401
elasticsearchmachine pushed a commit that referenced this pull request Aug 15, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial 
transport versions without adding confusion to latest.

ES-12401
jdconrad added a commit to jdconrad/elasticsearch that referenced this pull request Aug 15, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401
jdconrad added a commit to jdconrad/elasticsearch that referenced this pull request Aug 15, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401
javanna pushed a commit to javanna/elasticsearch that referenced this pull request Aug 18, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial 
transport versions without adding confusion to latest.

ES-12401
elasticsearchmachine pushed a commit that referenced this pull request Aug 18, 2025
* Update transport version directory structure (#132891)

This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401

* fix gitignore

* remove extraneous newline

* remove extraneous initial file

* revert initial change

* migrate ml_rollover_legacy_indices transport version (#133008)
rjernst pushed a commit that referenced this pull request Aug 19, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401
rjernst pushed a commit that referenced this pull request Aug 19, 2025
This changes the directory structure for transport version files to the following:

/transport/latest
/transport/definitions/named
/transport/definitions/initial
/transport/definitions/manifest.txt

This allows manifest to be placed in a location for named and initial
transport versions without adding confusion to latest.

ES-12401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending :Core/Infra/Transport API Transport client API >refactoring Team:Core/Infra Meta label for core/infra team v8.18.6 v8.19.3 v9.0.6 v9.1.3 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants