zabetak opened a new pull request, #5811:
URL: https://github.com/apache/hive/pull/5811

   ### What changes were proposed in this pull request?
   Ignore user defined database creation time from equality comparison.
   
   ### Why are the changes needed?
   Avoid intermittent test failures and stabilize CI.
   
   The test is problematic cause it sets explicitly the creation time and it 
expects the same to be returned in the notification message. However, the HMS 
always overrides the `createTime` (expected behavior according to tests added 
by HIVE-21077) field during the creation of the database so the initial value 
is lost. Slight delays (more than 1 second) between the initialization of the 
test and the creation of the database are causing the test to fail. The test is 
more likely to fail in CI where delays are more common.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Adding delays (e.g., `Thread.sleep(2000)`) before `ms.createDatabase` call 
and running the test.


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