virajjasani commented on PR #2665:
URL: https://github.com/apache/phoenix/pull/2665#issuecomment-6861161659

   > Rows can leak if a Throwable is thrown inside the registration loop 
(L1302-1336). addedToPendingRows is set only after the loop.
   
   This is not a regression.
   
   > `getPendingContext` treats every non-PRE, non-FAILED phase as "read from 
disk". INIT cannot be reached today. A wrong "nothing pending" result is a 
silent lost update, though. Handle POST explicitly and throw 
IllegalStateException on anything else, so an invariant check stays in place of 
the removed one.
   
   INIT can't be reached in `getPendingContext`.
   
   Other gaps are not regression, they exist. We should take them up later as 
separate Jiras. The stale-metadata related concurrent updates on same row where 
one update sees index as active and another one does not, is very hard to 
reproduce and has very rare probability of occurring. The fix for it would be 
too expensive i.e. we make every write wait for previous concurrent batch 
update even though the table has no index or conditional update. This can 
created drastic performance regressions.


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

Reply via email to