lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6397) zkcli script put/putfile should allow overwriting an existing znode's data
Date Wed, 24 Dec 2014 18:44:13 GMT

    [ https://issues.apache.org/jira/browse/SOLR-6397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258434#comment-14258434
] 

ASF subversion and git services commented on SOLR-6397:
-------------------------------------------------------

Commit 1647828 from [~thelabdude] in branch 'dev/trunk'
[ https://svn.apache.org/r1647828 ]

SOLR-6397: zkcli script put/putfile should allow overwriting an existing znode's data

> zkcli script put/putfile should allow overwriting an existing znode's data
> --------------------------------------------------------------------------
>
>                 Key: SOLR-6397
>                 URL: https://issues.apache.org/jira/browse/SOLR-6397
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>            Reporter: Timothy Potter
>            Assignee: Timothy Potter
>              Labels: SolrCloud, difficulty-easy, impact-low
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> zkcli doesn't allow me to update a znode that already exists, perhaps using a -f (force)
flag?
> Currently, if I want to putfile for a znode that already exists, results in:
> Exception in thread "main" org.apache.zookeeper.KeeperException$NodeExistsException:
KeeperErrorCode = NodeExists for /clusterstate.json
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:119)
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> 	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
> 	at org.apache.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:273)
> 	at org.apache.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:270)
> 	at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:73)
> 	at org.apache.solr.common.cloud.SolrZkClient.create(SolrZkClient.java:270)
> 	at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:268)
> The workaround is to use ZooKeeper's command-line set command with "`cat <file>`"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message