Problem Description
2022-02-14 18:10:56.006 ERROR com.cache.AerospikeService Error Code -2: Unexpected batch key returned: null,,0
Explanation
This error happens because the server is not returning the digests anymore for batch transactions. You would have to explicitly configure the client. Refer to the 5.7 server release notes.
The configuration parameter batch-without-digests, now defaults to true, is deprecated and will be removed in six months. Customers using clients older than a year (around the time of Server 4.9 which introduced batch-without-digests) will now have to explicitly set the batch-without-digests configuration item to false.
Solution
- Enable the configuration parameter batch-without-digests.
- Double check that your client version meets the minimum client version requirements. To use batch-without-digests, the minimum client versions required are as follows:
- Java client version 4.4.5
- C client version 4.6.6
- C# client version 3.9.0
- PHP client version 7.4.2.
- Python client version 3.9.0.
- Node.js client version 3.12.0