-
Notifications
You must be signed in to change notification settings - Fork 24
Integration Test for #2246: add IT for session eviction during DB failure #2321
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: main
Are you sure you want to change the base?
Conversation
➡️ Unit Test Coverage Delta vs Main Branch
|
Unit Test Coverage Report
|
📈 Integration Test Coverage Delta vs Main Branch (hcd-it)
|
Integration Test Coverage Report (hcd-it)
|
📈 Integration Test Coverage Delta vs Main Branch (dse69-it)
|
Integration Test Coverage Report (dse69-it)
|
src/test/java/io/stargate/sgv2/jsonapi/testresource/StargateTestResource.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/testresource/DseTestResource.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Show resolved
Hide resolved
tatu-at-datastax
left a comment
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.
LGTM
amorton
left a comment
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.
awesome, very detailed, a few nit picks and changes, otherwise done 👍
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
| * dedicated database instance. This isolation is crucial because this test involves destructive | ||
| * operations that would negatively impact other tests sharing a common database. | ||
| */ | ||
| public static class SessionEvictionTestResource extends DseTestResource { |
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.
nit: inner classes at the bottom of the class.
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/stargate/sgv2/jsonapi/api/v1/SessionEvictionIntegrationTest.java
Outdated
Show resolved
Hide resolved
| .withCmd("nodetool", "status") | ||
| .exec(); | ||
|
|
||
| var callback = |
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.
nit: comment to explain the mystery
What this PR does:
We've added fixes for #2246, but we only have unit tests for it. This PR is to add an integration test to simulate DB failure and verify the session eviction and request recovery.
Which issue(s) this PR fixes:
Fixes #2246
Checklist