pongandnoon opened a new issue, #1217:
URL: https://github.com/apache/incubator-paimon/issues/1217

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Paimon version
   
   0.5-SNAPSHOT
   
   ### Compute Engine
   
   Flink-1.17.0
   
   ### Minimal reproduce step
   
   1. new a flink batch write task with the following parameters:
   
      parallelism.default=200
      execution.batch.adaptive.auto-parallelism.enabled=true ( the default 
value  of Flink-17 is true)
   
   2. The first time ,the task runs successfully。the operator execution graph 
is:
   <img width="833" alt="image" 
src="https://github.com/apache/incubator-paimon/assets/25953674/0de6f645-e060-44cd-90cc-1596b22c8df1";>
   
   3. The second time,the task report error:This is a bug! The partition 
org.apache.paimon.data.BinaryRow@23546dee and bucket 0 is filtered!
   
   4. when we change  execution.batch.adaptive.auto-parallelism.enabled to 
false or remove  parallelism.default parameter, the task runs successfully
   
   ### What doesn't meet your expectations?
   
   Caused by: java.lang.IllegalArgumentException: This is a bug! The partition 
org.apache.paimon.data.BinaryRow@23546dee and bucket 0 is filtered!
        at 
org.apache.paimon.utils.Preconditions.checkArgument(Preconditions.java:127)
        at 
org.apache.paimon.operation.AbstractFileStoreScan.withPartitionBucket(AbstractFileStoreScan.java:156)
        at 
org.apache.paimon.operation.AbstractFileStoreWrite.scanExistingFileMetas(AbstractFileStoreWrite.java:332)
        at 
org.apache.paimon.operation.AbstractFileStoreWrite.createWriterContainer(AbstractFileStoreWrite.java:314)
        at 
org.apache.paimon.operation.AbstractFileStoreWrite.lambda$getWriterWrapper$2(AbstractFileStoreWrite.java:289)
        at java.util.HashMap.computeIfAbsent(HashMap.java:1127)
        at 
org.apache.paimon.operation.AbstractFileStoreWrite.getWriterWrapper(AbstractFileStoreWrite.java:288)
        at 
org.apache.paimon.operation.AbstractFileStoreWrite.write(AbstractFileStoreWrite.java:98)
        at 
org.apache.paimon.table.sink.TableWriteImpl.writeAndReturn(TableWriteImpl.java:105)
        at 
org.apache.paimon.flink.sink.StoreSinkWriteImpl.write(StoreSinkWriteImpl.java:83)
        at 
org.apache.paimon.flink.sink.GlobalFullCompactionSinkWrite.write(GlobalFullCompactionSinkWrite.java:96)
        at 
org.apache.paimon.flink.sink.RowDataStoreWriteOperator.processElement(RowDataStoreWriteOperator.java:174)
        ... 13 more
   
   ### Anything else?
   
   The root cause is : 
   1) the channel num of  BucketingStreamPartitioner is the value of  
parallelism.default,that is 200 。
   2)While the the channel num of RowDataChannelComputer is setted up by 
RowDataStoreWriteOperator.initializeState(),the value is 
getRuntimeContext().getNumberOfParallelSubtasks(),that is 7
   3)the different channel cause the calculated channel is different
   
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


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