apupier commented on PR #30774:
URL: https://github.com/apache/camel/pull/30774#issuecomment-7159136109

   Thanks for the review. Addressed in the new commit:
   
   1. `delete(key)` retry: confirmed. I ran it against Cassandra 5.0.9: a 
failed `DELETE ... IF value = ?` (and `UPDATE ... IF value = ?`) on a missing 
row returns the `[applied]` column only, so reading `value` threw 
`IllegalArgumentException: value is not a column in this row`. The retry now 
reads the value only when the column is in the result, and otherwise retries 
with `null`, which matches the missing row. Added two ITs (8 threads 
`delete(key)` the same key; `delete(key)` racing `delete(key, expected)`), 10 
rounds each, started together with a latch. Both fail with that exception 
without the fix and pass with it.
   2. Upgrade guide: dropped the "(and its `Named` variant)" parenthesis.
   
   Smaller points:
   - The guide now says that multi-datacenter users who write with 
`LOCAL_ONE`/`LOCAL_QUORUM` pay a cross-datacenter Paxos round unless they set 
`basic.request.serial-consistency = LOCAL_SERIAL`, and that a contended LWT can 
fail with a `WriteTimeoutException` of write type `CAS`.
   - The guide mentions the removal of the protected `initInsertStatement`, 
`initInsertWithTtlStatement` and `initDeleteStatement`.
   - Backoff: not added. With 8 threads x 50 puts on one key I measured no 
errors and 633 ms in total, so I preferred not to add a sleep to a path that is 
already bounded. Happy to add a short randomized pause if you want one.
   
   _IBM Bob on behalf of @apupier_
   


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