Skip to content
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

continuous process increase index inconsistency #421

Open
tcastaing33 opened this issue Mar 31, 2023 · 0 comments
Open

continuous process increase index inconsistency #421

tcastaing33 opened this issue Mar 31, 2023 · 0 comments

Comments

@tcastaing33
Copy link

tcastaing33 commented Mar 31, 2023

Hi,
we see that if a processing creates transactions in a continuous and frequent way, this has side effect to prevent Solr from updating these indexes continuously.
In fact, after investigation, we see that the MetadataTracker is executed every 10s (default cron) but exit without indexing documents related to the transactions it has found. These transactions will be indexed when the traffic will "decrease" on next iterations
After research, this is due to this line of code.

MetatDataTracker / line 979
        if (transactions.getTransactions()
          .stream()
          .anyMatch(transaction -> (transaction.getCommitTimeMs() > this.state.getTimeToStopIndexing()))) {
          getWriteLock().release();
          break;
        } 

We can see that if a transaction has a date greater than the date at getTimeToStopIndexing(), then it exits without indexing any transactions that might be.
Why not simply remove these transactions from the list in order to keep those that can be indexed and let executing the tracker indexation process ?

Regards,
Thibaut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant