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

WT_DUPLICATE_KEY does not cause other threads to roll back #120

Open
JackLiJXL opened this issue Jul 22, 2022 · 2 comments
Open

WT_DUPLICATE_KEY does not cause other threads to roll back #120

JackLiJXL opened this issue Jul 22, 2022 · 2 comments

Comments

@JackLiJXL
Copy link
Contributor

this may result in inconsistent behaviour in the following case:
read_optimized = false
node a, node b already exist in database

add_edge(a, b)
delete_node(a)

called concurrently

add_edge(a, b) will not cause delete_node(a) to roll back in this case, a possible outcome when threads finish executing is (a, b) is added but a no longer exists

@JackLiJXL
Copy link
Contributor Author

fix: get and put back the same value with update on duplicate key error

@JackLiJXL
Copy link
Contributor Author

need further testing to determine if this is a real problem

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

No branches or pull requests

1 participant