Skip to content
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

CASSANDRA-19693 Relax slow_query_log_timeout for MultiNodeSAITest #3365

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

maedhroz
Copy link
Contributor

@maedhroz maedhroz commented Jun 10, 2024

patch by Caleb Rackliffe; reviewed by Alex Petrov for CASSANDRA-19693

patch by Caleb Rackliffe; reviewed by Alex Petrov for CASSANDRA-19693
@@ -45,7 +45,10 @@ public static void before() throws Throwable
cluster = Cluster.build()
.withNodes(2)
// At lower fetch sizes, queries w/ hundreds or thousands of matches can take a very long time.
.withConfig(InJvmSutBase.defaultConfig().andThen(c -> c.set("range_request_timeout", "180s").set("read_request_timeout", "180s")
.withConfig(InJvmSutBase.defaultConfig().andThen(c -> c.set("range_request_timeout", "180s")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Maybe worth extracting that 180s to a constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Want to leave some room to change these in the future, as they've been chosen somewhat arbitrarily.

if (retryStrategy.apply(t))
return execute(statement, cl, bindings);
if (retryStrategy.apply(t))
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question for my education. Are we not applying some backoff or delay between retries?

Copy link
Contributor

Choose a reason for hiding this comment

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

We could apply backoff, but this is an in-jvm test, so the initial thinking was that it's a very controlled environment.

@maedhroz maedhroz merged commit ab1c3e4 into apache:trunk Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants