You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/09/30 16:15:37 UTC
[GitHub] [cassandra] josh-mckenzie opened a new pull request #1246: Add required -f option to nodetool verify
josh-mckenzie opened a new pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246
Patch by Chris Lohfink; reviewed by Marcus Eriksson and xxxx for CASSANDRA-17017
Co-authored by Chris Lohfink <cl...@apple.com>
Co-authored by Josh McKenzie <jm...@apache.org>
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] smiklosovic closed pull request #1246: CASSANDRA-17017 Add required -f option to nodetool verify
Posted by GitBox <gi...@apache.org>.
smiklosovic closed pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] bereng commented on a change in pull request #1246: Add required -f option to nodetool verify
Posted by GitBox <gi...@apache.org>.
bereng commented on a change in pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246#discussion_r721902395
##########
File path: CHANGES.txt
##########
@@ -1,4 +1,5 @@
4.1
+ * Add required -f option to use nodetool verify (CASSANDRA-17017)
Review comment:
Should add `sstableverify` here as well now?
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] josh-mckenzie commented on a change in pull request #1246: CASSANDRA-17017 Add required -f option to nodetool verify
Posted by GitBox <gi...@apache.org>.
josh-mckenzie commented on a change in pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246#discussion_r834456683
##########
File path: src/java/org/apache/cassandra/tools/StandaloneVerifier.java
##########
@@ -188,10 +196,16 @@ public static Options parseArgs(String cmdArgs[])
}
String[] args = cmd.getArgs();
- if (args.length != 2)
+ if (args.length < 2)
Review comment:
Arguably neutral. It's vestigial from when I had force as a positional argument rather than a - flagged optional and was tinkering a bit, and I ended up leaving it because I liked it a touch more. We could go back to != 2 and ternary if you have strong feelings about it.
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] bereng commented on a change in pull request #1246: Add required -f option to nodetool verify
Posted by GitBox <gi...@apache.org>.
bereng commented on a change in pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246#discussion_r721901145
##########
File path: test/unit/org/apache/cassandra/tools/StandaloneVerifierTest.java
##########
@@ -144,13 +154,55 @@ public void testVerboseArg()
{
Arrays.asList("-v", "--verbose").forEach(arg -> {
ToolResult tool = ToolRunner.invokeClass(StandaloneVerifier.class,
- arg,
- "system_schema",
- "tables");
+ arg,
+ "system_schema",
+ "tables",
+ "force");
assertThat(tool.getStdout(), CoreMatchers.containsStringIgnoringCase("verbose=true"));
Assertions.assertThat(tool.getCleanedStderr()).isEmpty();
tool.assertOnExitCode();
assertCorrectEnvPostTest();
});
}
+
+ @Test
+ public void testFailsWithoutForce()
+ {
+ Arrays.asList("-r", "--mutate_repair_status").forEach(arg -> {
+ ToolResult tool = ToolRunner.invokeClass(StandaloneVerifier.class,
+ arg,
+ "system_schema",
+ "tables",
+ "debug");
+ assertThat(tool.getStdout(), CoreMatchers.containsStringIgnoringCase("usage:"));
+ assertEquals(1, tool.getExitCode());
+ });
+ }
+
+ @Test
+ public void testForcePermutations()
Review comment:
Make this the `testDefaultCall()` method better to avoid duplicate code?
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] bereng commented on a change in pull request #1246: CASSANDRA-17017 Add required -f option to nodetool verify
Posted by GitBox <gi...@apache.org>.
bereng commented on a change in pull request #1246:
URL: https://github.com/apache/cassandra/pull/1246#discussion_r833939861
##########
File path: src/java/org/apache/cassandra/tools/StandaloneVerifier.java
##########
@@ -188,10 +196,16 @@ public static Options parseArgs(String cmdArgs[])
}
String[] args = cmd.getArgs();
- if (args.length != 2)
+ if (args.length < 2)
Review comment:
Does this change buy you anything?
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org