ndimiduk commented on a change in pull request #1293: HBASE-23970 
TestUsersOperationsWithSecureHadoop fails when an existing ticket is present
URL: https://github.com/apache/hbase/pull/1293#discussion_r394002808
 
 

 ##########
 File path: 
hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
 ##########
 @@ -65,11 +67,19 @@
   private static String CLIENT_NAME;
 
   @BeforeClass
-  public static void destroyAndSetup() throws Exception {
-    //destroy localhost kerberos users
-    Process process = Runtime.getRuntime().exec(new String[]{"bash", "-c", 
"kdestroy"});
-    process.waitFor(2, TimeUnit.SECONDS);
-    // setup mini kdc
+  public static void checkAndSetup() throws Exception {
+    // check localhost kerberos users
+    Process process = Runtime.getRuntime().exec(new String[]{"bash", "-c", 
"klist"});
+    boolean wait = process.waitFor(2, TimeUnit.SECONDS);
 
 Review comment:
   I think a simple `assertTrue` is sufficient for this case.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to