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

Benjamin Reed commented on BOOKKEEPER-67:
-----------------------------------------

on my linux machine i have to increase the number of open files:


ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 15758
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65536
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15758
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

perhaps OSX ignores the open file limit

> BookieReadWriteTest gets blocked and never finishes
> ---------------------------------------------------
>
>                 Key: BOOKKEEPER-67
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-67
>             Project: Bookkeeper
>          Issue Type: Bug
>         Environment: RHEL4.8 and Debian 6
>            Reporter: Matthieu Morel
>         Attachments: BookieReadWriteTest-RHEL4.8.log
>
>
> I systematically reproduce this behaviour on the linux boxes I tested with.
> The test gets stuck acquiring permits from a semaphore, normally used for 
> throttling:
> "main" prio=10 tid=0x08058c00 nid=0x588d waiting on condition [0xf723c000]
>    java.lang.Thread.State: WAITING (parking)
>       at sun.misc.Unsafe.park(Native Method)
>       - parking to wait for  <0xb5619728> (a 
> java.util.concurrent.Semaphore$NonfairSync)
>       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
>       at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
>       at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:969)
>       at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1281)
>       at java.util.concurrent.Semaphore.acquire(Semaphore.java:286)
>       at 
> org.apache.bookkeeper.client.LedgerHandle.asyncAddEntry(LedgerHandle.java:394)
>       at 
> org.apache.bookkeeper.client.LedgerHandle.asyncAddEntry(LedgerHandle.java:366)
>       at 
> org.apache.bookkeeper.test.BookieReadWriteTest.testShutdown(BookieReadWriteTest.java:815)
> The issue might come from the synchronization mechanism used in the test 
> itself. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to