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

nvme_gw_server: use dedicated rpc client for pings #19

Merged
merged 1 commit into from
May 23, 2022

Conversation

trociny
Copy link
Contributor

@trociny trociny commented May 19, 2022

We can't use the same client from different threads without some
kind of protection, otherwise one thread may receive a response
for a request sent by another thread.

Signed-off-by: Mykola Golub mykola.golub@clyso.com

We can't use the same client from different threads without some
kind of protection, otherwise one thread may receive a response
for a request sent by another thread.

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
@trociny
Copy link
Contributor Author

trociny commented May 19, 2022

One may trigger this bug e.g. by running our pytest in loop: eventually it will fail (at least in my env).

And although this PR fixes the problem with pings, it seems to me there is a potential issue when concurrent commands are sent from gw clients (e.g. cli) to the gw server, unless grpc_server_max_workers is set to 1. Though I have not investigated this case yet.

@trociny trociny requested a review from idryomov May 19, 2022 07:11
@trociny
Copy link
Contributor Author

trociny commented May 19, 2022

@sskaur @PepperJo

Copy link

@PepperJo PepperJo left a comment

Choose a reason for hiding this comment

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

LGTM. Can you please create an issue for the multiple threads problem?

@trociny
Copy link
Contributor Author

trociny commented May 19, 2022

@PepperJo I am going to create an issue for the multiple threads problem after I confirm it is indeed the issue. Right now it is just a suspicion.

@idryomov idryomov merged commit 0a5b166 into ceph:devel May 23, 2022
@epuertat epuertat added this to the Milestone 2 milestone Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants