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

[SPARK-47379][TESTS] Improve docker JDBC suite test reliability #45518

Closed

Conversation

stefanbuk-db
Copy link
Contributor

What changes were proposed in this pull request?

In this PR I propose changes in Docker JDBC suite with helper function for test retry and better error handling.

Why are the changes needed?

This changes improve general reliability of docker tests that fail at certain workloads.

Does this PR introduce any user-facing change?

No

How was this patch tested?

This is patch for tests.

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Mar 14, 2024
logError(s"Failed to initialize Docker container for ${this.getClass.getName}", e)
container = createContainerCmd.exec()
// Start the container and wait until the database can accept JDBC connections:
docker.startContainerCmd(container.getId).exec()
Copy link
Member

Choose a reason for hiding this comment

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

Due to limited GHA resources, it is not advisable to repeatedly start containers.

@yaooqinn
Copy link
Member

If this is mainly about OracleIntegrationSuite failures, I suggest we use SYS instead of SYSTEM as the connection user.

Based on my observation, an Oracle db container fails to be connected for a consistent reason of ALTER USER SYSTEM faluire gvenzl/oci-oracle-free#35 (comment)

Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Jun 23, 2024
@github-actions github-actions bot closed this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants