korlov42 commented on code in PR #5121:
URL: https://github.com/apache/ignite-3/pull/5121#discussion_r1933358048


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/ddl/DdlCommandHandlerExceptionHandlingTest.java:
##########
@@ -67,6 +71,7 @@ void before() {
         HybridClock clock = new HybridClockImpl();
         catalogManager = createTestCatalogManager("test", clock);
         assertThat(catalogManager.startAsync(new ComponentContext()), 
willCompleteSuccessfully());
+        awaitDefaultZoneCreation(catalogManager);

Review Comment:
   as far as I see, this flakiness highlights the real issue, and you decided 
to just obscure it with this wait.
   
   Initial version of Catalog uses `0L` as activation time, which is not valid 
value according to HybridTimestamp's constructor:
   
   ```
       private HybridTimestamp(long time) {
           this.time = time;
   
           // Negative time breaks comparison, we don't allow overflow of the 
physical time.
           // "0" is a reserved value for "NULL_HYBRID_TIMESTAMP".
           if (time <= 0) {
               throw new IllegalArgumentException("Time is out of bounds: " + 
time);
           }
       }
   ```



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

Reply via email to