ifesdjeen commented on code in PR #3632:
URL: https://github.com/apache/cassandra/pull/3632#discussion_r1816257768


##########
test/distributed/org/apache/cassandra/distributed/test/log/SystemKeyspaceStorageTest.java:
##########
@@ -119,12 +118,16 @@ public void testLogStateQuery() throws Throwable
                         }
                         else
                         {
-                            assertEquals(latestSnapshot, 
logState.baseState.epoch);
+                            assertEquals(since, logState.baseState.epoch);
                             start = logState.baseState.epoch;
                             if (logState.entries.isEmpty()) // no entries, 
snapshot should have the same epoch as since
                                 assertEquals(since, start);
                             else // first epoch in entries should be snapshot 
epoch + 1
+                            {
+                                if 
(!start.nextEpoch().equals(logState.entries.get(0).epoch))

Review Comment:
   No, this was my oversight, thanks for catching!



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

To unsubscribe, e-mail: [email protected]

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