cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dineshjoshi <...@git.apache.org>
Subject [GitHub] cassandra pull request #239: [CASSANDRA-14556] Optimize Streaming
Date Thu, 26 Jul 2018 17:04:21 GMT
Github user dineshjoshi commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/239#discussion_r205532049
  
    --- Diff: test/unit/org/apache/cassandra/db/streaming/CassandraStreamHeaderTest.java ---
    @@ -43,8 +51,38 @@ public void serializerTest()
                                                                      new ArrayList<>(),
                                                                      ((CompressionMetadata)
null),
                                                                      0,
    -                                                                 SerializationHeader.makeWithoutStats(metadata).toComponent());
    +                                                                 SerializationHeader.makeWithoutStats(metadata).toComponent(),
    +                                                                 metadata.id);
     
             SerializationUtils.assertSerializationCycle(header, CassandraStreamHeader.serializer);
         }
    +
    +    @Test
    +    public void serializerTest_FullSSTableTransfer()
    +    {
    +        String ddl = "CREATE TABLE tbl (k INT PRIMARY KEY, v INT)";
    +        TableMetadata metadata = CreateTableStatement.parse(ddl, "ks").build();
    +
    +        ComponentManifest manifest = new ComponentManifest(new HashMap(ImmutableMap.of(Component.DATA,
100L)));
    --- End diff --
    
    Fixed. Not sure why I did this in the first place.


---

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


Mime
View raw message