[ 
https://issues.apache.org/jira/browse/DERBY-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905352#action_12905352
 ] 

Mamta A. Satoor commented on DERBY-4786:
----------------------------------------

You are right, Kathey. It sure hangs because the protocol level 1 from client 
is accepted by the server but for shutdown, existing 10.5 server expects 
username and password.

We may have to revert to another approach to this problem which is to send 
shutdown command with protocol level 2 whether there is username and password 
or not. If this command fails because of protocol mismatch, then send shutdown 
command with protocol level 1. Also, if we do try this approach, what should we 
do if the user has provided user name and password for shutdown going against 
10.3 server? Should we throw an exception that username and password can't be 
used for shutdown when going against a server that doesn't support protocol 2 
or should we drop the user name and password and simply send the shutdown with 
protcol level 1 even though user name and password has been provided on the 
shutdown command?

> Shutdown command without username and password should work with mixed client 
> and network server releases.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4786
>                 URL: https://issues.apache.org/jira/browse/DERBY-4786
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client, Network Server
>    Affects Versions: 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.6.1.0
>            Reporter: Mamta A. Satoor
>            Assignee: Mamta A. Satoor
>         Attachments: DERBY4786_patch1_diff.txt
>
>
> DERBY-2109 introduced optional parameters username and password to the 
> shutdown command. But with this fix, the existing shutdown command which does 
> not use username and password stopped working from client with DERBY-2109 
> changes against a network server without DERBY-2109 changes.
> This jira is to ensure that existing shutdown command without user name and 
> password still works fine between different releases of client and network 
> server(with or without DERBY-2109). The new shutdown command introduced by 
> DERBY-2109 will work obviosuly only on client and server with DERBY-2109 
> changes. For client/server not with DERBY-2109 changes attempting to user use 
> name and password will get an error.

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

Reply via email to