[
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-1.stat
derby-3021-1.diff
Patch v1 adds a service that is booted at database boot time if
SlaveFactory.SLAVE_MODE is specified in the boot Properties. Currently, this
code is not reachable in Derby.
M java/engine/org/apache/derby/modules.properties
A java/engine/org/apache/derby/iapi/services/replication/slave
A
java/engine/org/apache/derby/iapi/services/replication/slave/SlaveFactory.java
A
java/engine/org/apache/derby/impl/services/replication/slave/SlaveController.java
The new service, booted by RawStore if SlaveFactory.SLAVE_MODE is
specified in the boot Properties
M java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java
Sets a variable inSlaveMode = true if SlaveFactory.SLAVE_MODE is found
in the boot properties. This variable is not currently in use, but
will be used soon
M java/engine/org/apache/derby/impl/store/raw/RawStore.java
Boots SlaveFactory if SlaveFactory.SLAVE_MODE is specified in the boot
Properties
M java/engine/org/apache/derby/impl/db/BasicDatabase.java
Throws an exception if the database is in slave mode and a client
tries to connect to it.
M java/engine/org/apache/derby/loc/messages.xml
M java/shared/org/apache/derby/shared/common/reference/SQLState.java
M
java/testing/org/apache/derbyTesting/functionTests/tests/lang/ErrorCodeTest.java
The new 08004 SQL state and message used when a connection attempt is
performed on a database already booted in slave mode
All tests pass for this patch combined with patch 1 for DERBY-3060.
> Replication: Add a ReplicationSlave controller that will manage replication
> on the slave side
> ---------------------------------------------------------------------------------------------
>
> Key: DERBY-3021
> URL: https://issues.apache.org/jira/browse/DERBY-3021
> Project: Derby
> Issue Type: Sub-task
> Components: Services
> Affects Versions: 10.4.0.0
> Reporter: Jørgen Løland
> Assignee: Jørgen Løland
> Attachments: derby-3021-1.diff, derby-3021-1.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.