Priority: Major - P3
Affects Version/s: 4.2.1
Fix Version/s: None
I can't read data from mongos that was just inserted through another mongos.
The test is very simple, I have two mongos:
- connect mongos1
- shard Collection with hash index
- insert data
- query in mongos2 with readPref=secondary and readConcern=local/majority, no data returned.
- If I read from primary to trigger the cache route refresh, then data can be read.
This only happens in MongoDB 4.2 version with hash index key shardCollection method. If shard key is a range, everything works ok. If I shard Collection with hash index after data inserted, also everything is ok.