tanishq-chugh commented on code in PR #5404:
URL: https://github.com/apache/hive/pull/5404#discussion_r2048802903


##########
itests/hive-minikdc/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCleanerWithSecureDFS.java:
##########
@@ -163,7 +162,7 @@ public void testLeakAfterHistoryException() throws 
Exception {
     }
     cleaner.setConf(cleanerConf);
     cleaner.init(new AtomicBoolean(true));
-    FieldSetter.setField(cleaner, 
MetaStoreCompactorThread.class.getDeclaredField("txnHandler"), txnHandler);
+    ReflectionUtil.setField(cleaner, 
MetaStoreCompactorThread.class.getDeclaredField("txnHandler"), txnHandler);

Review Comment:
   @deniskuzZ 
   org.mockito.internal.util.reflection.FieldSetter is an internal mockito 
class which cannot be accessed anymore since we have moved to mockito 5.x for 
jdk-17 support. So, we have added and used a similar reflection method in 
ReflectionUtil to compensate for the same.



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