Skip to content

Flink: Add lockFactory open in LockRemover for table maintenance - #12900

Merged
pvary merged 3 commits into
apache:mainfrom
Guosmilesmile:add_lockremove_open
Apr 29, 2025
Merged

pvary merged 3 commits into
apache:mainfrom
Guosmilesmile:add_lockremove_open

Conversation

@Guosmilesmile

@Guosmilesmile Guosmilesmile commented Apr 26, 2025 •

Copy link
Copy Markdown
Contributor

In LockRemover, I noticed we missed lockFactory.open() before this.lock = lockFactory.createLock(). This could lead to an NPE since the factory isn't initialized and we have to close lock after (similar to the pool in jdbcFactory).

This pr is aim to add the init of lockFactory when LockRemover init.

@github-actions github-actions Bot added the flink label Apr 26, 2025
@pvary
pvary merged commit e1ab425 into apache:main Apr 29, 2025
@pvary pvary changed the title Flink: Add lockFactory open in LockRemover Flink: Add lockFactory open in LockRemover for table maintenance Apr 29, 2025
@Guosmilesmile

Copy link
Copy Markdown
Contributor Author

@pvary Thanks for the review ! I will prepare the backport to the other version later.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants