[
https://issues.apache.org/jira/browse/DERBY-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577788#action_12577788
]
V.Narayanan commented on DERBY-3447:
------------------------------------
This shows that
"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)
the log shipper thread is still running causing the hang in the master
This shows that
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)
The SlaveLogReceiver thread is hanging on the read method of the socket it is
listening on causing the hang on the slave.
The questions I am searching for answers now is
1) Why is this happening only in the embedded mode?
2) How does turning authentication on affect this?
> 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.