pvary commented on code in PR #3367:
URL: https://github.com/apache/hive/pull/3367#discussion_r896634780


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/OptimisedBootstrapUtils.java:
##########
@@ -90,6 +98,59 @@ public static boolean checkFileExists(Path dumpPath, 
HiveConf conf, String fileN
     return fs.exists(new Path(dumpPath, fileName));
   }
 
+  public static void prepareAbortTxnsFile(List<NotificationEvent> 
notificationEvents, Set<Long> allOpenTxns,
+                                          Path dumpPath, HiveConf conf) throws 
SemanticException {
+    if (notificationEvents.size() == 0) {
+      return;
+    }
+    Set<Long> txnsOpenedPostCurrEventId = new HashSet<>();
+    MessageDeserializer deserializer = 
ReplUtils.getEventDeserializer(notificationEvents.get(0));
+    for (NotificationEvent event: notificationEvents) {
+      if (event.getEventType().equals(MessageBuilder.OPEN_TXN_EVENT)) {

Review Comment:
   nit: maybe a switch instead of the `else if` statements?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to