fix: check prometheus init status before use in batch processor (#8065)#8079
Conversation
|
If the error of #8065 cannot be reproduced, then the fix does not work. |
|
|
||
|
|
||
|
|
||
| === TEST 25: access |
There was a problem hiding this comment.
The test can pass even if I remove the change in the apisix/utils/batch-processor.lua.
There was a problem hiding this comment.
Can you show us the route information you configured?
There was a problem hiding this comment.
It means to delete your change, the newly added test case can also pass.
There was a problem hiding this comment.
I can not reproduce the problem, but the test case can reach the code line where the user report, the test case is not a good one, i will try to reproduce again.
There was a problem hiding this comment.
I have reproduced the problem, accessing the router with prometheus plugin disabled will cause the problem
Description
check prometheus init status before use in batch processor
Fixes #8065
Checklist