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: WriteAPIs management #175

Merged
merged 4 commits into from
Aug 12, 2020

Conversation

vlastahajek
Copy link
Contributor

Closes #163

Proposed Changes

Keeping a single instance of WriteAPI and WriteAPIBlocking for each org and bucket pair.

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are in semantic format

@vlastahajek vlastahajek requested a review from sranka August 11, 2020 13:41
Copy link
Contributor

@sranka sranka left a comment

Choose a reason for hiding this comment

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

I accept the fact that the pool of two Write APIs is maintained by the client to avoid backward compatibility issues. An alternative, that would require users to close the Write APIs, is not considered in favor of BC. Please also consider to use a different separator than _ as a pool key that separates org and bucket to minimize possible collisions, a TAB might work better.

@vlastahajek vlastahajek merged commit 6fa233d into influxdata:master Aug 12, 2020
@vlastahajek vlastahajek deleted the fix/writeapi_allocation branch August 12, 2020 05:52
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 Out Of Memory
2 participants