-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: return ok in kafka-logger #2222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bug should result in an error for each request, then test case 5 should fail, proving that the case does not cover the situation, I guess it should be caused by the short waiting time, please modify the case to cover the bug
The previouse wait time was too short to expose errors, and by setting timeout and batch_max_size smaller will make errors to log more quickly if there are any.
…isix into fix-kafka_logger
@ShiningRush thanks for your guide. You are right about why the error message was missed before, such a short waiting time will cover all kinds of error messages including kafka timeout and topic missing. I've increased the waiting time and also the Before the change:
|
@ShiningRush please take a look, thx |
What this PR does / why we need it:
apisix/apisix/utils/batch-processor.lua
Line 59 in 98da870
ok
anderr
, butfunc
inkafka-logger
returns nil if it's ok. This behaviour causes a lot of unnecessary logs though it's actually ok:Pre-submission checklist: