2
Ich beginne neues Projekt mit Aerospike und wollte MapOperation
testen. Aber alle meine Tests scheitern mit demselben Fehler. HierAerospike Karte Operationen fehlgeschlagen
ist Beispiel für Test
IAerospikeClient client = new AerospikeClientProvider(config).get();
Key key = new Key("test", "other", "other:1");
client.delete(client.getWritePolicyDefault(), key);
Map<Value,Value> inputMap = new HashMap<Value,Value>();
inputMap.put(Value.get(1), Value.get(55));
inputMap.put(Value.get(2), Value.get(33));
// Write values to empty map.
Record record = client.operate(client.getWritePolicyDefault(), key,
MapOperation.putItems(MapPolicy.Default, "mapbin", inputMap));
Und das ist Fehler
com.aerospike.client.AerospikeException: Error Code 4: Parameter error
at com.aerospike.client.command.ReadCommand.parseResult(ReadCommand.java:121)
at com.aerospike.client.command.SyncCommand.execute(SyncCommand.java:57)
at com.aerospike.client.AerospikeClient.operate(AerospikeClient.java:697)
at de.ascendro.f4m.server.AerospikeDaoTest.operateMapPut(AerospikeDaoTest.java:207)
Ich bin mit Aerospike 3.8.2.3 und Aerospike-Java-Client 3.2.4 Benötige ich spezielle Einstellungen für Aerospike oder Client zum Ausführen MapOperation
? Oder mache ich etwas falsch?