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

fix: Cast the number of threads to integer in the Java connector tests πŸ˜΅β€πŸ’« #23917

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

sergio-ropero
Copy link
Contributor

@sergio-ropero sergio-ropero commented Mar 9, 2023

What

When introducing the property to limit the parallelism, it executes with more threads than expected (PR).

Solution

The problem is that when gradle reads the property file (parameter numberThreads=2), it was reading the ASCII value of 2 (50) and the test were executed with 50 threads instead of 2 😭

To sort this out, we cast the property to int.

Copy link
Contributor

@ryankfu ryankfu left a comment

Choose a reason for hiding this comment

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

πŸ₯³

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

βœ… Sources (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

βœ… Destinations (1)

Connector Version Changelog Publish
destination-snowflake 0.4.49 βœ… βœ…
  • See "Actionable Items" below for how to resolve warnings and errors.

πŸ‘€ Other Modules (1)

  • base-normalization

Actionable Items

(click to expand)

Category Status Actionable Item
Version ❌
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.
⚠
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog ⚠
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
❌
changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish ⚠
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.
❌
diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.

@sergio-ropero sergio-ropero changed the title reduce threads fix: Reduce threads Mar 9, 2023
@sergio-ropero sergio-ropero changed the title fix: Reduce threads fix: Cast the number of threads to integer in the tests πŸ˜΅β€πŸ’« Mar 9, 2023
@sergio-ropero sergio-ropero changed the title fix: Cast the number of threads to integer in the tests πŸ˜΅β€πŸ’« fix: Cast the number of threads to integer in the Java connector tests πŸ˜΅β€πŸ’« Mar 9, 2023
@sergio-ropero sergio-ropero enabled auto-merge (squash) March 9, 2023 19:05
@sergio-ropero sergio-ropero merged commit 7fa8508 into master Mar 9, 2023
@sergio-ropero sergio-ropero deleted the reduce_threads_snowflake branch March 9, 2023 19:12
danielduckworth pushed a commit to danielduckworth/airbyte that referenced this pull request Mar 13, 2023
…s πŸ˜΅β€πŸ’« (airbytehq#23917)

* reduce threads

* Fix real problem between CHAR and INTEGER
adriennevermorel pushed a commit to adriennevermorel/airbyte that referenced this pull request Mar 17, 2023
…s πŸ˜΅β€πŸ’« (airbytehq#23917)

* reduce threads

* Fix real problem between CHAR and INTEGER
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.

3 participants