You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/03 03:08:29 UTC
[GitHub] [apisix] Gary-Airwallex opened a new issue #2938: bug:
Gary-Airwallex opened a new issue #2938:
URL: https://github.com/apache/apisix/issues/2938
### Issue description
We have the prometheus plugin enabled in global rule and query the /apisix/promethues/metrics endpoint once per second. After upgrading to APISIX 2.0 from 1.5, occasionally we see ERROR logs like this:
`[error] 36#36: *105103628 [lua] http.lua:951: request_uri(): unread data in buffer, client:, server: , request: "GET /apisix/prometheus/metrics HTTP/1.1"`
### Environment
* apisix version (cmd: `apisix version`): 2.0
* OS: linux
### Minimal test code / Steps to reproduce the issue
1. We weren't able to reproduce this issue.
### What's the actual result? (including assertion message & call stack if applicable)
Errors, see above. Not sure if this has any impact on the prometheus metrics?
### What's the expected result?
No errors.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] nanamikon commented on issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
nanamikon commented on issue #2938:
URL: https://github.com/apache/apisix/issues/2938#issuecomment-906872201
@spacewander Any plan to merge this to https://github.com/api7/lua-resty-http, we have the similar problem too, refer to #4875
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2938:
URL: https://github.com/apache/apisix/issues/2938#issuecomment-811808956
Probably relative: https://github.com/ledgetech/lua-resty-http/pull/230
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2938:
URL: https://github.com/apache/apisix/issues/2938
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2938:
URL: https://github.com/apache/apisix/issues/2938#issuecomment-737650360
Strange. We just tweak some metrics between 1.5 and 2.0, which should not affect the way to fetch the data. Need a packet capture file and corresponding error log to confirm it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2938:
URL: https://github.com/apache/apisix/issues/2938#issuecomment-906880169
@nanamikon
Would you submit a PR to api7/lua-resty-http?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] nanamikon commented on issue #2938: bug: "unread data in buffer" when getting prometheus metrics
Posted by GitBox <gi...@apache.org>.
nanamikon commented on issue #2938:
URL: https://github.com/apache/apisix/issues/2938#issuecomment-907963741
> @nanamikon
> Would you submit a PR to api7/lua-resty-http?
Ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org