Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12941

IndexSizeTrigger and splitMethod=link problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.6, 8.0
    • 8.2, 9.0
    • None
    • None

    Description

      IndexSizeTrigger can be configured to use splitMethod=link (SOLR-12730), which uses hard-linking for creating sub-shards.

      However, if the trigger uses aboveBytes condition the resulting sub-shards will not immediately decrease in size, until all of the deleted documents will be expunged (either by gradual merges or by explicit and costly expungeDeletes command). As a result the new sub-shards will still exceed the aboveBytes threshold, which will cause the trigger to keep generating new split requests.

      I see two options how to solve this:

      • disallow using aboveBytes with splitMethod=link. This unfortunately is a very desirable combination because it monitors the actual index size and uses the fast splitting method.
      • calculate an internal estimate of "eventual index size" for an index with deletions, and use this estimate when checking with aboveBytes instead of the real index size. This of course introduces a potentially significant estimation error but allows to properly treat hard-linked sub-shards with deletions as (eventually) significantly smaller than the parent shard.

      Attachments

        1. SOLR-12941.patch
          26 kB
          Andrzej Bialecki

        Activity

          People

            ab Andrzej Bialecki
            ab Andrzej Bialecki
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: