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

SOLR-5311 was done without full understanding of the system and must be reverted.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.6.1, 4.7, 6.0
    • None
    • OS:Red Hat Enterprise Linux Server release 6.4 (Santiago)
      Software:solr 4.6,
      jdk:OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
      OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

    Description

      In class org.apache.solr.cloud.Overseer the Line 360:
      ---------------------------------------------------------------------
      if (sliceName !=null && collectionExists && !"true".equals(state.getCollection(collection).getStr("autoCreated"))) {
      Slice slice = state.getSlice(collection, sliceName);
      if (slice.getReplica(coreNodeName) == null)

      { log.info("core_deleted . Just return"); return state; }
      }
      ---------------------------------------------------------------------
      the slice needs to be checked null .because when create a new core with both explicite shard and coreNodeName, the state.getSlice(collection, sliceName) may return a null.So it needs to be checked ,or there will be an NullpointException
      ---------------------------------------------------------------------
      if (sliceName !=null && collectionExists && !"true".equals(state.getCollection(collection).getStr("autoCreated"))) {
      Slice slice = state.getSlice(collection, sliceName);
      if (slice != null && slice.getReplica(coreNodeName) == null) { log.info("core_deleted . Just return"); return state; }

      }
      ---------------------------------------------------------------------

      Attachments

        1. SOLR-5580.patch
          1 kB
          Noble Paul

        Issue Links

          Activity

            People

              markrmiller@gmail.com Mark Miller
              stanleyyang YouPeng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified