db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V.Narayanan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3447) Shutdown on a database without stopping replication hangs
Date Wed, 12 Mar 2008 10:16:46 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577785#action_12577785
] 

V.Narayanan commented on DERBY-3447:
------------------------------------

I am not able to reproduce this problem on the network client (surprises me, Maybe I did something
wrong!!). 
But am able to reproduce this in the embedded mode. I did a jstack to find out what is hanging
and found the
following relevant

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
master

"Attach Listener" daemon prio=10 tid=0x08312000 nid=0x2086 waiting on condition [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"DestroyJavaVM" prio=10 tid=0x08059800 nid=0x2004 waiting on condition [0x00000000..0xb7dfc090]
   java.lang.Thread.State: RUNNABLE

"derby.master.logger-mydb" prio=10 tid=0x08311800 nid=0x203b in Object.wait() [0xb5594000..0xb55950c0]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c0b6180> (a org.apache.derby.impl.store.replication.master.AsynchronousLogShipper)
        at org.apache.derby.impl.store.replication.master.AsynchronousLogShipper.run(AsynchronousLogShipper.java:203)
        - locked <0x8c0b6180> (a org.apache.derby.impl.store.replication.master.AsynchronousLogShipper)

"derby.rawStoreDaemon" daemon prio=10 tid=0x082b5c00 nid=0x2015 in Object.wait() [0xb5607000..0xb5608040]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c61f0a0> (a org.apache.derby.impl.services.daemon.BasicDaemon)
        at org.apache.derby.impl.services.daemon.BasicDaemon.rest(BasicDaemon.java:571)
        - locked <0x8c61f0a0> (a org.apache.derby.impl.services.daemon.BasicDaemon)
        at org.apache.derby.impl.services.daemon.BasicDaemon.run(BasicDaemon.java:388)
        at java.lang.Thread.run(Thread.java:619)

"Timer-0" daemon prio=10 tid=0x08294000 nid=0x2014 in Object.wait() [0xb5666000..0xb5666fc0]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c5d47b0> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:485)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0x8c5d47b0> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"derby.antiGC" daemon prio=10 tid=0x08213c00 nid=0x2013 in Object.wait() [0xb56ba000..0xb56baf40]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c5870a8> (a org.apache.derby.impl.services.monitor.AntiGC)
        at java.lang.Object.wait(Object.java:485)
        at org.apache.derby.impl.services.monitor.AntiGC.run(BaseMonitor.java:2196)
        - locked <0x8c5870a8> (a org.apache.derby.impl.services.monitor.AntiGC)
        at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=10 tid=0x0808e000 nid=0x200a runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x0808c400 nid=0x2009 waiting on condition [0x00000000..0xb5a5b858]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x0808b000 nid=0x2008 runnable [0x00000000..0xb5aace20]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x08082800 nid=0x2007 in Object.wait() [0xb5b3c000..0xb5b3d0c0]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c551968> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x8c551968> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x08081800 nid=0x2006 in Object.wait() [0xb5b8d000..0xb5b8e040]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c5519f8> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x8c5519f8> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x08080000 nid=0x2005 runnable 

"VM Periodic Task Thread" prio=10 tid=0x0808f800 nid=0x200b waiting on condition 

JNI global references: 690

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

Slave

"Attach Listener" daemon prio=10 tid=0x0820ac00 nid=0x2092 runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"DestroyJavaVM" prio=10 tid=0x08059800 nid=0x2029 waiting on condition [0x00000000..0xb7d66090]
   java.lang.Thread.State: RUNNABLE

"derby.slave.logger-mydb" prio=10 tid=0x0820f000 nid=0x203a runnable [0xb54ac000..0xb54acf40]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.net.SocketInputStream.read(SocketInputStream.java:182)
        at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2247)
        at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2540)
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2550)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at org.apache.derby.impl.store.replication.net.SocketConnection.readMessage(SocketConnection.java:84)
        at org.apache.derby.impl.store.replication.net.ReplicationMessageReceive.readMessage(ReplicationMessageReceive.java:387)
        at org.apache.derby.impl.store.replication.slave.SlaveController$SlaveLogReceiverThread.run(SlaveController.java:476)

"derby.rawStoreDaemon" daemon prio=10 tid=0x083bc800 nid=0x2039 in Object.wait() [0xb5503000..0xb5503fc0]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c1201b8> (a org.apache.derby.impl.services.daemon.BasicDaemon)
        at org.apache.derby.impl.services.daemon.BasicDaemon.rest(BasicDaemon.java:571)
        - locked <0x8c1201b8> (a org.apache.derby.impl.services.daemon.BasicDaemon)
        at org.apache.derby.impl.services.daemon.BasicDaemon.run(BasicDaemon.java:388)
        at java.lang.Thread.run(Thread.java:619)

"derby.slave.boot-mydb" prio=10 tid=0x083bc400 nid=0x2038 in Object.wait() [0xb5570000..0xb5571040]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c120268> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:485)
        at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:712)
        - locked <0x8c120268> (a java.lang.Object)
        at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:334)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1999)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:553)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:427)
        at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:1019)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1999)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:553)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:427)
        at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:789)
        at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:205)
        at org.apache.derby.impl.db.SlaveDatabase.bootBasicDatabase(SlaveDatabase.java:421)
        at org.apache.derby.impl.db.SlaveDatabase.access$000(SlaveDatabase.java:70)
        at org.apache.derby.impl.db.SlaveDatabase$SlaveDatabaseBootThread.run(SlaveDatabase.java:308)
        at java.lang.Thread.run(Thread.java:619)

"Timer-0" daemon prio=10 tid=0x0816d800 nid=0x2036 in Object.wait() [0xb55cf000..0xb55d0140]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c5d4980> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:485)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0x8c5d4980> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"derby.antiGC" daemon prio=10 tid=0x08062400 nid=0x2035 in Object.wait() [0xb5623000..0xb5623dc0]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c587550> (a org.apache.derby.impl.services.monitor.AntiGC)
        at java.lang.Object.wait(Object.java:485)
        at org.apache.derby.impl.services.monitor.AntiGC.run(BaseMonitor.java:2196)
        - locked <0x8c587550> (a org.apache.derby.impl.services.monitor.AntiGC)
        at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=10 tid=0x0808e000 nid=0x202f runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x0808c400 nid=0x202e waiting on condition [0x00000000..0xb59c59d8]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x0808b000 nid=0x202d runnable [0x00000000..0xb5a16ca0]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x08082800 nid=0x202c in Object.wait() [0xb5aa6000..0xb5aa7040]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c551960> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x8c551960> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x08081800 nid=0x202b in Object.wait() [0xb5af7000..0xb5af80c0]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x8c5519f0> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x8c5519f0> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x08080000 nid=0x202a runnable 

"VM Periodic Task Thread" prio=10 tid=0x0808f800 nid=0x2030 waiting on condition 

JNI global references: 732
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

> Shutdown on a database without stopping replication hangs
> ---------------------------------------------------------
>
>                 Key: DERBY-3447
>                 URL: https://issues.apache.org/jira/browse/DERBY-3447
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 10.4.0.0
>            Reporter: V.Narayanan
>            Assignee: V.Narayanan
>         Attachments: Derby3447_v1.diff, Derby3447_v1.stat
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message