humengyu2012 opened a new issue, #6288:
URL: https://github.com/apache/iceberg/issues/6288

   ### Apache Iceberg version
   
   0.13.1
   
   ### Query engine
   
   Flink
   
   ### Please describe the bug 🐞
   
   1. I have a flink job, flink cdc->iceberg;
   2. stop flink job by savepoint;
   3. compact file by the following code:
   ```java
       LOG.info("Start delete orphan for {}.{}", databaseName, tableName);
       // Delete orphan files
       table = catalog.loadTable(tableIdentifier);
       SparkActions
           .get()
           .deleteOrphanFiles(table)
           .execute();
   
       LOG.info("Start rewrite manifests for {}.{}", databaseName, tableName);
       // rewrite Manifests
       table = catalog.loadTable(tableIdentifier);
       SparkActions
           .get()
           .rewriteManifests(table)
           .rewriteIf(file -> file.length() < 10 * 1024 * 1024)
           .execute();
   
       LOG.info("Start compact data for {}.{}", databaseName, tableName);
       // compact data files, 100M
       table = catalog.loadTable(tableIdentifier);
       SparkActions
           .get()
           .rewriteDataFiles(table)
           .option(TARGET_FILE_SIZE_BYTES, Long.toString(100 * 1024 * 1024))
           .option(MAX_CONCURRENT_FILE_GROUP_REWRITES, Integer.toString(10))
           .option(PARTIAL_PROGRESS_ENABLED, "true")
           .execute();
   ```
   4. recovery flink job by savepoint, bu exception is thrown:
   <img width="1414" alt="企业微信截图_bd91c630-3bd5-4d55-80ee-ec671e40cfa7" 
src="https://user-images.githubusercontent.com/45056332/204252906-01b1ec2c-833d-4ceb-8226-8dd345d92fc7.png";>
   
   


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