Skip to content

Conversation

JingsongLi
Copy link
Contributor

For the core, it should not see too many Flink Table concepts, such as database and tableName. It only needs to create a Lock.

@JingsongLi
Copy link
Contributor Author

This is second refactor PR for #394

Comment on lines 76 to 84
return new Lock() {
@Override
public <T> T runWithLock(Callable<T> callable) throws Exception {
return callable.call();
}

@Override
public void close() {}
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Just return null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we can return a object to avoid null checking.
I will modify others to remove null checking.

@tsreaper tsreaper merged commit 6886303 into apache:master Nov 28, 2022
@JingsongLi JingsongLi deleted the lock branch January 3, 2024 06:29
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