Solr
  1. Solr
  2. SOLR-7870

Write a test which asserts that requests to stateFormat=2 collection succeed on a node even after all local replicas of that collection have been removed

    Details

      Description

      In SOLR-5756, Scott Blum found that tests succeeded even when ZkStateReader.removeZkWatch() removed a stateFormat=2 collection from local state upon unload of all local replicas. We should add a test which fails in such a scenario.

        Activity

        Hide
        Scott Blum added a comment -

        You can put my name on this. I have a patch that can be applied after SOLR-5756 that adds a test. Or I could just roll this patch into the other one.

        Show
        Scott Blum added a comment - You can put my name on this. I have a patch that can be applied after SOLR-5756 that adds a test. Or I could just roll this patch into the other one.
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks! Looks good. You can roll it in with SOLR-5756 and I can commit them together.

        Show
        Shalin Shekhar Mangar added a comment - Thanks! Looks good. You can roll it in with SOLR-5756 and I can commit them together.
        Hide
        ASF subversion and git services added a comment -

        Commit 1694692 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1694692 ]

        SOLR-5756: A utility Collection API to move a collection from stateFormat=1 to stateFormat=2
        SOLR-7870: Write a test which asserts that requests to stateFormat=2 collection succeed on a node even after all local replicas of that collection have been removed

        Show
        ASF subversion and git services added a comment - Commit 1694692 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1694692 ] SOLR-5756 : A utility Collection API to move a collection from stateFormat=1 to stateFormat=2 SOLR-7870 : Write a test which asserts that requests to stateFormat=2 collection succeed on a node even after all local replicas of that collection have been removed
        Hide
        ASF subversion and git services added a comment -

        Commit 1695026 from shalin@apache.org in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1695026 ]

        SOLR-5756: A utility Collection API to move a collection from stateFormat=1 to stateFormat=2
        SOLR-7870: Write a test which asserts that requests to stateFormat=2 collection succeed on a node even after all local replicas of that collection have been removed

        Show
        ASF subversion and git services added a comment - Commit 1695026 from shalin@apache.org in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1695026 ] SOLR-5756 : A utility Collection API to move a collection from stateFormat=1 to stateFormat=2 SOLR-7870 : Write a test which asserts that requests to stateFormat=2 collection succeed on a node even after all local replicas of that collection have been removed
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Scott!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Scott!

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development