Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16535

Fail to init Cassandra Startup with an API connected with other cluster machines (3.11.9 version)

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Availability
    • Severity:
      Normal
    • Complexity:
      Low Hanging Fruit
    • Discovered By:
      User Report
    • Platform:
      All
    • Impacts:
      None
    • Test and Documentation Plan:
      Hide

      Specified in post

      Show
      Specified in post

      Description

      The code in the function "VerifyPortsAreAvailable", look for the ports: 7000, 9042, 7199 and 9160 in the "netstat -an" command output.

       

      If we have an API connected to the cluster in a node, and we try to start the execution of cassandra (with that API working, accesing ports 9042 of the other cluster machines), the output of that command return us that the port is already in use, and Cassandra´s startup process fails, showing the output message : "port already in use" in the .log file.

      Thus, if we change the code of the function, adding the line: " -and $line -match "LISTENING" ", just next to the "$line -match "TCP" ", we will only interrupt the execution if the load port is in the state: "LISTENING", but no if it´s an active connection on the other node of the cluster.

        Attachments

        1. image-2021-03-24-21-13-46-704.png
          47 kB
          Aramis
        2. image-2021-03-24-21-12-32-709.png
          47 kB
          Aramis
        3. cassandra_modified.ps1
          12 kB
          Aramis

          Activity

            People

            • Assignee:
              aramis22 Aramis
              Reporter:
              aramis22 Aramis
              Authors:
              Aramis
              Reviewers:
              Yuki Morishita
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: