-
Notifications
You must be signed in to change notification settings - Fork 59
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
rbd-target-api: concurrent requests are not supported #261
Comments
Sorry for late. What do you mean modified randomly ? BTW, have you seen any issue ? Currently when changing the |
Yes, this exclusive lock cannot lock concurrent requests.
I think the cause of the problem:
|
Currently the sequence is: 1, exclusive lock So for the step 3 in your picture, the exclusive lock should have already been acquired. And also for each sections, such as for:
We can see that it's auth is |
Yes, we can test it. Similar configuration file errors often occur when concurrently accessing different nodes rbd-target-api.
The following are two scripts that simulate concurrent operation of rbd-target-api services on different nodes and add luns to the same target. (It is very easy to reproduce the problem)
access rbd-target-api-2
|
Cool, so it's a bug IMO. |
I think this problem is very difficult to fix, it involves design issues and changes will be huge. |
Hi everyone,
When two or more clients request rbd-target-api at the same time, the configuration file gateway.conf will be modified randomly.
When used at scale, performance is slow, will the community support concurrency?
The text was updated successfully, but these errors were encountered: