Browse Source
Change TimeoutException to BufferExhaustedException when no memory can be allocated for a record within max.block.ms Refactored BufferExhaustedException to be a subclass of TimeoutException so existing code that catches TimeoutExceptions keeps working. Added handling to count these Exceptions in the metric "buffer-exhausted-records". Test Strategy There were existing test cases to check this behavior, which I refactored. I then added an extra case to check whether the expected Exception is actually thrown, which was not covered by current tests. Reviewers: Ismael Juma <ismael@juma.me.uk>, Jun Rao <junrao@gmail.com>pull/8464/head
Sönke Liebau
5 years ago
committed by
GitHub
6 changed files with 44 additions and 30 deletions
Loading…
Reference in new issue