-
Couldn't load subscription status.
- Fork 3.8k
CASSANDRA-20984: Fix java.lang.ClassCastException: Issues while joining #4438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
| public void testCompatibleVersion() throws InterruptedException, ExecutionException | ||
| { | ||
| Future<Result<Result.StreamingSuccess>> result = streamingConnect(new AcceptVersions(MessagingService.minimum_version, current_version + 1), new AcceptVersions(minimum_version + 2, current_version + 3)); | ||
| if (result.isSuccess()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if you did Assert.assertTrue(result.isSuccess()) so we can get rid of this if / else logic in each test method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, makes sense.
| SslFallbackConnectionType.SERVER_CONFIG | ||
| ); | ||
| result.awaitUninterruptibly(); | ||
| return result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we Assert.assertTrue(result.isSuccess()); return result.getNow() here? So you would just return Result from this method. It would be easier to work with later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it reduces duplicate code.
Signed-off-by: vivekkoya <[email protected]>
|
Incorporated changes here: vivekkoya@4e493dc |
Please see: https://issues.apache.org/jira/browse/CASSANDRA-20984
Commit messages should follow the following format:
The Cassandra Jira