[
https://issues.apache.org/jira/browse/CASSANDRA-8179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joshua McKenzie updated CASSANDRA-8179:
---------------------------------------
Attachment: 8179_v1.txt
v1 attached. cassandra.ps1 parses out the data in cassandra.yaml and JMX_PORT
from cassandra-env.ps1, and then does async connect to each port based on
listed listen_address/rpc_address + port as appropriate. If any of them
connect, prints out which was already open and errors out.
It's a little more heavy-handed than parsing netstat output but should be
fairly robust and adds about 125ms to startup time (25ms async timeout on each
port). Confirmed that develop branch on ccm starts successfully with this
change w/3 nodes, and used nc to bind to various ports and confirm it seems to
work locally.
> No error message shown when starting Cassandra on Windows if Cassandra is
> already running
> -----------------------------------------------------------------------------------------
>
> Key: CASSANDRA-8179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8179
> Project: Cassandra
> Issue Type: Bug
> Environment: Windows 7
> Reporter: Philip Thompson
> Assignee: Joshua McKenzie
> Priority: Minor
> Labels: windows
> Fix For: 2.1.2
>
> Attachments: 8179_v1.txt
>
>
> The output from running cassandra.bat while Cassandra is already running
> gives no indication that Cassandra was already running, or that the command
> failed. Instead it prints out {code}Starting Cassandra Server.{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)