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

Jacques-Henri Berthemet updated CASSANDRA-13386:
------------------------------------------------
    Attachment:     (was: cassandra.ps1.patch)

> Can't start Cassandra with powershell script when connections are already 
> established to other Cassandra nodes on the same host
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13386
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13386
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows with powershell
>            Reporter: Jacques-Henri Berthemet
>              Labels: easyfix, windows
>
> In our test env we run our client application on the same host as Cassandra 
> nodes. When we restart the Cassandra node when the application is still 
> running it fails in VerifyPortsAreAvailable function of bin\cassandra.ps1:98 
> with the below error:
> {code}
> VerifyPortsAreAvailable : Found a port already in use. Aborting startup
> At C:\apache-cassandra-2.2.7\bin\cassandra.ps1:98 char:9
> +         VerifyPortsAreAvailable
> +         ~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [Write-Error], 
> WriteErrorException
>     + FullyQualifiedErrorId : 
> Microsoft.PowerShell.Commands.WriteErrorException,VerifyPortsAreAvailable
> VerifyPortsAreAvailable :   TCP    xxx.xx.xx.171:61936    xxx.xx.xx.24:9042   
>    ESTABLISHED
> {code}
> It looks like VerifyPortsAreAvailable is picking a remote 9042 port and 
> refuses to start Cassandra.
> The VerifyPortsAreAvailable function should be fixed so that it only looks 
> for LISTENING ports.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to