Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 31035 invoked from network); 8 Mar 2007 22:09:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 22:09:46 -0000 Received: (qmail 92730 invoked by uid 500); 8 Mar 2007 22:09:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92704 invoked by uid 500); 8 Mar 2007 22:09:53 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 92694 invoked by uid 99); 8 Mar 2007 22:09:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 14:09:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 14:09:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 30F52714042 for ; Thu, 8 Mar 2007 14:09:24 -0800 (PST) Message-ID: <16810725.1173391764166.JavaMail.root@brutus> Date: Thu, 8 Mar 2007 14:09:24 -0800 (PST) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2426) java -jar derbyrun.jar server shutdown gives the wrong message In-Reply-To: <28626178.1173390984131.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479443 ] Andrew McIntyre commented on DERBY-2426: ---------------------------------------- Considering what you did here, I would say it is expected behavior. Network Server shutdown, when called from the command-line, communicates the shutdown command via a socket connection to the network server specified, which may or may not be on the local machine. The message reporting shutdown is then printed locally by the shutdown instance, and is not a product of the server instance. So, the 10.2.1.6 network server sends the shutdown command to the 10.3 network server, which then happily shutsdown. The message being reported on the shutdown side is printed by the 10.2.16 network server classes, and is reporting its version correctly, and the difference in timestamp is due to the fact that you have messages being printed from two different jvm instances. The message on the shutdown side is not sent from the server, but printed by the instance that sent the shutdown command over the network after confirming shutdown close. See NetworkServerControlImpl.shutdown(). > java -jar derbyrun.jar server shutdown gives the wrong message > -------------------------------------------------------------- > > Key: DERBY-2426 > URL: https://issues.apache.org/jira/browse/DERBY-2426 > Project: Derby > Issue Type: Bug > Components: Network Server > Reporter: Bernt M. Johnsen > Priority: Trivial > > If e.g. I have a 10.3 server running and uses derbyrun.jar from 10.2.1.6 to shut down the server, like this: > $ java -jar ../trunk/jars/sane/derbyrun.jar server start -noSecurityManager > Apache Derby Network Server - 10.3.0.0 alpha - (516145M) started and ready to accept connections on port 1527 at 2007-03-08 21:48:56.308 GMT > Apache Derby Network Server - 10.3.0.0 alpha - (516145M) shutdown at 2007-03-08 21:49:18.759 GMT > $ java -jar db-derby-10.2.1.6-bin/lib/derbyrun.jar server shutdown > Apache Derby Network Server - 10.2.1.6 - (452058) shutdown at 2007-03-08 21:49:19.269 GMT > But the server I shutdown is 10.3.0.0 alpha! Also the client reports a different timestamp than the server. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.