Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13101 Shared storage via a new SHARED replica type
  3. SOLR-13932

Review directory locking and Blob interactions

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Review resolution of local index directory content vs Blob copy.

      There has been wrong understanding of following line acquiring a lock on index directory.

       solrCore.getDirectoryFactory().get(indexDirPath, DirectoryFactory.DirContext.DEFAULT, solrCore.getSolrConfig().indexConfig.lockType);

      From Yonik:

      A couple things about Directory locking.... the locks were only ever to prevent more than one IndexWriter from trying to modify the same index. The IndexWriter grabs a write lock once when it is created and does not release it until it is closed. 

      Directories are not locked on acquisition of the Directory from the DirectoryFactory. See the IndexWriter constructor, where the lock is explicitly grabbed.

      Review CorePushPull#pullUpdateFromBlob, ServerSideMetadata and other classes as relevant.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ilan Ilan Ginzburg
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 10m
                  3h 10m