2
我正在開始與Aerospike的新項目,並且想測試MapOperation
。但是,我所有的測試都失敗了,出現同樣的錯Aerospike地圖操作失敗
下面是示例測試
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));
的這是錯誤
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)
我使用塞式3.8.2.3和塞式Java客戶端3.2.4 我需要爲塞式或特定設置客戶端運行MapOperation
? 或者我做錯了什麼?