You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "V.Narayanan (JIRA)" <ji...@apache.org> on 2008/02/08 03:51:09 UTC

[jira] Updated: (DERBY-3392) Performing failover on a database not being replicated should give a more meaningful error message.

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

V.Narayanan updated DERBY-3392:
-------------------------------

    Attachment: Derby_3392_v1.stat
                Derby_3392_v1.diff

I decided to go by 1) since I felt we would not need
specific messages for each replication operation. 

I tried the following

ij>  connect 'jdbc:derby:mydb;failover=true';
ERROR XRE07: Could not perform operation because the database is not in replication master mode.
ij>

Now I get the desired message.

I request this patch to be considered for reviews and comments and of everything is OK
a commit too.

I am running tests on this patch and shall post the results of the test
runs as soon as the tests complete.

> Performing failover on a database not being replicated should give a more meaningful error message.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3392
>                 URL: https://issues.apache.org/jira/browse/DERBY-3392
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 10.4.0.0
>            Reporter: V.Narayanan
>            Assignee: V.Narayanan
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: Derby_3392_v1.diff, Derby_3392_v1.stat
>
>
> Oystein says
> "If I do failover on a database where replication has not been started, I get the following:
> ij version 10.4
> ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass';
> ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass;failover=true';
> ERROR XRE21: Error occurred while performing failover for database 'masterDB', Failover attempt was aborted.
> I think I should rather get an error that says that database is not being replicated. (I get that if I try to stop replication on a non-replicated database)."

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