Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Testing expired sessions bug?


+
Ben Bangert 2012-08-21, 20:00
+
Jordan Zimmerman 2012-08-21, 20:02
+
Ben Bangert 2012-08-21, 20:13
+
Jordan Zimmerman 2012-08-21, 20:41
+
Ben Bangert 2012-08-21, 21:30
+
Jordan Zimmerman 2012-08-21, 21:43
+
Ben Bangert 2012-08-21, 22:18
+
Michi Mutsuzaki 2012-08-21, 22:39
+
Ben Bangert 2012-08-21, 23:08
+
Michi Mutsuzaki 2012-08-21, 23:31
+
Ben Bangert 2012-08-22, 00:56
+
Hanno Schlichting 2012-08-22, 18:54
Copy link to this message
-
Re: Testing expired sessions bug?
On Wed, Aug 22, 2012 at 8:54 PM, Hanno Schlichting <[EMAIL PROTECTED]> wrote:
> Note how there's no ZooTrace entries in here and no "Session 0x... is
> valid..." message as logged in ZooKeeperServer.revalidateSession.
> Reading the server code it looks like the checkPasswd check fails in
> reopenSession. But I have no idea why that would suddenly happen in
> some of the cases.

Apparently it's the session password as memorized in the C binding.

This is the output of doing essentially:

handle = zookeeper.init(...)
print 'Client id %s' % repr(zookeeper.client_id(handle))

Run number: 9
test_bad_session_expire (kazoo.tests.test_client.TestConnection) ...
Client id: (0L, '')
Client id: (88189511064027136L,
'\x7fIFM\xa0\x96\x9e\xbc\xf5\xadZ\x0e\xe9wd\xfe')

Run number: 10
test_bad_session_expire (kazoo.tests.test_client.TestConnection) ...
Client id: (0L, '')
Client id: (88189511508623360L, '\xff')

In all good cases we see proper passwords of 16 bytes. In the failure
case we just get '\xff'.

Hanno
+
Jordan Zimmerman 2012-08-21, 20:40
+
Marshall McMullen 2012-08-22, 21:59
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB