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

CollectionsHandler#createNodeIfNotExists is a duplicate of ZkCmdExecutor#ensureExists

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None

    Description

      Looks like CollectionsHandler#createNodeIfNotExists is a duplicate of ZkCmdExecutor#ensureExists . Both do the same thing so we could remove CollectionsHandler#createNodeIfNotExists.

      Also looking at ZkCmdExecutor#ensureExists(final String path, final byte[] data,CreateMode createMode, final SolrZkClient zkClient) the createMode parameter is getting discarded.

      Attachments

        1. SOLR-7541.patch
          5 kB
          Varun Thacker
        2. SOLR-7541.patch
          6 kB
          Varun Thacker

        Activity

          People

            varun Varun Thacker
            varun Varun Thacker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: