namrathamyske commented on issue #9659:
URL: https://github.com/apache/iceberg/issues/9659#issuecomment-1928560017

   @amogh-jahagirdar There might be concurrency issues if we directly serialize 
it to json string. Ex:
   
   Current state of property-val key:
   property-val : { "a1":1 }
   
   Two **concurrent** commit:
   
   commit-1 (a2 is key added to map) :
   property-val : { "a1":1, "a2":2 } - succeeds
   
   commit-2 (a3 key is added to map) : 
   property-val : { "a1":1, "a3":3 } - fails
   
   commit-2 is retried and overwrites commit-1:
   property-val : { "a1":1, "a3":3 }  - succeeds
   
   final property-key value
   property-val : { "a1":1 , "a3":3}
   
   Above cases should be handled using conflict resolution and json string must 
be recreated


-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to