Reputation: 63
I would like to implement a more rigorous transaction/concurrency model in my client than Solr itself implements. One key piece to this is determining whether there are any uncommitted/staged changes in a core in Solr. Is there a request I can make to Solr from a client to figure this out?
Upvotes: 3
Views: 475
Reputation: 52802
You can query the metrics API - the UPDATE.updateHandler
segment will have the docsPending
value set:
UPDATE.updateHandler.docsPending: Number of documents which are pending commit.
There's also the adds
stats:
UPDATE.updateHandler.adds: Total number of “add” requests since last commit.
These stats are available per core.
Upvotes: 4