[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sijie Guo updated BOOKKEEPER-211:
---------------------------------

    Attachment: BK-211.diff

attach a patch to fix the issue, including a test case.
                
> Bookie fails to to start
> ------------------------
>
>                 Key: BOOKKEEPER-211
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-211
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Flavio Junqueira
>            Priority: Blocker
>             Fix For: 4.1.0
>
>         Attachments: BK-211.diff
>
>
> A number of times when I start a bookie with a clean state, it fails to start 
> and I get the following exceptions:
> {noformat}
> 2012-04-06 10:54:42,201 - ERROR [main:Bookie@348] - Error accessing cookie on 
> disks
> java.io.FileNotFoundException: *path*/current/VERSION (No such file or 
> directory)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
>         at 
> org.apache.bookkeeper.bookie.Cookie.writeToDirectory(Cookie.java:114)
>         at 
> org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:337)
>         at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:401)
>         at 
> org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:75)
>         at 
> org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:294)
> 2012-04-06 10:54:42,203 - ERROR [main:BookieServer@308] - Exception running 
> bookie server :
> org.apache.bookkeeper.bookie.BookieException$InvalidCookieException: 
> java.io.FileNotFoundException: *path*/current/VERSION (No such file or 
> directory)
>         at 
> org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:349)
>         at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:401)
>         at 
> org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:75)
>         at 
> org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:294)
> Caused by: java.io.FileNotFoundException: *path*/current/VERSION (No such 
> file or directory)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
>         at 
> org.apache.bookkeeper.bookie.Cookie.writeToDirectory(Cookie.java:114)
>         at 
> org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:337)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to