ksql
ksql copied to clipboard
Fix/9533 Updated TimeBoundedQueue to be bound by capacity and duration both
Description
Original Issue TimeBoundedQueue has been fixed to bounded by both time and capacity
Currently, When a query has errors, a list of errors collected is displayed by the SHOW QUERIES EXTENDED or EXPLAIN
So to prevent this, I have added a capacity member in the TimeBoundedQueue Class and in evict method, if the elements are less than capacity than only we will skip poll else we will evict out the elements, For more context refer code change.
Testing done
Have added Unit Tests for the same
Reviewer checklist
- [ ] Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
- [ ] Ensure relevant issues are linked (description should include text like "Fixes #
")
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.