db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V.Narayanan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3447) Shutdown on a database without stopping replication hangs
Date Fri, 07 Mar 2008 06:40:59 GMT

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

V.Narayanan updated DERBY-3447:
-------------------------------

    Attachment: Derby3447_v1.stat
                Derby3447_v1.diff

Modified the stop() method to call stopMaster in the attached patch.

Ran the following cases as repros, seems to run fine.

Repro 1
-------

exit ij with quit;

ij version 10.4
ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass;create=true';
ij> call syscs_util.syscs_freeze_database(); 
0 rows inserted/updated/deleted
ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass;startMaster=true;slaveHost=localhost;slavePort-8001';
ERROR XJ028: The URL 'jdbc:derby:masterDB;user=oystein;password=pass;startMaster=true;slaveHost=localhost;slavePort-8001'
is not properly formed.
ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass;startMaster=true;slaveHost=localhost;slavePort=8001';
ij(CONNECTION1)> quit;
vn@vn-laptop:~/work/workspaces/Derby3447/master$ 

Repro 2
-------

exit ij, with system shutdown

connect 'jdbc:derby:;shutdown=true' 
and
quit

vn@vn-laptop:~/work/workspaces/Derby3447/master$ java org.apache.derby.tools.ij
ij version 10.4
ij> connect 'jdbc:derby:masterDB;user=oystein;password=pass;create=true';
ij> call syscs_util.syscs_freeze_database();
0 rows inserted/updated/deleted
ij>  connect 'jdbc:derby:masterDB;user=oystein;password=pass;startMaster=true;slaveHost=localhost;slavePort=8001';
ij(CONNECTION1)> connect 'jdbc:derby:;shutdown=true';
ERROR XJ015: Derby system shutdown.
ij(CONNECTION1)> quit;
vn@vn-laptop:~/work/workspaces/Derby3447/master$ 

Repro 3
--------

exit ij, with database shutdown.

vn@vn-laptop:~/work/workspaces/Derby3447/master$ java org.apache.derby.tools.ij
ij version 10.4
ij>  connect 'jdbc:derby:masterDB;user=oystein;password=pass;create=true';
ij>  call syscs_util.syscs_freeze_database();
0 rows inserted/updated/deleted
ij>  connect 'jdbc:derby:masterDB;user=oystein;password=pass;startMaster=true;slaveHost=localhost;slavePort=8001';
ij(CONNECTION1)> connect 'jdbc:derby:masterDB;shutdown=true';
ERROR 08006: Database 'masterDB' shutdown.
ij(CONNECTION1)> exit;
vn@vn-laptop:~/work/workspaces/Derby3447/master$



> Shutdown on a database without stopping replication hangs
> ---------------------------------------------------------
>
>                 Key: DERBY-3447
>                 URL: https://issues.apache.org/jira/browse/DERBY-3447
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 10.4.0.0
>            Reporter: V.Narayanan
>            Assignee: V.Narayanan
>         Attachments: Derby3447_v1.diff, Derby3447_v1.stat
>
>


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