Solr
  1. Solr
  2. SOLR-7668

Port-base rule for shard placement causes NPE

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.3
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      I was setting up some rule-based collections, and I hit an NPE whenever I try to include a port-based rule. It looks like the implementation was started, but not completed for ports. Patch coming in just a moment.

      I included a test, and I have no problems getting the test to pass when run by itself. However, when I run it w/ the other tests in RulesTest, it fails because of some ZK errors, but I often have those issues when running any of the distrib tests.

      1. SOLR-7668.patch
        5 kB
        Adam McElwee
      2. SOLR-7668.patch
        7 kB
        Adam McElwee

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

          Commit 1685560 from Noble Paul in branch 'dev/trunk'
          [ https://svn.apache.org/r1685560 ]

          SOLR-7668: Add 'port' tag support in replica placement rules

          Show
          ASF subversion and git services added a comment - Commit 1685560 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1685560 ] SOLR-7668 : Add 'port' tag support in replica placement rules
          Hide
          ASF subversion and git services added a comment -

          Commit 1685572 from Noble Paul in branch 'dev/branches/branch_5x'
          [ https://svn.apache.org/r1685572 ]

          SOLR-7668: Add 'port' tag support in replica placement rules

          Show
          ASF subversion and git services added a comment - Commit 1685572 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1685572 ] SOLR-7668 : Add 'port' tag support in replica placement rules
          Hide
          Mark Miller added a comment -

          When you essentially simply commit someone else patch, the correct credit is:

          Adam McElwee via Noble Paul.

          Show
          Mark Miller added a comment - When you essentially simply commit someone else patch, the correct credit is: Adam McElwee via Noble Paul.
          Hide
          Noble Paul added a comment - - edited

          It was not committed as is . I had to edit some of it. That is why I used a comma instead of 'via'

          Show
          Noble Paul added a comment - - edited It was not committed as is . I had to edit some of it. That is why I used a comma instead of 'via'
          Hide
          Shai Erera added a comment -

          Is this not resolved already?

          Show
          Shai Erera added a comment - Is this not resolved already?

            People

            • Assignee:
              Noble Paul
              Reporter:
              Adam McElwee
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development