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

Paulo Motta edited comment on CASSANDRA-14582 at 3/30/21, 12:09 AM:
--------------------------------------------------------------------

Hi [~fibersel] it seems [~vroyer59] already implemented this feature on [this 
commit|https://github.com/strapdata/cassandra/commit/8ff5b7b29adb1dc123e89f446f54b702ebd33f1e].
 In order to make this production ready we would need to document this property 
by adding it it as a commented out option to 
[jvm-server.options|https://github.com/apache/cassandra/blob/trunk/conf/jvm-server.options]
 and also add a simple test based on 
[autoBootstrapTest|https://github.com/apache/cassandra/blob/bf96367f4d55692017e144980cf17963e31df127/test/distributed/org/apache/cassandra/distributed/test/ring/BootstrapTest.java#L80]
 that manually overrides the host id for new nodes instead of using a default 
random id, and also checks that restarting the node with a different 
{{cassandra.host_id_first_boot}} will not reset its previous id if its already 
set.


was (Author: paulo):
Hi [~fibersel] it seems [~vroyer59] already implemented this feature on [this 
commit|https://github.com/apache/cassandra/blob/bf96367f4d55692017e144980cf17963e31df127/test/distributed/org/apache/cassandra/distributed/test/ring/BootstrapTest.java#L80].
 In order to make this production ready we would need to document this property 
by adding it it as a commented out option to 
[jvm-server.options|https://github.com/apache/cassandra/blob/trunk/conf/jvm-server.options]
 and also add a simple test based on 
[autoBootstrapTest|https://github.com/apache/cassandra/blob/bf96367f4d55692017e144980cf17963e31df127/test/distributed/org/apache/cassandra/distributed/test/ring/BootstrapTest.java#L80]
 that manually overrides the host id for new nodes instead of using a default 
random id, and also checks that restarting the node with a different 
{{cassandra.host_id_first_boot}} will not reset its previous id if its already 
set.

> Add a system property to set the cassandra hostId if not yet initialized
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14582
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14582
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local/Config
>            Reporter: vincent royer
>            Priority: Low
>              Labels: lhf
>
> Add a system property *cassandra.host_id* to set the cassandra hostId if not 
> yet initialized.
> This allow to push the cassandra host ID when provisioning new cassandra 
> nodes rather than to retreive it after the first start.



--
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