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

Michael Semb Wever commented on CASSANDRA-16381:
------------------------------------------------

A consequence of this patch is that {{`nodetool gossipinfo`}} will no longer 
list the deprecated application states on remote (4.0) endpoints. Gossipinfo 
will still list both versions of application states of the local endpoint (as 
that needs to be broadcasted so for <4.0 endpoints in a mix-version cluster). 
This required a 
[fix|https://github.com/thelastpickle/cassandra-dtest/commit/6b63a1831000a462209978af1263a3ea32d38344]
 in the snitch_test.py dtest.

For example, this output from 
{{snitch_test.py::TestGossipingPropertyFileSnitch::test_prefer_local_reconnect_on_listen_address}}
 called on node1 (127.0.0.3).
{noformat}
/127.0.0.4
  generation:1614418673
  heartbeat:88
  STATUS:75:NORMAL,0
  LOAD:18:75875.0
  SCHEMA:21:5a4d7919-7143-3e86-a586-ce62ee960249
  DC:11:dc1
  RACK:13:rack1
  RELEASE_VERSION:5:4.0-beta5-SNAPSHOT
  INTERNAL_IP:9:127.0.0.2
  RPC_ADDRESS:4:127.0.0.2
  NET_VERSION:1:12
  HOST_ID:2:92406fb2-63ba-4e4d-9228-bf14ed22d7c4
  RPC_READY:85:true
  INTERNAL_ADDRESS_AND_PORT:7:127.0.0.2:7000
  NATIVE_ADDRESS_AND_PORT:3:127.0.0.2:9042
  STATUS_WITH_PORT:74:NORMAL,0
  TOKENS:73:<hidden>
/127.0.0.3
  generation:1614418645
  heartbeat:117
  LOAD:96:105177.0
  SCHEMA:43:5a4d7919-7143-3e86-a586-ce62ee960249
  DC:11:dc1
  RACK:13:rack1
  RELEASE_VERSION:5:4.0-beta5-SNAPSHOT
  NET_VERSION:1:12
  HOST_ID:2:53cacd4a-7ed9-4efe-bbe3-de04701a9c74
  RPC_READY:35:true
  INTERNAL_ADDRESS_AND_PORT:7:127.0.0.1:7000
  NATIVE_ADDRESS_AND_PORT:3:127.0.0.1:9042
  STATUS_WITH_PORT:22:NORMAL,-9223372036854775808
  TOKENS:21:<hidden>
{noformat}

> nodetool removenode error “Conflicting replica added”
> -----------------------------------------------------
>
>                 Key: CASSANDRA-16381
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16381
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Consistency/Bootstrap and Decommission
>            Reporter: vincent royer
>            Assignee: Michael Semb Wever
>            Priority: Normal
>             Fix For: 4.0-beta
>
>         Attachments: dtest.tar.bz2, node1.tar.bz2, node2.tar.bz2, 
> node3.tar.bz2
>
>
> When testing elassandra on C* 4.0, integration tests with ccm systematically 
> failed on removing a node with the following error “Conflicting replica 
> added” . [This integration test 
> |https://github.com/strapdata/elassandra/blob/v6.8.4-strapdata/integ-test/test-cleanup-repair.sh#L289]
>  was ok with Elassandra based on Cassandra 3.11, and there is no changes in 
> that test. Moreover, it seems there is no cassandra-test (dtest) for removing 
> a node (there is only one removenode test for transient replication). The 
> topology_test.py remove a node from the CCM cluster, but it does not call 
> nodetool removenode.
> I wonder if we have a non-tested regression here in C 4.0 ?
> ++ ccm node1 nodetool status
> ++ awk ‘/127.0.0.3/ \{ print $7 }’
> + HOST_ID3=6d2e858f-dacc-4c7c-a626-14b45f6b3b94
> + ccm node3 stop
> + ccm node1 nodetool removenode 6d2e858f-dacc-4c7c-a626-14b45f6b3b94
> Traceback (most recent call last):
>   File “/usr/local/bin/ccm”, line 4, in <module>
>     __import__(‘pkg_resources’).run_script(‘ccm==3.1.6’, ‘ccm’)
>   File 
> “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py”,
>  line 742, in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File 
> “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py”,
>  line 1674, in run_script
>     exec(script_code, namespace, namespace)
>   File 
> “/Library/Python/2.7/site-packages/ccm-3.1.6-py2.7.egg/EGG-INFO/scripts/ccm”, 
> line 112, in <module>  File 
> “build/bdist.macosx-10.14-intel/egg/ccmlib/cmds/node_cmds.py”, line 233, in 
> run
>   File “build/bdist.macosx-10.14-intel/egg/ccmlib/node.py”, line 848, in 
> nodetool
>   File “build/bdist.macosx-10.14-intel/egg/ccmlib/node.py”, line 2131, in 
> handle_external_tool_process
> ccmlib.node.ToolError: Subprocess [‘nodetool’, ‘-h’, ‘localhost’, ‘-p’, 
> ‘7100’, ‘removenode’, ‘6d2e858f-dacc-4c7c-a626-14b45f6b3b94’] exited with 
> non-zero status; exit status: 1;
> stdout: nodetool: Conflicting replica added (expected unique ranges): 
> Full(/127.0.0.1:7000,(4949329179655327935,6135417578204142297]); existing: 
> Full(/127.0.0.1:7000,(4949329179655327935,6135417578204142297])
> See ‘nodetool help’ or ‘nodetool help <command>’.++ finish
> ++ echo ‘ERROR occurs, test failed’
> ERROR occurs, test failed
> ++ ‘[’ ‘!’ -z ‘’ ‘]’
> ++ exit 1



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