sourajitsaha17 commented on issue #14093:
URL: https://github.com/apache/iceberg/issues/14093#issuecomment-3325371543

   Sorry for the delayed response. 
   In our case.. 
   Thread 1 is updating the schema with `UpdateSchema.commit()`, then it writes 
the record and generates the corresponding DataFiles for the table.
   Thread 2 is then asynchronously committing the datafiles with 
`table.newAppend().appendFile(dataFile).commit()`.
   Meanwhile, Thread 1 performs another commit to the schema (sets current 
schema id to 2) and increments the schema id while Thread 2 is still executing.
   After Thread to has completed the its execution the current schema id in the 
table metadata is reverted to 1.
   
   Additional note: there's no existing snapshot in the metadata during this 
process. The first snapshot is created when Thread 2 completes the commit of 
the datafile.
   


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