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

Potential deadlock caused by concurrent sync calls #810

Open
wangvsa opened this issue Mar 19, 2024 · 0 comments
Open

Potential deadlock caused by concurrent sync calls #810

wangvsa opened this issue Mar 19, 2024 · 0 comments

Comments

@wangvsa
Copy link
Collaborator

wangvsa commented Mar 19, 2024

Describe the problem you're observing

I'm observing some TIMEOUT errors when trying to stage-in many files simultaneously.
It seems that concurrent unifyfs_sync() may cause deadlock on the server side.
After some investigations, I found the server side is blocking at the process_pending_sync call in this case:

client A on server 0 --> write/sync file 1 --> owner is server 1
client B on server 1 --> write/sync file 2 --> owner is server 0

if ((ret == UNIFYFS_SUCCESS) && !is_owner) {
/* send the combined list to the owner */
ret = unifyfs_invoke_add_extents_rpc(gfid, total_extents,
combined_extents);
}

@MichaelBrim Is this the cause? Any idea how to fix this?

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