Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blackhole: remove synchronization of tables in BlackHoleMetadata #3679

Closed
wants to merge 1 commit into from

Conversation

kokosing
Copy link
Contributor

blackhole: remove synchronization of tables in BlackHoleMetadata

Synchronization (atomic remove and put into concurrent hash map of
tables) is not needed, it does not guarantee that concurrent operations
on metadata can be run safely (e.g. rename table with drop table).

Simple approach of fixing that would be to try implement transaction-like
metadata storage with using ConnectorSession.getStartTime() as transaction id (txid)
Then session with higher txid would need to wait for all
operations with lower txid to finish.

Ticket: #3647

Test Plan: none

Synchronization (atomic remove and put into concurrent hash map of
tables) is not needed, it does not guarantee that concurrent operations
on metadata can be run safely (e.g. rename table with drop table).

Simple approach of fixing that would be to try implement transaction-like
metadata storage with using ConnectorSession.getStartTime() as transaction id (txid)
Then session with higher txid would need to wait for all
operations with lower txid to finish.

Ticket: prestodb#3647

Test Plan: none

Reviewers: losipiuk
@martint
Copy link
Contributor

martint commented Oct 11, 2015

Merged, thanks!

@martint martint closed this Oct 11, 2015
@kokosing kokosing deleted the feature_bh-race-condition branch November 20, 2015 12:19
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