db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ole Solberg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3374) Hang in master server if startMaster command is given twice
Date Fri, 01 Feb 2008 14:21:08 GMT

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

Ole Solberg commented on DERBY-3374:
------------------------------------

FWIW: Looks like the master server hangs in
org.apache.derby.impl.services.replication.net.ReplicationMessageTransmit.initConnection():
on
       socketConn = new SocketConnection(s);
        
and never gets to
        //send the initiate message and receive acknowledgment
        sendInitiatorAndReceiveAck();  


JConsole output:
--------------------
Name: DRDAConnThread_6
State: RUNNABLE
Total blocked: 0  Total waited: 0

Stack trace: 
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
org.apache.derby.impl.services.replication.net.SocketConnection.<init>(SocketConnection.java:67)
org.apache.derby.impl.services.replication.net.ReplicationMessageTransmit.initConnection(ReplicationMessageTransmit.java:116)
<======
org.apache.derby.impl.services.replication.master.MasterController.setupConnection(MasterController.java:374)
org.apache.derby.impl.services.replication.master.MasterController.startMaster(MasterController.java:188)
org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(RawStore.java:499)
org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(RAMAccessManager.java:928)
org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(BasicDatabase.java:375)
org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(EmbedConnection.java:658)
org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:340)
org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:73)
org.apache.derby.impl.jdbc.EmbedConnection40.<init>(EmbedConnection40.java:54)
org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Driver40.java:68)
org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:211)
org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:119)
org.apache.derby.impl.drda.Database.makeConnection(Database.java:234)
org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(DRDAConnThread.java:1346)
org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(DRDAConnThread.java:1296)
org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(DRDAConnThread.java:3033)
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1090)
org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:932)
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:277)


> Hang in master server if startMaster command is given twice
> -----------------------------------------------------------
>
>                 Key: DERBY-3374
>                 URL: https://issues.apache.org/jira/browse/DERBY-3374
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 10.4.0.0
>         Environment: Trunk (615841) + patch DERBY-3205/stopSlave_v1b
>            Reporter: Ole Solberg
>
> master and slave servers started.
> startSlave:
> ij> CONNECT 'jdbc:derby://urd12:9999/test;startSlave=true;slaveHost=urd12;slavePort=8989';
>         ERROR XRE08: DERBY SQL error: SQLCODE: -1, SQLSTATE: XRE08, SQLERRMC: Replication
slave mode started successfully for database 'test'. Connection refused because the database
is in replication slave mode. 
> slave derby.log:
> Replication slave role started for database 'test'.
> startMaster:
> ij> CONNECT 'jdbc:derby://urd11:8888/test;startMaster=true;slaveHost=urd12;slavePort=8989';
> ij> 
> master derby.log:
> Replication master role started for database 'null'.
> 2. startMaster:
> ij> CONNECT 'jdbc:derby://urd11:8888/test;startMaster=true;slaveHost=urd12;slavePort=8989';
> ij does not return.
> No output to master OR slave derby.log.

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