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

Not retry when receive error: Partition not available (code 11) #426

Open
bysoul opened this issue Mar 28, 2024 · 2 comments
Open

Not retry when receive error: Partition not available (code 11) #426

bysoul opened this issue Mar 28, 2024 · 2 comments

Comments

@bysoul
Copy link

bysoul commented Mar 28, 2024

Hi,
I'm using aerospike go client to write kv.
When the kv is being written, aerospike cluster starts to roll its nodes, the client then get err: Partition not available.
At

return errChain.setInDoubt(ifc.isRead(), cmd.commandWasSent)
, the client will always return this err because it is not a network err. And the client has no chance to make ptn.sequence++ to change partition id at
if !ifc.prepareRetry(ifc, isClientTimeout || (err != nil && err.Matches(types.SERVER_NOT_AVAILABLE))) {

Please take a look for this behavior, thanks a lot.
Best Regards

@khaf
Copy link
Collaborator

khaf commented Apr 2, 2024

Hi, thanks for your report. Just to make sure: Are you encountering this issue in batch reads?

@bysoul
Copy link
Author

bysoul commented Apr 4, 2024 via email

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

2 participants