Skip to content

[FLINK-38061][mysql] Make defensive copies of collections in Snapshot PendingSplitsState to prevent concurrent modification issues#4379

Merged
lvyanquan merged 1 commit into
apache:masterfrom
Hisoka-X:FLINK-38061-fix-split-modify-error
Apr 21, 2026
Merged

[FLINK-38061][mysql] Make defensive copies of collections in Snapshot PendingSplitsState to prevent concurrent modification issues#4379
lvyanquan merged 1 commit into
apache:masterfrom
Hisoka-X:FLINK-38061-fix-split-modify-error

Conversation

@Hisoka-X
Copy link
Copy Markdown
Member

This close https://issues.apache.org/jira/browse/FLINK-38061.

This pull request addresses potential issues with concurrent modification in the SnapshotPendingSplitsState class by making defensive copies of input collections in its constructor. This change ensures the internal state is protected from external changes and improves the robustness of the code.

@Hisoka-X
Copy link
Copy Markdown
Member Author

cc @lvyanquan

…PendingSplitsState to prevent concurrent modification issues
@github-actions github-actions Bot added the base label Apr 16, 2026
@Hisoka-X Hisoka-X force-pushed the FLINK-38061-fix-split-modify-error branch from 88b7afa to bdc5ed5 Compare April 16, 2026 12:10
@Hisoka-X Hisoka-X closed this Apr 16, 2026
@Hisoka-X Hisoka-X reopened this Apr 16, 2026
Copy link
Copy Markdown
Contributor

@lvyanquan lvyanquan left a comment

Choose a reason for hiding this comment

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

+1.

@lvyanquan lvyanquan merged commit eb3cdc0 into apache:master Apr 21, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants