cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Karlsson (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-13639) SSTableLoader always uses hostname to stream files from
Date Sun, 02 Jul 2017 11:14:01 GMT


Jan Karlsson updated CASSANDRA-13639:
    Reproduced In: 2.2.9, 4.0  (was: 2.2.9)
           Status: Patch Available  (was: Open)

> SSTableLoader always uses hostname to stream files from
> -------------------------------------------------------
>                 Key: CASSANDRA-13639
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jan Karlsson
>            Assignee: Jan Karlsson
>             Fix For: 4.x
>         Attachments: 13639-trunk
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message