kasakrisz commented on code in PR #5559:
URL: https://github.com/apache/hive/pull/5559#discussion_r1872978819


##########
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java:
##########
@@ -2805,7 +2793,7 @@ public void testDynPartUpdateWithAborts() throws 
Exception {
     
hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_TEST_MODE_FAIL_LOAD_DYNAMIC_PARTITION,
 true);
     runStatementOnDriverWithAbort("update " + Table.ACIDTBLPART + " set b=a+2 
where a<5");
     
hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_TEST_MODE_FAIL_LOAD_DYNAMIC_PARTITION,
 false);
-    verifyDeltaDirAndResult(2, Table.ACIDTBLPART.toString(), "p=p1", 
resultData1);
+    verifyDeltaDirAndResult(3, Table.ACIDTBLPART.toString(), "p=p1", 
resultData1);

Review Comment:
   In this test we make the update statement fail explicitly by setting 
`HIVE_TEST_MODE_FAIL_LOAD_DYNAMIC_PARTITION` to `true`.
   With Tez the jobs has a chance to finish their work and both the delta and 
delete delta directories and buckets are written hence we end up with 3 deltas 
and 1 delete delta.
   With MR the insert job fails before creating the delta directory so we end 
up with 2 deltas only.
   The txn is marked failed and rolled back with both execution engines.



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to