yifan-c commented on a change in pull request #868:
URL: https://github.com/apache/cassandra/pull/868#discussion_r571245176



##########
File path: 
test/distributed/org/apache/cassandra/distributed/upgrade/UpgradeTest.java
##########
@@ -37,21 +38,10 @@ public void upgradeTest() throws Throwable
         .setup((cluster) -> {
             cluster.schemaChange("CREATE TABLE " + KEYSPACE + ".tbl (pk int, 
ck int, v int, PRIMARY KEY (pk, ck))");
 
-            cluster.get(1).executeInternal("INSERT INTO " + KEYSPACE + ".tbl 
(pk, ck, v) VALUES (1, 1, 1)");
-            cluster.get(2).executeInternal("INSERT INTO " + KEYSPACE + ".tbl 
(pk, ck, v) VALUES (1, 2, 2)");
-            cluster.get(3).executeInternal("INSERT INTO " + KEYSPACE + ".tbl 
(pk, ck, v) VALUES (1, 3, 3)");
+            truncateWriteReadTest(cluster);
         })
-        .runAfterNodeUpgrade((cluster, node) -> {
-            for (int i = 1; i <= cluster.size(); i++)
-            {
-                assertRows(cluster.coordinator(1).execute("SELECT * FROM " + 
KEYSPACE + ".tbl WHERE pk = ?",
-                                                          ConsistencyLevel.ALL,
-                                                          1),
-                           row(1, 1, 1),
-                           row(1, 2, 2),
-                           row(1, 3, 3));
-            }
-        }).run();
+        .runAfterNodeUpgrade(UpgradeTest::truncateWriteReadTest)
+        .run();

Review comment:
       Need to revert the change after removing `truncateWriteReadTest()`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to