openinx opened a new issue #2384:
URL: https://github.com/apache/iceberg/issues/2384


   I encountered several failures when running the 
TestFlinkTableSink#testHashDistributeMode,  I think it worth to take some time 
to dig what's reason that causing this UT to be flaky. (see 
https://github.com/apache/iceberg/runs/2198897493)
   
   
   ```java
   org.apache.iceberg.flink.TestFlinkTableSink > 
testHashDistributeMode[catalogName=testhadoop_basenamespace, 
baseNamespace=l0.l1, format=AVRO, isStreaming=true] FAILED
       java.lang.AssertionError: There should be only 1 data file in partition 
'aaa' expected:<1> but was:<2>
           at org.junit.Assert.fail(Assert.java:88)
           at org.junit.Assert.failNotEquals(Assert.java:834)
           at org.junit.Assert.assertEquals(Assert.java:645)
           at 
org.apache.iceberg.flink.TestFlinkTableSink.testHashDistributeMode(TestFlinkTableSink.java:280)
   
       org.apache.flink.table.api.ValidationException: Could not execute DROP 
DATABASE IF EXISTS  testhadoop_basenamespace.db RESTRICT
           at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.executeOperation(TableEnvironmentImpl.java:989)
           at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.executeSql(TableEnvironmentImpl.java:666)
           at org.apache.iceberg.flink.FlinkTestBase.exec(FlinkTestBase.java:92)
           at org.apache.iceberg.flink.FlinkTestBase.exec(FlinkTestBase.java:96)
           at org.apache.iceberg.flink.FlinkTestBase.sql(FlinkTestBase.java:100)
           at 
org.apache.iceberg.flink.TestFlinkTableSink.clean(TestFlinkTableSink.java:132)
   
           Caused by:
           org.apache.flink.table.catalog.exceptions.DatabaseNotEmptyException: 
Database db in catalog testhadoop_basenamespace is not empty.
               at 
org.apache.iceberg.flink.FlinkCatalog.dropDatabase(FlinkCatalog.java:242)
               at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.executeOperation(TableEnvironmentImpl.java:983)
               ... 5 more
   
               Caused by:
               org.apache.iceberg.exceptions.NamespaceNotEmptyException: 
Namespace l0.l1.db is not empty.
                   at 
org.apache.iceberg.hadoop.HadoopCatalog.dropNamespace(HadoopCatalog.java:344)
                   at 
org.apache.iceberg.flink.FlinkCatalog.dropDatabase(FlinkCatalog.java:233)
                   ... 6 more
   ```


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to