Skip to content

[Transform] Remove BWC Code#140617

Merged
prwhelan merged 4 commits intoelastic:mainfrom
prwhelan:1793
Jan 22, 2026
Merged

[Transform] Remove BWC Code#140617
prwhelan merged 4 commits intoelastic:mainfrom
prwhelan:1793

Conversation

@prwhelan
Copy link
Copy Markdown
Member

Since 8.2, Transform now calls an action to get the checkpoint info, rather than calculating it all locally. Now that 9.x only supports 8.19.x, this code is no longer in use.

Since 8.2, Transform now calls an action to get the checkpoint info,
rather than calculating it all locally. Now that 9.x only supports
8.19.x, this code is no longer in use.
@prwhelan prwhelan added >refactoring :ml/Transform Transform Team:ML Meta label for the ML team v9.4.0 labels Jan 13, 2026
@prwhelan prwhelan requested a review from Copilot January 13, 2026 21:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes backwards compatibility code from the Transform checkpoint functionality that was needed to support clusters older than version 8.2. Since 9.x only supports 8.19.x and later, this legacy code path is no longer necessary.

Changes:

  • Removed BWC checkpoint extraction logic that handled clusters without the GetCheckpointAction API
  • Removed test cases covering the legacy checkpoint extraction methods
  • Cleaned up unused imports and simplified the checkpoint retrieval flow

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
DefaultCheckpointProvider.java Removed BWC fallback logic, the extractIndexCheckPoints method, and the getCheckpointsFromOneClusterBWC method; simplified the checkpoint retrieval to only use the GetCheckpointAction API
TransformsCheckpointServiceTests.java Removed test methods for the deprecated extractIndexCheckPoints function
DefaultCheckpointProviderTests.java Removed test case for handling shard failures in the BWC code path and the associated mock helper method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@prwhelan prwhelan marked this pull request as ready for review January 14, 2026 17:57
@prwhelan prwhelan requested a review from valeriy42 January 14, 2026 17:58
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link
Copy Markdown
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM

@prwhelan prwhelan removed the request for review from valeriy42 January 21, 2026 21:11
@prwhelan prwhelan enabled auto-merge (squash) January 21, 2026 21:12
@prwhelan prwhelan merged commit d44a49b into elastic:main Jan 22, 2026
35 checks passed
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Apr 3, 2026
In elastic#140617, we had deleted BWC code to check checkpoint info. This test
pattern is no longer needed to verify that behavior.

Resolve elastic#141112
prwhelan added a commit that referenced this pull request Apr 8, 2026
In #140617, we had deleted BWC code to check checkpoint info. This test
pattern is no longer needed to verify that behavior.

Resolve #141112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml/Transform Transform >refactoring Team:ML Meta label for the ML team v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants