Announcement Announcement Module
Collapse
No announcement yet.
Roo Solr addon questions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo Solr addon questions

    Hi

    I am new to Roo, getting started by reading the reference documentation and have following questions on Roo Solr addon. Some of these may be basic questions so please pardon my ignorance

    a.) The reference documentation mentions that (solr) indexing is performed in a background thread. How does the background thread find all the changed entities?

    b.) Is the automatic indexing triggered through postPersistOrUpdate() method is synchronous?

    c.) How is consistency of two persistent stores ( the database and solr index) guaranteed in case of failures? is this something that should be managed by the application code

    Thanks
    Harish

  • #2
    a.) The reference documentation mentions that (solr) indexing is performed in a background thread. How does the background thread find all the changed entities?
    This addon actually installs a aspect which uses a pointcut which picks up the methods introduced by the addon generated ITDs. Look for SolrSearchAsyncTaskExecutor.

    b.) Is the automatic indexing triggered through postPersistOrUpdate() method is synchronous?
    No, it should be asynchronous through the SolrSearchAsyncTaskExecutor aspect. If this is not the case you can add the method signature to the aspect and raise a Jira ticket so we fix it as default.

    c.) How is consistency of two persistent stores ( the database and solr index) guaranteed in case of failures? is this something that should be managed by the application code
    Currently this is not managed by the addon. However, you can again setup an aspect which wraps potential connection exceptions and employs a retry strategy.

    Comment

    Working...
    X