Class BulkLoadConnectionFactory

    • Method Detail

      • supportsPreferredIp

        public boolean supportsPreferredIp()
        Description copied from interface: StreamConnectionFactory
        Provide way to disable getPreferredIP() for tools without access to the system keyspace

        CASSANDRA-17663 moves calls to SystemKeyspace.getPreferredIP() outside of any threads that are regularly interrupted. However the streaming subsystem is also used by the bulk loader tool, which does not have direct access to the local tables and uses the client metadata/queries to retrieve it.

        Specified by:
        supportsPreferredIp in interface StreamConnectionFactory
        Returns:
        true if SystemKeyspace.getPreferredIP() should be used when connecting