db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørgen Løland (JIRA) <j...@apache.org>
Subject [jira] Updated: (DERBY-3021) Replication: Add a ReplicationSlave controller that will manage replication on the slave side
Date Wed, 31 Oct 2007 12:54:51 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jørgen Løland updated DERBY-3021:

    Attachment: derby-3021-2a.diff

The attached patch, 2a, extends the functionality of the SlaveController to make use of the
modifications to store.raw.log made in derby-3071. 

It touches the following files:

M      java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessageReceive.java

Constructor now throws StandardException
initConnection now times out if connection is not established

M      java/engine/org/apache/derby/impl/services/replication/slave/SlaveController.java

Localhost is now used to set up the network socket
Added thread that applies log chunks received from the master
Functionality to start replication slave mode

M      java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java

Adds public methods for switchLogFile and applyLogRecord. These check that replication slave
mode is active to avoid misuse.
rename initializeSlaveReplication() to initializeReplicationSlaveMode() for consistency

M      java/engine/org/apache/derby/iapi/services/replication/slave/SlaveFactory.java

Added property keys: DB_NAME and SLAVE_HOST

M      java/engine/org/apache/derby/impl/store/raw/log/ReadOnly.java
M      java/engine/org/apache/derby/iapi/store/raw/log/LogFactory.java

Added method initializeReplicationSlaveRole()

M      java/engine/org/apache/derby/loc/messages.xml
M      java/shared/org/apache/derby/shared/common/reference/SQLState.java
M      java/shared/org/apache/derby/shared/common/reference/MessageId.java

Added messages and exceptions

> Replication: Add a ReplicationSlave controller that will manage replication on the slave
> ---------------------------------------------------------------------------------------------
>                 Key: DERBY-3021
>                 URL: https://issues.apache.org/jira/browse/DERBY-3021
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Services
>    Affects Versions:
>            Reporter: Jørgen Løland
>            Assignee: Jørgen Løland
>         Attachments: derby-3021-1.diff, derby-3021-1.stat, derby-3021-1b.diff, derby-3021-1b.stat,
derby-3021-2a.diff, derby-3021-2a.stat
> The replication slave role includes many tasks:
> * set up a network connection with the master
> * receive chunks of log from the master, and parse these into individual log records
> * append log records to the local log file
> * make sure that the recovery process is not allowed to access the logfile we are currently
writing to
> * etc
> This issue is for adding a controller that will start/stop/initiate all services needed
for the replication slave role.

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

View raw message