ekaterinadimitrova2 commented on a change in pull request #856:
URL: https://github.com/apache/cassandra/pull/856#discussion_r562994116
##########
File path:
test/distributed/org/apache/cassandra/distributed/test/MultipleDataDirectoryTest.java
##########
@@ -93,6 +93,47 @@ public void testSSTablesAreInCorrectLocation()
@Test
public void testDetectSSTableMisplaced()
+ {
+ setupMisplacedSSTables();
+ NODE.runOnInstance(() -> {
+ ColumnFamilyStore cfs =
Keyspace.open(KEYSPACE).getColumnFamilyStore("cf");
+ Assert.assertTrue("Some SSTable should be misplaced",
+ cfs.isSSTableMisplaced());
+ });
+ }
+
+ @Test
+ public void testNodeToolRelocateSSTablesFindNoFilesToMove()
+ {
+ long logStartLoc = NODE.logs().mark();
+ NODE.nodetoolResult("relocatesstables", KEYSPACE, "cf")
+ .asserts()
+ .success();
+ String expectedLog = String.format("No sstables to RELOCATE for
%s.%s", KEYSPACE, "cf");
+ Assert.assertEquals("relocatesstables should finds no sstables to
move",
+ 1, NODE.logs().grep(logStartLoc,
expectedLog).getResult().size());
Review comment:
nit: there is a typo "find"
----------------------------------------------------------------
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]