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

SSTableLoader always uses hostname to stream files from

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Not A Problem
    • Fix Version/s: None
    • Component/s: Tool/bulk load
    • Labels:
      None
    • Severity:
      Normal

      Description

      I stumbled upon an issue where SSTableLoader was ignoring our routing by using the wrong interface to send the SSTables to the other nodes. Looking at the code, it seems that we are using FBUtilities.getLocalAddress() to fetch out the hostname, even if the yaml file specifies a different host. I am not sure why we call this function instead of using the routing by leaving it blank, perhaps someone could enlighten me.

      This behaviour comes from the fact that we use a default created DatabaseDescriptor which does not set the values for listenAddress and listenInterface. This causes the aforementioned function to retrieve the hostname at all times, even if it is not the interface used in the yaml file.

      I propose we break out the function that handles listenAddress and listenInterface and call it so that listenAddress or listenInterface is getting populated in the DatabaseDescriptor.

        Attachments

        1. 13639-trunk
          1 kB
          Jan Karlsson

          Issue Links

            Activity

              People

              • Assignee:
                Jan Karlsson Jan Karlsson
                Reporter:
                Jan Karlsson Jan Karlsson
                Authors:
                Jan Karlsson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: