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