List_remove_by_values fails with Error Code 12: Bin type error


#1

I’m using java client to perform list operations, however, list_remove_by_values fails with

com.aerospike.client.AerospikeException: Error Code 12: Bin type error

So, before insertion bin1 is empty. After insertion is {bin1=[2]}, and then the deletion fails The deletion fails to remove both by single and multiple values.

aerospikeClient.operate(
      null,
      new Key("test", "someset", "key"),
      ListOperation.appendItems("bin1", Collections.singletonList(Value.get(2)))
    ) //OK

    aerospikeClient.operate(
      null,
      new Key("test", "someset", "key"),
      ListOperation.removeByValueList("bin1", Collections.singletonList(Value.get(2)), ListReturnType.NONE)
    ) //com.aerospike.client.AerospikeException: Error Code 12: Bin type error

Aerospike server 3.9.1.1, client 3.3.2 or 4.1.8 (both clients can reproduce errors)

UPD: with Aerospike server 4.0.0.4 everything is fine, seems like a fixed issue


#2

Good to hear the issue is resolved in 4.0.0.4. Did you upgrade from 3.9.1.1 to 4.0.0.4? If so, why did you choose 4.0.0.4 over newer releases?


#3

Simply because 4.0.0.4 is on the production environment, and 3.9.1.1 runs locally for testing purposes.


#4

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.