简体   繁体   中英

How to slow down cassandra to expose eventual consistency issues

I have cassandra with table and materialized views. The materialized views are eventually consistent with the table and dev has to be extra careful implementing algorithms against cassandra of not hitting issues like just added item seems to not be there etc.

What I would like is to be able to create test environment where the eventual consistency of the materialized views is on purpose really high - say 5/10ms. This way I will be at easy that if my integration tests do not hit issues they are not there. Right now my integration tests running against very small cluster that seems to do all this very fast, and I have some issues discovered only after hours of ingestion against almost production size cluster which is very expensive.

My question is: How I can slow down cassandra materialized view syncs with the table.

From my point of view you are actually trying to solve consistency issues with the wrong concepts.

I mean, if you rely on strong consistency you shouldn't use materialised views because there is only eventual consistency with MV.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM