aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
432 stars 198 forks source link

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

Open bysoul opened 6 months ago

bysoul commented 6 months ago

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 https://github.com/aerospike/aerospike-client-go/blob/7022c84b9e2d595abb74d4cfb0f7cab84f3bf1dd/command.go#L2781, 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 https://github.com/aerospike/aerospike-client-go/blob/7022c84b9e2d595abb74d4cfb0f7cab84f3bf1dd/command.go#L2604 Please take a look for this behavior, thanks a lot. Best Regards

khaf commented 6 months ago

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

bysoul commented 6 months ago

Hi, This issue was encountered when I used PutBins. Batch Read was not tested. Best Regards