Skip to content

[FLINK-39162][checkpoints] Disable UC for CustomPartitioner#27731

Open
rkhachatryan wants to merge 1 commit intoapache:masterfrom
rkhachatryan:f39162
Open

[FLINK-39162][checkpoints] Disable UC for CustomPartitioner#27731
rkhachatryan wants to merge 1 commit intoapache:masterfrom
rkhachatryan:f39162

Conversation

@rkhachatryan
Copy link
Contributor

No description provided.

@flinkbot
Copy link
Collaborator

flinkbot commented Mar 3, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Copy link
Member

@1996fanrui 1996fanrui left a comment

Choose a reason for hiding this comment

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

Thanks @rkhachatryan for fix!

The original purpose of FLINK-39162 is to support UC for CustomPartitioner, because it has been supported partially and that is why downscale works.

I agree to disable it explicitly first since it has potential bugs. And it could be improved in the future if needed.

@rkhachatryan
Copy link
Contributor Author

Thanks for the review!

The original purpose of FLINK-39162 is to support UC for CustomPartitioner, because it has been supported partially and that is why downscale works.

I don't think that's possible but maybe I'm missing something.

Comment on lines 64 to 67
// fully rely on filtering downstream
// note that custom partitioners are not officially supported - the user has to force
// rescaling in that case, we assume that the custom partitioner is deterministic
return SubtaskStateMapper.FULL;
Copy link
Member

Choose a reason for hiding this comment

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

It seems unaligned checkpoint could be enabled for custom partitioner when setForceUnalignedCheckpoints is enabled.

disableUnalignedCheckpoints(); will disable UC thoroughly.

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.

3 participants