forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid adding to the channel up to the maximum(elastic#10)
The problem appears when the bulkChannel reaches the maximum size, the go-routine blocks and no more data are consumed from the channel. To fix the problem, make sure the bulkChannel doesn't reach the maximum size by consuming the data before the channel is full.
- Loading branch information
1 parent
fa13642
commit 0b389cb
Showing
2 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters