You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Chris Nauroth (Jira)" <ji...@apache.org> on 2022/10/28 22:14:00 UTC

[jira] [Resolved] (ZOOKEEPER-4430) Why is there an error code of `error -101` in the transaction log of zookeeper

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-4430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Nauroth resolved ZOOKEEPER-4430.
--------------------------------------
      Assignee: Chris Nauroth
    Resolution: Not A Problem

Hello [~Caelebs].

I'm not sure we've made this easily discoverable in documentation, but -101 corresponds to a {{NONODE}} error:

https://github.com/apache/zookeeper/blob/release-3.5.1/src/java/main/org/apache/zookeeper/KeeperException.java#L360

https://github.com/apache/zookeeper/blob/release-3.5.1/src/java/main/org/apache/zookeeper/KeeperException.java#L255

For example, attempting a setData call on a znode that doesn't exist could return this error.

I think this issue was informational in nature and not really reporting a ZooKeeper bug, so I'll close it now. I hope this helps.

> Why is there an error code of `error -101` in the transaction log of zookeeper
> ------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4430
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4430
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.5.1
>         Environment: * OS : CentOS Linux release 7.4.1708 (Core)
>  * zookeeper : 3.5.1
>  * JAVA: 1.8.0_171-b11
>            Reporter: GUANGXILAOBIAO
>            Assignee: Chris Nauroth
>            Priority: Major
>
> I found that there is an error code of `error -101` in the transaction log of zookeeper, But I can't find any valid information about this error, so I don't know what this error means and does it have any impact?
> {quote}12/21/21 3:27:01 PM CST session 0x0 cxid 0x0 zxid 0xcdd03 deleteContainer '/lock/sso/YN_yinpengcheng
> 12/21/21 3:27:55 PM CST session 0x1094b0581cb002e cxid 0x3f09 zxid 0xcdd04 error -101
> 12/21/21 3:27:55 PM CST session 0x1094b0581cb002e cxid 0x3f0d zxid 0xcdd05 createContainer '/lock/sso/XNY_lixinpo,,v{s{31,s
> {'world,'anyone}}},3
> 12/21/21 3:27:55 PM CST session 0x1094b0581cb002e cxid 0x3f0e zxid 0xcdd06 create '/lock/sso/XNY_lixinpo/_c_01a1ace7-e523-4936-9405-b4a11c64f93c-lock-0000000000,#3137322e31362e302e3837,v\{s{31,s{'world,'anyone}
> }},T,1
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)