Skip to content

Conversation

@frankgh
Copy link
Contributor

@frankgh frankgh commented Aug 6, 2024

Patch by Francisco Guerrero; Reviewed by Yifan Cai for CASSANDRASC-140


sidecar:
host: 0.0.0.0
port: 9043
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuring the port to be non-zero, surfaces the issue because the logic in vert.x treats the zero port configuration differently

Patch by Francisco Guerrero; Reviewed by Yifan Cai for CASSANDRASC-140
Copy link
Contributor

@sarankk sarankk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Looks good to me

Copy link
Contributor

@arjunashok arjunashok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, +1

Comment on lines 210 to 213
catch (Exception exception)
{
Assertions.fail(exception);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the catch is not necessary. Is it added because IDE complains no assertion is performed?
If so, how about this?

        assertThatNoException().isThrownBy(() -> {
            server.start().toCompletionStage().toCompletableFuture().get(30, TimeUnit.SECONDS);
            TrafficShapingOptions update = new TrafficShapingOptions()
                                           .setOutboundGlobalBandwidth(100 * 1024 * 1024);
            server.updateTrafficShapingOptions(update);
        });

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the fix, the exception was thrown and I would fail the test. I will update the test. I was running @RepeatedTest so it was necessary to fail the test so the server was properly closed during teardown

Copy link
Contributor

@yifan-c yifan-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit. lgtm

@frankgh frankgh merged commit 971941c into apache:trunk Aug 6, 2024
@frankgh frankgh deleted the CASSANDRASC-140 branch August 6, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants