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: [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]