Results 1 to 2 of 2

Thread: Roo Solr addon questions

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Default 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. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    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.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •