netudima commented on PR #1635:
URL: 
https://github.com/apache/cassandra-java-driver/pull/1635#issuecomment-2474723707

   Hi, I faced the same issue and came independently to the same kind of patch 
in https://issues.apache.org/jira/browse/CASSJAVA-4. We started to observe the 
issue once we switched from 3.x to 4.x java driver. 3.x driver version has the 
same behaviour as in the patch.
   A context: our app is low latency and highly available, so we want to do 
schema changes without business apps downtime. Also as a way to reduce value 
columns overhead we use UDTs extensively. Currently, as a WA for the issue we 
have to use a custom codec, but is not convenient and error-prone to add it 
everywhere.
   
   I also think that a retry on the request path as an attempt to fix the type 
caching is not the best option:
   1) it will make the query/several queries at least 2 times slower
   2) it does not guarantee correctness: Cassandra server (at least 4.x 
versions) does not manage schema in a transactional way, so there is no a 
guarantee that all server nodes are in agreement about the UDT change yet and a 
retry may touch an node with an older version again.


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