Skip to content

Removes coordinator cancel RPC#6243

Merged
keith-turner merged 3 commits intoapache:mainfrom
keith-turner:remove-coord-cancel
Mar 25, 2026
Merged

Removes coordinator cancel RPC#6243
keith-turner merged 3 commits intoapache:mainfrom
keith-turner:remove-coord-cancel

Conversation

@keith-turner
Copy link
Contributor

Modified the command that calls this to instead reach out directly to the compactor. This change is made in support of #6217, it removes a useage of the running cahce and it simplifies the coordinators RPCs.

Modified the command that calls this to instead reach out directly to
the compactor.  This change is made in support of apache#6217, it removes a
useage of the running cahce and it simplifies the coordinators RPCs.
@keith-turner keith-turner added this to the 4.0.0 milestone Mar 24, 2026
System.out.println("Cancel sent to coordinator for " + ecid);

try (var tablets =
context.getAmple().readTablets().forLevel(Ample.DataLevel.USER).fetch(ECOMP).build()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be useful to put this code that gets the ecomp information from the metadata table into a method in ExternalCompactionUtil. There is a method called getRunningCompactions on the Coordinator. You could use this new method in its place when you remove the RunningCache.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved the code into ExternalCompactionUtil

@keith-turner keith-turner merged commit e786409 into apache:main Mar 25, 2026
9 checks passed
@keith-turner keith-turner deleted the remove-coord-cancel branch March 25, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants