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

RS: BatchActor over-subscribes if flushInterval is used #351

Open
rkuhn opened this issue Nov 14, 2015 · 1 comment
Open

RS: BatchActor over-subscribes if flushInterval is used #351

rkuhn opened this issue Nov 14, 2015 · 1 comment

Comments

@rkuhn
Copy link

rkuhn commented Nov 14, 2015

Using the flushInterval will lead to less than batchSize elements being written in a batch, but when processing the ResultSet a full batchSize is requested from upstream, leading to unbounded growth of outstanding work (by violating the concurrentRequests limit).

@rkuhn
Copy link
Author

rkuhn commented Nov 18, 2015

The BatchActor will have to keep track of the size of each write batch and then only request that number of new elements when the database result comes back.

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

No branches or pull requests

1 participant