Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F72AE207 for ; Tue, 15 Jan 2013 15:50:16 +0000 (UTC) Received: (qmail 4016 invoked by uid 500); 15 Jan 2013 15:50:16 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 3868 invoked by uid 500); 15 Jan 2013 15:50:16 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 2614 invoked by uid 99); 15 Jan 2013 15:50:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 15:50:13 +0000 Date: Tue, 15 Jan 2013 15:50:13 +0000 (UTC) From: "Eric Newton (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-965) Zookeeper session ids created as unsigned long, parsed in ZooUtils.java as signed long MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Newton updated ACCUMULO-965: --------------------------------- Assignee: Eric Newton (was: John Vines) > Zookeeper session ids created as unsigned long, parsed in ZooUtils.java as signed long > -------------------------------------------------------------------------------------- > > Key: ACCUMULO-965 > URL: https://issues.apache.org/jira/browse/ACCUMULO-965 > Project: Accumulo > Issue Type: Bug > Components: start > Affects Versions: 1.4.2 > Environment: Hadoop 0.20, ZooKeeper 3.4.3, CentOS 2.6, x64 CPU, Java 1.6.0_24 > Reporter: Rich Alberth > Assignee: Eric Newton > Priority: Critical > Fix For: 1.5.0, 1.4.3 > > > Seems like this may be a bug. I looked at > LiveTServerSet.assignTablet() it eventually calls Long.toHexString(). > The javadoc for toHexString() says the following. > {code}Returns a string representation of the long > argument as an unsigned integer in base 16. > {code} > However, the method we are using to parse the Long can not handle > unsigned longs greater than MAX_LONG. There does not seem to be a > method in long that can parse the output of toHexString(). For > example the following will fail, any negative number will fail. > {code}Long.parseLong(Long.toHexString(-1), 16);{code} > Original Stack Dump: > {code} > java.lang.NumberFormatException: For input string: "b53c3a3610ce0001" > at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > at java.lang.Long.parseLong(Long.java:422) > at org.apache.accumulo.core.zookeeper.ZooUtil$LockID.(ZooUtil.java:64) > at org.apache.accumulo.server.tabletserver.TabletServer$ThriftClientHandler.checkPermission(TabletServer.java:1794) > at org.apache.accumulo.server.tabletserver.TabletServer$ThriftClientHandler.loadTablet(TabletServer.java:1814) > at org.apache.accumulo.core.tabletserver.thrift.TabletClientService$Processor.process(TabletClientService.java:2037) > at org.apache.accumulo.server.util.TServerUtils$TimedProcessor.process(TServerUtils.java:154) > at org.apache.thrift.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:631) > at org.apache.accumulo.server.util.TServerUtils$THsHaServer$Invocation.run(TServerUtils.java:202) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira