[
https://issues.apache.org/jira/browse/ZOOKEEPER-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012135#comment-15012135
]
Arshad Mohammad commented on ZOOKEEPER-2323:
--------------------------------------------
{noformat}
2015-11-18 23:46:39,045 [myid:] - INFO
[main-SendThread(192.168.1.3:2183):ClientCnxn$SendThread@1138] - Opening socket
connection to server 192.168.1.3/192.168.1.3:2183. Will attempt to
SASL-authenticate using Login Context section 'Client'
2015-11-18 23:46:40,387 [myid:] - WARN
[main-SendThread(192.168.1.3:2183):ClientCnxn$SendThread@1206] - Client session
timed out, have not heard from server in 1499ms for sessionid 0x200009eb6510002
2015-11-18 23:46:40,387 [myid:] - INFO
[main-SendThread(192.168.1.3:2183):ClientCnxn$SendThread@1254] - Client session
timed out, have not heard from server in 1499ms for sessionid
0x200009eb6510002, closing socket connection and attempting reconnect
2015-11-18 23:46:41,323 [myid:] - INFO
[main-SendThread(192.168.1.3:2181):ZooKeeperSaslClient@235] - Client will use
DIGEST-MD5 as SASL mechanism.
2015-11-18 23:46:41,323 [myid:] - ERROR
[main-SendThread(192.168.1.3:2181):ZooKeeperSaslClient@305] - Exception while
trying to create SASL client: java.lang.ArrayIndexOutOfBoundsException: 0
2015-11-18 23:46:41,323 [myid:] - INFO
[main-SendThread(192.168.1.3:2181):ClientCnxn$SendThread@1138] - Opening socket
connection to server 192.168.1.3/192.168.1.3:2181. Will attempt to
SASL-authenticate using Login Context section 'Client'
2015-11-18 23:46:42,666 [myid:] - WARN
[main-SendThread(192.168.1.3:2181):ClientCnxn$SendThread@1206] - Client session
timed out, have not heard from server in 2169ms for sessionid 0x200009eb6510002
2015-11-18 23:46:42,666 [myid:] - INFO
[main-SendThread(192.168.1.3:2181):ClientCnxn$SendThread@1254] - Client session
timed out, have not heard from server in 2169ms for sessionid
0x200009eb6510002, closing socket connection and attempting reconnect
2015-11-18 23:46:44,365 [myid:] - INFO
[main-SendThread(192.168.1.3:2182):ZooKeeperSaslClient@235] - Client will use
DIGEST-MD5 as SASL mechanism.
2015-11-18 23:46:44,365 [myid:] - ERROR
[main-SendThread(192.168.1.3:2182):ZooKeeperSaslClient@305] - Exception while
trying to create SASL client: java.lang.ArrayIndexOutOfBoundsException: 0
2015-11-18 23:46:44,365 [myid:] - INFO
[main-SendThread(192.168.1.3:2182):ClientCnxn$SendThread@1138] - Opening socket
connection to server 192.168.1.3/192.168.1.3:2182. Will attempt to
SASL-authenticate using Login Context section 'Client'
2015-11-18 23:46:44,365 [myid:] - INFO
[main-SendThread(192.168.1.3:2182):ClientCnxn$SendThread@980] - Socket
connection established, initiating session, client: /192.168.1.2:51072, server:
192.168.1.3/192.168.1.3:2182
2015-11-18 23:46:44,396 [myid:] - WARN
[main-SendThread(192.168.1.3:2182):ClientCnxn$SendThread@1392] - Unable to
reconnect to ZooKeeper service, session 0x200009eb6510002 has expired
2015-11-18 23:46:44,396 [myid:] - INFO
[main-SendThread(192.168.1.3:2182):ClientCnxn$SendThread@1252] - Unable to
reconnect to ZooKeeper service, session 0x200009eb6510002 has expired, closing
socket connection
2015-11-18 23:46:44,396 [myid:] - INFO [main-EventThread:ZooKeeper@716] -
Initiating client connection,
connectString=192.168.1.3:2181,192.168.1.3:2182,192.168.1.3:2183
sessionTimeout=4000 watcher=com.mycom.bds.zk.ContinuousRunningZKClient@15fa2b3e
{noformat}
> ZooKeeper client enters into infinite AuthFailedException cycle if its unable
> to recreate Kerberos ticket
> ---------------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-2323
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2323
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Reporter: Arshad Mohammad
> Assignee: Arshad Mohammad
> Fix For: 3.5.2
>
>
> ZooKeeper client enters into infinite AuthFailedException cycle. For every
> operation its throws AuthFailedException
> Here is the create operation exception
> {code}
> org.apache.zookeeper.KeeperException$AuthFailedException: KeeperErrorCode =
> AuthFailed for /continuousRunningZKClient
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1753)
> {code}
> This can be reproduced easily with the following steps:
> # Reduce the ZooKeeper client principal max life for example set 2 min. use
> command {color:blue} modprinc -maxlife 2min zkcli {color} in kadmin. (This
> is done to reduce the issue reproduce time)
> # Connect Client to ZooKeeper quorum,let it gets connected and some
> operations are done successfully
> # Disconnect the Client's network, by pulling out the Ethernet cable or by
> any way. Now the Client is in disconnected state, no operation is
> expected,Client tries to reconnect to different-different servers in the
> ZooKeeper quorum.
> # After two minutes Client tries to get new Keberos ticket and it fails.
> # Connect the Client to network. Client comes in connected state but
> AuthFailedException for every operation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)