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: prevent creating unnecessary threads repeatedly #562

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

goznauk
Copy link
Contributor

@goznauk goznauk commented Feb 22, 2023

Closes #561

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • pytest tests completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eb5afd1) 90.35% compared to head (ab4a528) 90.35%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #562   +/-   ##
=======================================
  Coverage   90.35%   90.35%           
=======================================
  Files          39       39           
  Lines        3493     3493           
=======================================
  Hits         3156     3156           
  Misses        337      337           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

@goznauk thanks for your PR 👍. Can you please satisfy following Checklist:

image

@goznauk goznauk force-pushed the patch-1 branch 3 times, most recently from 65ee74b to 24103c5 Compare August 5, 2023 07:41
@goznauk goznauk changed the title Use ThreadPoolScheduler for WriteApi batch subject fix: use thread pool for WriteApi batch to prevent creating threads repeatedly Aug 5, 2023
@goznauk goznauk changed the title fix: use thread pool for WriteApi batch to prevent creating threads repeatedly fix: prevent creating unnecessary threads repeatedly Aug 5, 2023
@goznauk
Copy link
Contributor Author

goznauk commented Aug 5, 2023

@bednar Thank you for your feedback! I have completed all the items in the checklist as requested. Please let me know if there are any other requirements or changes needed for this PR.

@bednar
Copy link
Contributor

bednar commented Aug 7, 2023

@goznauk thanks

@goznauk goznauk requested a review from bednar September 13, 2023 11:41
@goznauk
Copy link
Contributor Author

goznauk commented Dec 7, 2023

@bednar any updates for this?

@bednar
Copy link
Contributor

bednar commented Dec 7, 2023

@goznauk, I've added this PR to our backlog. We need to conduct a few manual tests on our end before we can proceed with merging this PR.

@bednar bednar self-assigned this Jan 3, 2024
Use ThreadPoolScheduler for WriteApi batch subject instead of TimeoutScheduler.

Fixes influxdata#561
@bednar
Copy link
Contributor

bednar commented Jan 4, 2024

@goznauk I've tested this PR and everything looks good

@bednar bednar added this to the 1.40.0 milestone Jan 4, 2024
@bednar bednar merged commit 8286f45 into influxdata:master Jan 4, 2024
15 checks passed
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.

WriteApi should use ThreadPoolScheduler for batching
3 participants