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

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

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.1, master (9.0)
    • Component/s: None
    • Labels:
      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

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: