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

Campaign API throws different exceptions in same scenario #1131

Open
KuZon opened this issue Mar 24, 2023 · 9 comments
Open

Campaign API throws different exceptions in same scenario #1131

KuZon opened this issue Mar 24, 2023 · 9 comments

Comments

@KuZon
Copy link

KuZon commented Mar 24, 2023

Versions

  • etcd: 3.5.9
  • jetcd: 0.7.3
  • java: Corretto-11.0.18.10.1

Describe the bug
campaignResponse = electionClient.campaign(electionName, leaseId, proposal) .get(writeTimeOut, TimeUnit.SECONDS);
There is a leader already available for given electionName. We are doing this call as part of our code from another identical instance, sometimes it throws TimeoutException and some thing an exception which contains etcdserver: invalid auth token. Before upgrading to server 3.5.9 , it was consistently throwing TimeoutException. I

To Reproduce
In two separate programs, run above line. One after another, some times it will throw timeout and sometimes invalid auth token error

Expected behavior
This should be supported from client in a better way to understand if there is a server error or we are just timing out as there is a leader already available.

@KuZon KuZon changed the title Campaign API throws inconsistent exceptions in same scenario Campaign API throws different exceptions in same scenario Mar 24, 2023
@lburgazzoli
Copy link
Collaborator

@KuZon do you have time to work on a PR ?

@KuZon
Copy link
Author

KuZon commented Mar 27, 2023

Yes, please guide. I can spend some time.

@KuZon
Copy link
Author

KuZon commented Apr 20, 2023

@lburgazzoli any update on this ?

@lburgazzoli
Copy link
Collaborator

No sorry, I don't have much time at this stage. A PR would be more than welcome

@lburgazzoli
Copy link
Collaborator

@KuZon can you provide instructions to reproduce this problem consistently ?

@lburgazzoli
Copy link
Collaborator

@KuZon there have been some subtle changes in recent etcd version which should have been fixed.
can you pleas try again using the latest commit ?

@liangyuanpeng
Copy link
Contributor

liangyuanpeng commented Jun 10, 2023

Have some code for reproduce it would be great.

@lburgazzoli
Copy link
Collaborator

@KuZon any feedback ? this is issue will be closed soon without any feedback

@lburgazzoli
Copy link
Collaborator

@KuZon ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants