zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iv...@apache.org
Subject svn commit: r1215098 - in /zookeeper/bookkeeper/trunk: CHANGES.txt bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
Date Fri, 16 Dec 2011 11:43:32 GMT
Author: ivank
Date: Fri Dec 16 11:43:31 2011
New Revision: 1215098

URL: http://svn.apache.org/viewvc?rev=1215098&view=rev
Log:
BOOKKEEPER-142: Parsing last log id is wrong, which may make entry log files overwritten (Sijie
Gou via ivank)

Modified:
    zookeeper/bookkeeper/trunk/CHANGES.txt
    zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java

Modified: zookeeper/bookkeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/trunk/CHANGES.txt?rev=1215098&r1=1215097&r2=1215098&view=diff
==============================================================================
--- zookeeper/bookkeeper/trunk/CHANGES.txt (original)
+++ zookeeper/bookkeeper/trunk/CHANGES.txt Fri Dec 16 11:43:31 2011
@@ -10,6 +10,10 @@ Trunk (unreleased changes)
 
     BUGFIXES:
 
+      bookkeeper-server/
+
+        BOOKKEEPER-142: Parsing last log id is wrong, which may make entry log files overwritten
(Sijie Gou via ivank)
+
     IMPROVEMENTS:
 
 Release 4.0.0 - 2011-11-30

Modified: zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java?rev=1215098&r1=1215097&r2=1215098&view=diff
==============================================================================
--- zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
(original)
+++ zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
Fri Dec 16 11:43:31 2011
@@ -261,7 +261,7 @@ public class EntryLogger {
         BufferedReader br = new BufferedReader(new InputStreamReader(fis));
         try {
             String lastIdString = br.readLine();
-            return Long.parseLong(lastIdString);
+            return Long.parseLong(lastIdString, 16);
         } catch (IOException e) {
             return -1;
         } catch(NumberFormatException e) {



Mime
View raw message