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

Add null check on core info variables in IndexSizeTrigger

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 8.7
    • Fix Version/s: None
    • Component/s: AutoScaling

      Description

      A minor fix, but we've seen NPEs from IndexSizeTrigger when ZK is restarted since it's unable to fetch the core info. All we need is a null check.

      In the patch I'll also update a string value: https://github.com/apache/lucene-solr/blob/branch_8x/solr/core/src/java/org/apache/solr/cloud/autoscaling/IndexSizeTrigger.java#L339

      And might add a log to report index size when splits are enqueued

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                megancarey Megan Carey
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 20m
                  20m