Fixed - hdel wasn't used during remote service task removal. #1363

pull/1423/head
Nikita 7 years ago
parent d9e57be29e
commit dece260e2b

@ -92,7 +92,7 @@ public class RedissonRemoteService extends BaseRemoteService implements RRemoteS
protected RFuture<Boolean> removeAsync(String requestQueueName, RequestId taskId) {
return commandExecutor.evalWriteAsync(name, LongCodec.INSTANCE, RedisCommands.EVAL_BOOLEAN,
"redis.call('lrem', KEYS[1], 1, ARGV[1]); "
+ "redis.call('hset', KEYS[2], ARGV[1]);"
+ "redis.call('hdel', KEYS[2], ARGV[1]);"
+ "return 1;",
Arrays.<Object>asList(requestQueueName, requestQueueName + ":tasks"),
taskId.toString());

Loading…
Cancel
Save