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

MessagingServiceTest failed with method listenRequiredSecureConnectionWithBroadcastAddr ON MAC OS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0
    • Component/s: Test/unit
    • Labels:
      None
    • Platform:
      All
    • Impacts:
      None

      Description

      when I do unit test on mac os for cassandra4.0 tag version , I found that the unit test failed when doing MessagingServiceTest on method listenRequiredSecureConnectionWithBroadcastAddr.

      I found out that it is because that the mac os can not get connect to ip address 127.0.0.2 on default.
      so when you doing : ant test -Dtest.name=MessagingServiceTest -Dtest.methods=listenRequiredSecureConnectionWithBroadcastAddr

      you can get a bind exception : can not assign request address.

      what to do with it ,you can just set the 127.0.0.2 by :
      sudo ifconfig lo0 alias 127.0.0.2 netmask 0xFFFFFFFF

      then the unit can run successfully .

        Attachments

        1. exception.png
          141 kB
          maxwellguo

          Activity

            People

            • Assignee:
              maxwellguo maxwellguo
              Reporter:
              maxwellguo maxwellguo
              Authors:
              maxwellguo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: