You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (Jira)" <ji...@apache.org> on 2020/08/13 17:31:00 UTC
[jira] [Resolved] (GEODE-8115) Redis Transactions (multi) failing
[ https://issues.apache.org/jira/browse/GEODE-8115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darrel Schneider resolved GEODE-8115.
-------------------------------------
Fix Version/s: 1.14.0
Resolution: Fixed
The redis transactional commands have been removed from 1.14
> Redis Transactions (multi) failing
> ----------------------------------
>
> Key: GEODE-8115
> URL: https://issues.apache.org/jira/browse/GEODE-8115
> Project: Geode
> Issue Type: Bug
> Components: redis
> Reporter: Sarah Abbey
> Priority: Major
> Fix For: 1.14.0
>
>
> 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)