You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "InvisibleProgrammer (via GitHub)" <gi...@apache.org> on 2023/05/17 10:35:54 UTC

[GitHub] [hive] InvisibleProgrammer commented on a diff in pull request #4328: HIVE-27343: Fix flaky tests: TestHiveMetaStoreTimeout#testResetTimeout

InvisibleProgrammer commented on code in PR #4328:
URL: https://github.com/apache/hive/pull/4328#discussion_r1196289477


##########
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStoreTimeout.java:
##########
@@ -117,11 +117,11 @@ public void testTimeout() throws Exception {
 
   @Test
   public void testResetTimeout() throws Exception {
-    HMSHandler.testTimeoutValue = 250;
     String dbName = "db";
 
     // no timeout before reset
     client.dropDatabase(dbName, true, true);
+    HMSHandler.testTimeoutValue = 250;

Review Comment:
   The setup method of the test enables timeout. What about playing with the timeout values, just disabling timeout at the beginning of the test case and re-enable it after the drop database command? 
   
   And also, I wonder why the test `testNoTimeout` is not flaky. It works with the same timeout value. 



-- 
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-unsubscribe@hive.apache.org

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


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