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 carbonserver render error race #442
Fix carbonserver render error race #442
Conversation
Whenever there are multiple render requests approaching for the same records, and the proceeding request gets an error, waiting requests should get an error too.
Could you please check the fix, @bom-d-van ? |
yep, overall it looks good to me. There is a DeepSource failure, @emadolsky could you check if you can fix it? |
Not sure about DeepSource - it complains about unused metric parameter - https://deepsource.io/gh/go-graphite/go-carbon/run/617e9c52-2797-47f7-90f9-e9b47844eb47/go/RVV-B0012 but lint error is clear, though - https://go-critic.com/overview.html#ifElseChain-ref |
af82c3e
to
e8e4a89
Compare
b848992
to
43ff486
Compare
The metric name variable was not used in the function. The only use could be logging it. Also we could just get rid of it. But I was not sure which to choose. What do you think? |
logging seems good for me. approving it and re-running the jobs. |
The CodeQL ones look like the reaction of golang linter to the log4j incident. I'm reviewing them, probably gonna mark them as |
It is a simple fix to #436.
Whenever there are multiple render requests approaching for the
same records, and the proceeding request gets an error, waiting
requests should get an error too.
It is a bit different from #431 because
listener.prepareDataProto
handles the 404 case and returns an empty response which will be handled correctly when it proceeds. So handling the error case would probably be the solution.