-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Records are missing in sync #694
Comments
Does it started to happen recently? Ours is having the same problem but we never changed the monstache config for 2 months its weird |
@yunusemrecatalcam Yes we started facing issue from last 2-3 months. |
@yunusemrecatalcam we found the issue from where it's coming. While fetching data from mongo view while processing relate, it doesn't get the record at all during insertion. We have mongo replica set deployment. I feel while writing data to mongo collection, there are services which are not configured with write majority. For now we have added retry mechanism (5 times) with some delay between iteration. But still there is going to be issue during update, it may not get latest updated record. |
@yunusemrecatalcam I think another way to solve this is to add readPreference from primary |
Hi,
This is my toml file
It's happening for 5-10 records per 100 records and it's very random exactly like @sachinnagesh reported. |
Hi @rwynn ,
We are facing a very strange issue with monstache. We observed some of the records are not at all synched to elastic-index. It's happening for 5-10 records per 100 records and it's very random. This is observed in case of create and update. Also we don't see any logs at all related to records in monstache logs.
Just to give you idea about out setup, we have mongodb deployment with replica set. We have multiple db's (each for a specific company - multi tenant) in deployement. From each company db we want to sync a mongodb view created on
product
collection.e.g.
dbName : company1
collections : products, product-features, product-technical-details, product-inventory
dbName : company12
collections : products, product-features, product-technical-details, product-inventory
Here is monstache.toml file looks like
We also tried by setting below parameters and removing
namespace-regex
but still issue persistWe think somehow monstache missing those create/update events. We are using
monstache:6.7.10
The text was updated successfully, but these errors were encountered: