[
https://issues.apache.org/jira/browse/DERBY-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
V.Narayanan updated DERBY-2921:
-------------------------------
Attachment: Replication_Network_expln_v6.txt
Replication_Network_v6.stat
Replication_Network_v6.diff
Pls find attached the patch contains the Network part of the replication code
changed to conform to the class diagrams attached in Derby-2872. Also pls find
attached a text file that explains the summary of the changes.
I tested the network code with standalone programs for now. The following
code snipet would start the receiver.
ReplicationMessageReceive rec = new ReplicationMessageReceive(null, -1);
rec.initConnection();
and the following would start the transmitter and cause it to send the
initiator message breaking the accept wait of the receiver.
ReplicationMessageTransmit send = new
ReplicationMessageTransmit(null, -1);
send.initConnection();
The code helps to check that the transmission and the reception of messages and
the
parsing of the initiator message is happening correctly. Pls note that in this
case
the network classes would use the default values for the host name and the port
number.
This code can be further extended to test the Receiver and the transmitter for
other
type of replication messages, but I am hoping that this exercise can wait for
creation
of further interfaces that actually use the network code.
I am running tests on this code and shall revert back with results as soon as
the tests
complete.
I request for this patch to be considered for reviews and comments.
> Replication: Add a network service that connects the master and slave Derby
> instances
> -------------------------------------------------------------------------------------
>
> Key: DERBY-2921
> URL: https://issues.apache.org/jira/browse/DERBY-2921
> Project: Derby
> Issue Type: Sub-task
> Components: Services
> Affects Versions: 10.4.0.0
> Reporter: Jørgen Løland
> Assignee: V.Narayanan
> Attachments: Replication_Network_expln_v6.txt,
> Replication_Network_v1.diff, Replication_Network_v1.stat,
> Replication_Network_v2.diff, Replication_Network_v2.stat,
> Replication_Network_v3.diff, Replication_Network_v3.stat,
> Replication_Network_v4.diff, Replication_Network_v4.stat,
> Replication_Network_v5.diff, Replication_Network_v5.stat,
> Replication_Network_v6.diff, Replication_Network_v6.stat
>
>
> A network connection is required between the master and slave Derby instances
> of a replicated database. The connection will be used to send many kinds of
> messages, including:
> * log records
> * the database (when replication is started)
> * master -> slave commands (like "stop replication")
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.