You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by aweisberg <gi...@git.apache.org> on 2018/10/31 21:55:33 UTC

[GitHub] cassandra pull request #290: 14841 trunk

GitHub user aweisberg opened a pull request:

    https://github.com/apache/cassandra/pull/290

    14841 trunk

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aweisberg/cassandra 14841-trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cassandra/pull/290.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #290
    
----
commit 332bd5c952ab01c57a5b6d94654ec827984c6678
Author: Ariel Weisberg <aw...@...>
Date:   2018-10-22T20:49:50Z

    circleci

commit 59aae3bc1a4b8fbeefcf21fd2396b7b845a5b410
Author: Ariel Weisberg <aw...@...>
Date:   2018-10-29T19:26:22Z

    Fix "Unknown column coordinator_port during deserialization"
    
    Patch by Ariel Weisberg; Reviewed by XYZ for CASSANDRA-14841

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] cassandra pull request #290: 14841 trunk

Posted by dineshjoshi <gi...@git.apache.org>.
Github user dineshjoshi commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/290#discussion_r229892479
  
    --- Diff: src/java/org/apache/cassandra/gms/Gossiper.java ---
    @@ -136,6 +139,38 @@
     
         private volatile long lastProcessedMessageAt = System.currentTimeMillis();
     
    +    private boolean haveMajorVersion3Nodes = true;
    +
    +    final com.google.common.base.Supplier<Boolean> haveMajorVersion3NodesSupplier = () ->
    +    {
    +        //Once there are no prior version nodes we don't need to keep rechecking
    +        if (!haveMajorVersion3Nodes)
    +            return false;
    +
    +        Iterable<InetAddressAndPort> allHosts = Iterables.concat(Gossiper.instance.getLiveMembers(), Gossiper.instance.getUnreachableMembers());
    +        CassandraVersion referenceVersion = null;
    +
    +        for (InetAddressAndPort host : allHosts)
    +        {
    +            CassandraVersion version = getReleaseVersion(host);
    +
    +            //Raced with changes to gossip state
    +            if (version == null)
    +                continue;
    +
    +            if (referenceVersion == null)
    +                referenceVersion = version;
    +
    +            if (version.major < 4)
    --- End diff --
    
    This will capture nodes with major version 2 as well. If that is ok, we should probably rename variables to reflect that.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] cassandra pull request #290: 14841 trunk

Posted by dineshjoshi <gi...@git.apache.org>.
Github user dineshjoshi commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/290#discussion_r229894869
  
    --- Diff: src/java/org/apache/cassandra/gms/Gossiper.java ---
    @@ -136,6 +139,38 @@
     
         private volatile long lastProcessedMessageAt = System.currentTimeMillis();
     
    +    private boolean haveMajorVersion3Nodes = true;
    +
    +    final com.google.common.base.Supplier<Boolean> haveMajorVersion3NodesSupplier = () ->
    +    {
    +        //Once there are no prior version nodes we don't need to keep rechecking
    +        if (!haveMajorVersion3Nodes)
    +            return false;
    +
    +        Iterable<InetAddressAndPort> allHosts = Iterables.concat(Gossiper.instance.getLiveMembers(), Gossiper.instance.getUnreachableMembers());
    +        CassandraVersion referenceVersion = null;
    +
    +        for (InetAddressAndPort host : allHosts)
    +        {
    +            CassandraVersion version = getReleaseVersion(host);
    +
    +            //Raced with changes to gossip state
    +            if (version == null)
    +                continue;
    +
    +            if (referenceVersion == null)
    +                referenceVersion = version;
    +
    +            if (version.major < 4)
    --- End diff --
    
    > This will capture nodes with major version 2 as well. If that is ok, we should probably rename variables to reflect that.
    
    Nvm this. We discussed offline, version 2 nodes cannot connection to version 4 nodes. Enforced by 
    https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/net/async/InboundHandshakeHandler.java#L180


---

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org