1

I am facing an issue where aerospike read is stale .

Two thread is trying to update the record with generation id using operate API.

Thread 1 has updated the record and increased the generation id by one. verified this through reading the record again via Operate API. Wherein Thread2 read the same record with updated generation id (increased by Thread1) but the bins were not updated. How it is possible that generation id is changed but bins are not updated ? there are no other updates happened in between the operations ?

  • 1
    That shouldn't be possible since the record is held under lock during the transaction. Is there any caching between the app and server? Can you share the code to reproduce this issue? – kporter Nov 01 '21 at 16:39
  • Application 1 is written in java and using the client I am reading the record updating the record and reading the record again from the operator API. Application2 is written in golang which is working on the same record. its does read the record via header api . update the record and read the record again from Operator API. Here application 1 has updated the record and applciation2 has read with updated generation id but the record was not updated . – anil kumawat Nov 03 '21 at 07:47
  • @kporter can you help me on this ? – anil kumawat Nov 08 '21 at 11:14
  • @kporter anything here? – anil kumawat Nov 14 '21 at 12:25
  • 1) Can you provide the client versions you are using (e.g. Java 5.1.9). 2) Can you provide the code for the update and read methods? 3) Are there any other apps updating these records? – kporter Nov 16 '21 at 22:20

0 Answers0