Sarah Abbey created GEODE-8115:
----------------------------------
Summary: Transactions failing
Key: GEODE-8115
URL: https://issues.apache.org/jira/browse/GEODE-8115
Project: Geode
Issue Type: Bug
Components: redis
Reporter: Sarah Abbey
Between these two shas:
7ee1042a8393563b4d7655b8bc2d4a77564b91b5 (test passes)
and
15df6a83e315fc9acb73a117b3c74b08eca7b82d (test fails)
test:
{code:java}
/*
* Supported Transaction commands - DISCARD, EXEC, MULTI
*/
protected void checkTransactionCommands() throws ExecutionException,
InterruptedException {
RedisAsyncCommands<String, String> asyncCommands = connection.async();
asyncCommands.multi(); RedisFuture<String> result1 =
asyncCommands.set("key1", "value1");
RedisFuture<String> result2 = asyncCommands.set("key2", "value2");
RedisFuture<String> result3 = asyncCommands.set("key3", "value3");
Log.getLogWriter().info("exec multiple commands as a transaction: " +
asyncCommands);
RedisFuture<TransactionResult> execResult = asyncCommands.exec();
TransactionResult transactionResult = execResult.get();
Log.getLogWriter().info("completed exec multiple commands as a transaction:
" + asyncCommands); String firstResult = transactionResult.get(0);
Log.getLogWriter().info("firstResult = " + firstResult); String
secondResult = transactionResult.get(0);
Log.getLogWriter().info("secondResult = " + secondResult); String
thirdResult = transactionResult.get(0);
Log.getLogWriter().info("thirdResult = " + thirdResult);
}
{code}
{code:java}
Unexpected exception java.util.concurrent.ExecutionException:
io.lettuce.core.RedisCommandExecutionException: ERR Cannot resume transaction,
current thread has an active transaction in threadGroup redisClient {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)