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.