I have a Cassandra cluster with 3 nodes and a replication factor of 3. A colleague of mine moved the data for each of the nodes from one disk to the other.
It is possible that something wrong happened in the process.
When I run the query below:
select min(dttime),max(dttime),sum(odo)/1000.0 from module where dttime >= '2022-08-01 01:00' and dttime <= '2022-08-23 17:00' and imei=358899051143710 ;
I get different results at different times.
I got three different results at 3 different times, e.g
cassandra@cqlsh:gps> select min(dttime),max(dttime),sum(odo)/1000.0 from module where dttime >= '2022-08-01 01:00' and dttime <= '2022-08-23 17:00' and imei=358899051143710 ;
system.min(dttime) | system.max(dttime) | system.sum(odo) / 1000.0
--------------------+--------------------+--------------------------
null | null | 0
system.min(dttime) | system.max(dttime) | system.sum(odo) / 1000.0
---------------------------------+---------------------------------+--------------------------
2022-08-01 01:00:13.632000+0000 | 2022-08-01 06:11:13.163000+0000 | 92.471
system.min(dttime) | system.max(dttime) | system.sum(odo) / 1000.0
---------------------------------+---------------------------------+--------------------------
2022-08-01 01:00:13.632000+0000 | 2022-08-23 16:54:13.686000+0000 | 8712.734
A further observation is that if one particular node is down, I always get the last result.
What is likely to be the cause of the inconsistency, and if any remedy exists?
I have tried nodetool repair and scrub, but without success.