You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org> on 2012/04/29 08:28:01 UTC

[jira] [Created] (BOOKKEEPER-232) AsyncBK tests failing

Uma Maheswara Rao G created BOOKKEEPER-232:
----------------------------------------------

             Summary: AsyncBK tests failing 
                 Key: BOOKKEEPER-232
                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
             Project: Bookkeeper
          Issue Type: Bug
          Components: bookkeeper-server
    Affects Versions: 4.1.0
         Environment: Windows
            Reporter: Uma Maheswara Rao G
            Assignee: Uma Maheswara Rao G
            Priority: Blocker



Trace:
java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264519#comment-13264519 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

{quote}
2012-04-29 17:01:11,382 - INFO  - [main:FinalRequestProcessor@423] - shutdown of
 request processor complete
2012-04-29 17:01:11,383 - INFO  - [main:ClientBase@227] - connecting to localhos
t 2181
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50.091 sec

Results :

Tests run: 14, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.195s
[INFO] Finished at: Sun Apr 29 17:01:12 IST 2012
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------

{quote}
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269601#comment-13269601 ] 

Ivan Kelly commented on BOOKKEEPER-232:
---------------------------------------

Another issue with the patch is that it leaks internal implementation detail of LedgerCache. Basically, LedgerCache should not be called that. It should be called LedgerIndex as all methods on the interface have to do with indexing. In fact, ill open a JIRA to rename it after this comment. The problem is that clearCache tells the user of the API that it maybe a cache there. I think it would be much better to simply call this method "close()" and implement the Closeable interface. This way the interface is kept a lot cleaner.


                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269515#comment-13269515 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

Yes, Flavio, I forgot to include IOUtils class in the patch...my bad. I just ran the tests in my env. Did not re apply the patch and check. Let me re-generate the patch. Also will correct formatting issues. Thanks for taking a look.

                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Updated] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated BOOKKEEPER-232:
-------------------------------------------

    Attachment: BOOKKEEPER-232.patch
    
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264679#comment-13264679 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

Yep, Rakesh, I will bring IOUtils cleanup methods here. That would handle this checks.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Updated] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated BOOKKEEPER-232:
-------------------------------------------

    Attachment: BOOKKEEPER-232.patch

Attached the patch with IOUtils.close api.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269744#comment-13269744 ] 

Ivan Kelly commented on BOOKKEEPER-232:
---------------------------------------

lgtm +1. Don't worry about the rename of LedgerCache yet. It needs to be done when the patch queue is small because otherwise it'll probably hit a conflict. We should do before 4.1 though.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269447#comment-13269447 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

@Flavio, Do you have time to review it?. So, that our tests will pass in windows ( our dev env).
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Updated] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated BOOKKEEPER-232:
-------------------------------------------

    Attachment: BOOKKEEPER-232.patch
    
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269741#comment-13269741 ] 

Flavio Junqueira commented on BOOKKEEPER-232:
---------------------------------------------

+1, looks good. Ivan?
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Rakesh R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264678#comment-13264678 ] 

Rakesh R commented on BOOKKEEPER-232:
-------------------------------------

I feel, before closing the streams, it would be good to have null checks to avoid unwanted exceptions.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269663#comment-13269663 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

Hi Ivan, Nice point about LedgerCache naming. I will leave it for other JIRA to rename it as you mentioned.( if it is ok for you, you can directly assign that issue to me, i will upload patch). As discussed, now LedgerCache extends Closeable and just implemented close method. Also formatted correctly as per BK guidelines.

If you have time, please take a look.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269486#comment-13269486 ] 

Flavio Junqueira commented on BOOKKEEPER-232:
---------------------------------------------

Looking into it...
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264675#comment-13264675 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

Closing streams in finally would have a bad properties. It will mask the root exceptions. Let me try to bring IOUtils clean up with null checks and close the streams in side try itself and retry on finally with IOUtils. for example: HDFS-2330
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264505#comment-13264505 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

Attached the patch. with this fix, all async tests passing.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264474#comment-13264474 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-232:
------------------------------------------------

I just analysed the cause for this failures.
After stopping bk, we are not closing the EntryLogger and LedgerCache. Seems like ledger cache and entryLogger holding the locks on that files (*.txn, *.idx files).
If we clear the cache and entrylogger can help in this tests to pass.
                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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

        

[jira] [Commented] (BOOKKEEPER-232) AsyncBK tests failing

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269504#comment-13269504 ] 

Flavio Junqueira commented on BOOKKEEPER-232:
---------------------------------------------

It doesn't compile for me, it looks like import org.apache.bookkeeper.util.IOUtils is missing. The patch also contains tabs. Just in case you haven't seen it yet, please have a look at the format we have been using here:

https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute


                
> AsyncBK tests failing 
> ----------------------
>
>                 Key: BOOKKEEPER-232
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-232
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.1.0
>         Environment: Windows
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Blocker
>         Attachments: BOOKKEEPER-232.patch, BOOKKEEPER-232.patch
>
>
> Trace:
> java.io.IOException: Unable to delete file: C:\Users\uma\AppData\Local\Temp\bookie7010257841258186070test\current\136fcc63892.txn
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:150)
> 	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	

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