Closed jicanghaixb closed 2 months ago
Any chance you're able to recreate this scenario with a unit test?
Nevermind I assume that you're likely using the HDFS catalog, which isn't meant for concurrent writers. I think we can simply add a lock to the snapshot writer of the hdfs catalog.
Thanks, I wrap Iceberg and added an upload lock to avoid the issue
The current iceberg runs the Upload function concurrently (when frost db quickly injects data), There is competition leading to partial loss of data in the current snapshot's ManifestEntry, maybe Upload need add a lock