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

Ekaterina Dimitrova edited comment on CASSANDRA-17972 at 10/21/22 3:33 PM:
---------------------------------------------------------------------------

 

 I can not reproduce this from 4.0.7 included up. I think Ekaterina is right.

 

I didn't dig or test anything now but from what I remember new in-jvm tests 
were added. We can check them whether they cover everything discussed here.
{quote}I see, it looks like that needs to be applied to all the branches.
{quote}
I _think_ in the newer versions there is significant refactoring but from this 
report it seems we have similar issues in 3.0 and 3.11 and back porting a 
version of the patch might help. I think tests are also probably missing. They 
were in 4.0 from what I remember. 


was (Author: e.dimitrova):
{quote}{quote} I can not reproduce this from 4.0.7 included up. I think 
Ekaterina is right.
{quote}{quote}
I didn't dig or test anything now but from what I remember new in-jvm tests 
were added. We can check them whether they cover everything discussed here.
{quote}I see, it looks like that needs to be applied to all the branches.
{quote}
I think in the newer versions there is significant refactoring but from this 
report it seems we have similar issues in 3.0 and 3.11 and back porting a 
version of the patch might help. I think tests are also probably missing. They 
were in 4.0 from what I remember. 

> nodetool resetlocalschema does not sync schema
> ----------------------------------------------
>
>                 Key: CASSANDRA-17972
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17972
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Cluster/Schema
>            Reporter: Cameron Zemek
>            Priority: Normal
>             Fix For: 3.0.x, 3.11.x
>
>
> Steps to reproduce:
> {code:java}
> $ ccm create -n 2 -v 3.11.13 -s resettest
> $ ccm node1 cqlsh -e "CREATE KEYSPACE test WITH replication = 
> {'class':'NetworkTopologyStrategy', 'datacenter1': 2}"
> $ ccm node1 cqlsh -e "CREATE TABLE test.messages(id int primary key, message 
> text)"
> $ ccm node1 nodetool describecluster
> Cluster Information:
>         Name: resettest
>         Snitch: org.apache.cassandra.locator.SimpleSnitch
>         DynamicEndPointSnitch: enabled
>         Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
>         Schema versions:
>                 5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1, 127.0.0.2]
> $ ccm node2 nodetool resetlocalschema
> $ ccm node2 cqlsh -e 'describe full schema'
> $ find ~/.ccm/resettest/node2/data0/system_schema/ -maxdepth 2 -type f
> $ ccm node2 nodetool describecluster
> Cluster Information:
>         Name: resettest
>         Snitch: org.apache.cassandra.locator.SimpleSnitch
>         DynamicEndPointSnitch: enabled
>         Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
>         Schema versions:
>                 5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1]
>                 59adb24e-f3cd-3e02-97f0-5b395827453f: [127.0.0.2]
> $ ccm node2 stop
> $ ccm node2 start
> $ ccm node2 nodetool describecluster
> Cluster Information:
>         Name: jpmctest
>         Snitch: org.apache.cassandra.locator.SimpleSnitch
>         DynamicEndPointSnitch: enabled
>         Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
>         Schema versions:
>                 5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1, 127.0.0.2]
> {code}
> Its not resyncing the schema until after restarting the node.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to