Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1863

rebuild-upon-startup = NEVER triggers a read of all indexed nodes on startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.2.0.Final
    • 3.1.3.Final
    • None
    • None

    Description

      The following code in JcrRepository:

      case NEVER: {                                                                                                                                
          Set<NodeKey> existingIndexes = queryManager().getIndexes().indexedNodes();                                                               
          if (existingIndexes.isEmpty()) {                                                                                                         
              logger.info(JcrI18n.noReindex, getName());                                                                                           
          } else {                                                                                                                                 
              logger.debug("Index rebuild option is 'never' for repository {0} so nothing will be re-indexed. The existing indexed node are: {1}", 
                           name(),                                                                                                                 
                           existingIndexes);                                                                                                       
          }                                                                                                                                        
          break;                                                                                                                                   
      }                                                                                                                                            
      

      Suggests to me that even if reindexing is turned off, start-up will still attempt to read every single indexed node key from the underlying indexing storage only to generate a log statement printed at info or (in the non-empty case) trace level. To print all the indexed nodes at debug level also seem to be quite unnecessary.

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            clementp_jira Clement Pang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: