rvballada commented on code in PR #22932:
URL: https://github.com/apache/beam/pull/22932#discussion_r995438872


##########
sdks/java/io/jms/src/main/java/org/apache/beam/sdk/io/jms/JmsIO.java:
##########
@@ -582,29 +608,85 @@ public long getTotalBacklogBytes() {
     }
 
     @Override
-    public void close() throws IOException {
+    public void close() {
+      doClose();
+    }
+
+    @SuppressWarnings("FutureReturnValueIgnored")
+    private void doClose() {
+      if (active.get()) {
+        try {
+          closeAutoscaler();
+          closeConsumer();
+          ScheduledExecutorService executorService = 
Executors.newSingleThreadScheduledExecutor();

Review Comment:
   Ok



-- 
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