aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

ExecuteTask times out in v4.x #79

Closed deepakprabhakara closed 7 years ago

deepakprabhakara commented 7 years ago

The following code that worked fine in v3.x starts to timeout in v4.x. You don't even need any data to replicate this. Looks like something wrong in the changes to ExecuteTask?


        stmt.setNamespace("ns");
        stmt.setSetName("set");
        stmt.setBinNames("bin");
        stmt.setFilters(Filter.equal("account", "dummy"));

        WritePolicy policy = new WritePolicy();
        policy.consistencyLevel = ConsistencyLevel.CONSISTENCY_ALL;
        policy.commitLevel = CommitLevel.COMMIT_ALL;

        ExecuteTask task = as.execute(policy, stmt, "my_lua_udf", "delete_account");
        task.waitTillComplete(100, 1000);```
BrianNichols commented 7 years ago

It's broken. We will issue a new java client release soon.

BrianNichols commented 7 years ago

Java client 4.0.2 has been released which fixes the problem.

http://www.aerospike.com/download/client/java/4.0.2/