masahitojp commented on a change in pull request #16287:
URL: https://github.com/apache/beam/pull/16287#discussion_r778839673



##########
File path: 
sdks/java/io/redis/src/main/java/org/apache/beam/sdk/io/redis/RedisIO.java
##########
@@ -740,22 +739,21 @@ private void writeUsingDecrBy(KV<String, String> record, 
Long expireTime) {
         String key = record.getKey();
         String value = record.getValue();
         long decr = Long.parseLong(value);
-        pipeline.decrBy(key, decr);
+        transaction.decrBy(key, decr);
 
         setExpireTimeWhenRequired(key, expireTime);
       }
 
       private void setExpireTimeWhenRequired(String key, Long expireTime) {
         if (expireTime != null) {
-          pipeline.pexpire(key, expireTime);
+          transaction.pexpire(key, expireTime);
         }
       }
 
       @FinishBundle
       public void finishBundle() {
-        if (pipeline.isInMulti()) {
-          pipeline.exec();
-          pipeline.sync();
+        if (transaction != null) {

Review comment:
       I updated!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to