[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511543#comment-13511543
 ] 

Hadoop QA commented on BOOKKEEPER-465:
--------------------------------------

Testing JIRA BOOKKEEPER-465


Patch 
[PortNewLogId.patch|https://issues.apache.org/jira/secure/attachment/12556374/PortNewLogId.patch]
 downloaded at Thu Dec  6 17:11:56 UTC 2012

----------------------------

{color:green}+1 PATCH_APPLIES{color}
{color:green}+1 CLEAN{color}
{color:red}-1 RAW_PATCH_ANALYSIS{color}
.    {color:green}+1{color} the patch does not introduce any @author tags
.    {color:green}+1{color} the patch does not introduce any tabs
.    {color:green}+1{color} the patch does not introduce any trailing spaces
.    {color:green}+1{color} the patch does not introduce any line longer than 
120
.    {color:red}-1{color} the patch does not add/modify any testcase
{color:green}+1 RAT{color}
.    {color:green}+1{color} the patch does not seem to introduce new RAT 
warnings
{color:green}+1 JAVADOC{color}
.    {color:green}+1{color} the patch does not seem to introduce new Javadoc 
warnings
{color:green}+1 COMPILE{color}
.    {color:green}+1{color} HEAD compiles
.    {color:green}+1{color} patch compiles
.    {color:green}+1{color} the patch does not seem to introduce new javac 
warnings
{color:green}+1 FINDBUGS{color}
.    {color:green}+1{color} the patch does not seem to introduce new Findbugs 
warnings
{color:green}+1 TESTS{color}
.    Tests run: 393
{color:green}+1 DISTRO{color}
.    {color:green}+1{color} distro tarball builds with the patch 

----------------------------
{color:red}*-1 Overall result, please check the reported -1(s)*{color}


The full output of the test-patch run is available at

.   https://builds.apache.org/job/bookkeeper-trunk-precommit-build/77/
                
> CreateNewLog may overwrite lastLogId with smaller value 
> --------------------------------------------------------
>
>                 Key: BOOKKEEPER-465
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-465
>             Project: Bookkeeper
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>            Reporter: Yixue (Andrew) Zhu
>            Assignee: Yixue (Andrew) Zhu
>            Priority: Blocker
>              Labels: patch
>             Fix For: 4.2.0
>
>         Attachments: PortNewLogId.patch
>
>
> In createNewLog(), only one directory is searched to check for duplicate log 
> id.
> Then the id is used to overwrite lastLogId.
> It looks like regression from BOOKKEEPER-345. 
>      // It would better not to overwrite existing entry log files
>     File newLogFile = null;
>         do {
>             String logFileName = Long.toHexString(++logId) + ".log";
>             File dir = ledgerDirsManager.pickRandomWritableDir();
>             newLogFile = new File(dir, logFileName);
>             currentDir = dir;
>             if (newLogFile.exists()) {
>                 LOG.warn("Found existed entry log " + newLogFile
>                         + " when trying to create it as a new log.");
>                 newLogFile = null;
>                 continue;
>             }
>         } while (newLogFile == null);

--
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

Reply via email to