jfsii commented on code in PR #3887:
URL: https://github.com/apache/hive/pull/3887#discussion_r1054647497


##########
ql/src/java/org/apache/hadoop/hive/ql/Driver.java:
##########
@@ -261,6 +274,8 @@ private boolean validateTxnList() throws 
CommandProcessorException {
 
             String userFromUGI = DriverUtils.getUserFromUGI(driverContext);
             driverContext.getTxnManager().openTxn(context, userFromUGI, 
driverContext.getTxnType());
+            // this is used by the test framework to more easily generate 
conflicting transactions
+            if (testConflictCB != null) testConflictCB.run();

Review Comment:
   Thanks for the feedback.
   I re-wrote the test using mocking techniques, it turned out much better.
   The approach I took was mostly because I didn't have strong enough 
experience with mocking style tests to understand I could do it this way.



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