Articles in this section

Why am I getting Unexpected batch key returned null 0

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

  1. Enable the configuration parameter batch-without-digests.
  2. 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

Applies To Earliest Version

5.7

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful