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

HashBasedRouter logs the entire state.json when a slice is not found

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 8.1, 9.0
    • None
    • None

    Description

      protected Slice hashToSlice(int hash, DocCollection collection) {
          final Slice[] slices = collection.getActiveSlicesArr();
          for (Slice slice : slices) {
            Range range = slice.getRange();
            if (range != null && range.includes(hash)) return slice;
          }
          throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "No active slice servicing hash code " + Integer.toHexString(hash) + " in " + collection);
        }
      

      Just the collection name should be fine

      Attachments

        Activity

          People

            noble.paul Noble Paul
            noble.paul Noble Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: