[ 
https://issues.apache.org/jira/browse/CASSANDRA-11181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17393994#comment-17393994
 ] 

Michael Semb Wever edited comment on CASSANDRA-11181 at 8/5/21, 1:08 PM:
-------------------------------------------------------------------------

{quote}Isn't the port in the rpc_port column?
{quote}
Too true! Should've looked…

So the patch would do the following…
{code:java}
rpc_address = FBUtilities.getJustBroadcastNativeAddress() # 
broadcast_rpc_address orElse rpcAddress
rpc_port =  DatabaseDescriptor.getNativeTransportPort() # native_transport_port
broadcast_address = FBUtilities.getJustBroadcastAddress() # broadcast_address 
orElse same-as-listen_address-below
broadcast_port = DatabaseDescriptor.getStoragePort() # storage_port 
   
listen_address = FBUtilities.getJustLocalAddress()
 # listen_address orElse listen_interface orElse InetAddress.getLocalHost() 
orElse InetAddress.getLoopbackAddress()

listen_port = DatabaseDescriptor.getStoragePort() # storage_port                
          
{code}
Is there (still any) a purpose in duplicating the {{storage_port}} into 
{{broadcast_port}} and {{listen_port}}?
 What about {{ssl_storage_port}}?
 What about {{listen_on_broadcast_address}}? (If it's true then listen_address 
is in fact broadcast_address but not correctly represented as such by 
{{system.local}}.)


was (Author: michaelsembwever):
{quote}Isn't the port in the rpc_port column?
{quote}
Too true! Should've looked…

So the patch would do the following…
{code:java}
rpc_address = FBUtilities.getJustBroadcastNativeAddress() # 
broadcast_rpc_address orElse rpcAddress
rpc_port =  DatabaseDescriptor.getNativeTransportPort() # native_transport_port
broadcast_address = FBUtilities.getJustBroadcastAddress() # broadcast_address 
orElse same-as-listen_address-below
broadcast_port = DatabaseDescriptor.getStoragePort() # storage_port 
   
listen_address = FBUtilities.getJustLocalAddress()
  #  listen_address orElse listen_interface orElse InetAddress.getLocalHost() 
orElse InetAddress.getLoopbackAddress()

listen_port = DatabaseDescriptor.getStoragePort() # storage_port                
          
{code}
Is there (still any) a purpose in duplicating the {{storage_port}} into 
{{broadcast_port}} and {{listen_port}}?
 What about {{ssl_storage_port}}?
 What about {{listen_on_broadcast_address}}? (If it's true then listen_address 
is in fact broadcast_address but not correctly represented as such by 
{{system.local}}.)

> Add broadcast_rpc_address to system.local
> -----------------------------------------
>
>                 Key: CASSANDRA-11181
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11181
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Legacy/Distributed Metadata
>            Reporter: Nick Bailey
>            Assignee: Chang Liu
>            Priority: Normal
>             Fix For: 4.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Right now it's impossible to get the broadcast_rpc_address of the node you 
> are connected to via the drivers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to