You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "dyno (via GitHub)" <gi...@apache.org> on 2025/09/26 22:08:29 UTC

[I] NotFoundException - metadata.json points to snap first attempt file [iceberg]

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

   ### Apache Iceberg version
   
   1.9.2
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   exhibit of the error
   ```
   org.apache.iceberg.exceptions.NotFoundException: Failed to open input stream for file: s3://../metadata/snap-4660682404109470240-1-f4d9449a-5f85-4391-a4ab-2db223be2646.avro
           at org.apache.iceberg.hadoop.HadoopInputFile.newStream(HadoopInputFile.java:185) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:102) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.avro.AvroIterable.iterator(AvroIterable.java:77) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.avro.AvroIterable.iterator(AvroIterable.java:37) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.relocated.com.google.common.collect.Iterables.addAll(Iterables.java:332) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.relocated.com.google.common.collect.Lists.newLinkedList(Lists.java:261) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.ManifestLists.read(ManifestLists.java:42) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.BaseSnapshot.cacheManifests(BaseSnapshot.java:176) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.BaseSnapshot.dataManifests(BaseSnapshot.java:202) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.MergingSnapshotProducer.apply(MergingSnapshotProducer.java:920) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.BaseOverwriteFiles.apply(BaseOverwriteFiles.java:30) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.SnapshotProducer.apply(SnapshotProducer.java:261) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.BaseOverwriteFiles.apply(BaseOverwriteFiles.java:30) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.SnapshotProducer.lambda$commit$2(SnapshotProducer.java:439) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.util.Tasks$Builder.runTaskWithRetry(Tasks.java:413) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.util.Tasks$Builder.runSingleThreaded(Tasks.java:219) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:203) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:196) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.SnapshotProducer.commit(SnapshotProducer.java:437) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.BaseOverwriteFiles.commit(BaseOverwriteFiles.java:30) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.spark.source.SparkWrite.commitOperation(SparkWrite.java:233) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
           at org.apache.iceberg.spark.source.SparkWrite$OverwriteByFilter.commit(SparkWrite.java:378) ~[iceberg-spark-runtime-3.5_2.12-1.9.2.jar:?]
   ```
   on disk
   ```
   TZ=UTC aws s3 ls  s3://../metadata/ | sort
   
   2025-09-26 00:59:25      15535 f4d9449a-5f85-4391-a4ab-2db223be2646-m1.avro
   2025-09-26 00:59:25      5658  snap-4660682404109470240-2-f4d9449a-5f85-4391-a4ab-2db223be2646.avro 
   ```
   it's like metadata.json points to a manifestlist file of first attempt. 
   
   before this happen, i do see write failure. 
   
   ```
   applog-1175          o.a.s.s.e.d.v.OverwriteByExpressionExec:76] Data source write support IcebergBatchWrite(table=spark_catalog.applogs_iceberg_internal.fact_applogs_tuerr_current_tokenized, format=PARQUET) is aborting.
   ```
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this 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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference [iceberg]

Posted by "dyno (via GitHub)" <gi...@apache.org>.
dyno commented on issue #14195:
URL: https://github.com/apache/iceberg/issues/14195#issuecomment-3342359502

   1.10.0 seems working fine with the Exception being now `CommitStateUnknownException` which at least not breaking the table integrity. 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14195:
URL: https://github.com/apache/iceberg/issues/14195#issuecomment-4227454778

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14195:
URL: https://github.com/apache/iceberg/issues/14195#issuecomment-4146124407

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #14195: NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference
URL: https://github.com/apache/iceberg/issues/14195


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] NotFoundException - metadata.json points to wrong manifestlist (snap file) path - attempt difference [iceberg]

Posted by "dyno (via GitHub)" <gi...@apache.org>.
dyno commented on issue #14195:
URL: https://github.com/apache/iceberg/issues/14195#issuecomment-3340655115

   1.6.1 does not exhibit this problem. our job that write about 3000 tables every 6 minutes, can repro the problem in a few hours. 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org