Different values returned for the same query in Nosqlbooster
Solved
We have a query that is executed in some moments returns the document and in others it does not return anything. The same happens when we execute a count, that sometimes returns 0 and in others returns 1. We execute the same query by the shell and in all the executions the value returned of the cout was 1. We test in different machines, different OS and the problem continues. We use the most current version of NoSQLBooster to 5.1.7.
Note: The document has not been deleted or updated during the tests.
Thanks for opening your issue here! From your description, it is difficult for me to guess what the problem is.
If you're reporting a bug, please make sure you include steps to reproduce it.
Thanks for opening your issue here! From your description, it is difficult for me to guess what the problem is.
If you're reporting a bug, please make sure you include steps to reproduce it.
In the search filter it uses a pid field which is a shardkey so it does not access all shards, but the document is in shard7 and when it returns nothing it examines only shard5 or shard2.
The same problem does not happen in the mongo shell.
NoSQLBooster Version: 5.1.7
Operating System (Windows/Mac/Ubuntu): Windows 10 / Ubuntu 18
MongoDB Version: 3.6.8
Expected Behavior: Return 1 document in a shard cluster
Actual Behavior: Sometimes it returns and in others it does not return
How to Reproduce (Please attach sample JSON data): 9 shards cluster, collection with bilions documents, indexes: {pid: 'hashed"}, {"pid": 1, universe_id: 1, account_id: 1, channel:1, normalized_shared_at:1}
In the search filter it uses a pid field which is a shardkey so it does not access all shards, but the document is in shard7 and when it returns nothing it examines only shard5 or shard2.
The same problem does not happen in the mongo shell.
NoSQLBooster Version: 5.1.7
Operating System (Windows/Mac/Ubuntu): Windows 10 / Ubuntu 18
MongoDB Version: 3.6.8
Expected Behavior: Return 1 document in a shard cluster
Actual Behavior: Sometimes it returns and in others it does not return
How to Reproduce (Please attach sample JSON data): 9 shards cluster, collection with bilions documents, indexes: {pid: 'hashed"}, {"pid": 1, universe_id: 1, account_id: 1, channel:1, normalized_shared_at:1}
Thanks.
Thanks.
Replies have been locked on this page!