Skip to content
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

Out of bound error in /api/v1/query_range #490

Open
thmzlt opened this issue Apr 9, 2024 · 5 comments
Open

Out of bound error in /api/v1/query_range #490

thmzlt opened this issue Apr 9, 2024 · 5 comments
Labels
help wanted Extra attention is needed needs testing

Comments

@thmzlt
Copy link

thmzlt commented Apr 9, 2024

Some times Grafana metrics query requests start failing with "out of bounds" errors. Restarting the qyrn process seems to helmp. Here are the qryn process logs around the requests:

{"level":30,"time":1712493563160,"pid":19,"hostname":"qryn-774c84c7c-9hwvk","name":"qryn","reqId":"req-157","req":{"method":"POST","url":"/api/v1/query_range","hostname":"qryn.qryn-read:3100","remoteAddress":"10.0.0.102","remotePort":50000},"msg":"incoming request"}
{}
RangeError: offset is out of bounds
    at Uint8Array.set (<anonymous>)
    at Ctx.write (/app/wasm_parts/main.js:216:53)
    at pql (/app/wasm_parts/main.js:156:9)
    at module.exports.pqlRangeQuery (/app/wasm_parts/main.js:63:16)
    at module.exports.rangeQuery (/app/promql/index.js:21:29)
    at Object.handler (/app/lib/handlers/prom_query_range.js:22:26)
    at routeOptions.handler (/app/node_modules/@fastify/websocket/index.js:150:24)
    at preHandlerCallback (/app/node_modules/fastify/lib/handleRequest.js:137:37)
    at validationCompleted (/app/node_modules/fastify/lib/handleRequest.js:121:5)
    at preValidationCallback (/app/node_modules/fastify/lib/handleRequest.js:98:5)
{"level":30,"time":1712493563161,"pid":19,"hostname":"qryn-774c84c7c-9hwvk","name":"qryn","reqId":"req-157","res":{"statusCode":500},"responseTime":0.5298900604248047,"msg":"request completed"}

Running qryn containerized with image ghcr.io/metrico/qryn:3.2.17 in Kubernetes.

@lmangani
Copy link
Collaborator

Thanks for the report! Could you confirm if the issue persists in 3.2.19?

@lmangani lmangani added help wanted Extra attention is needed needs testing labels Apr 18, 2024
@thmzlt
Copy link
Author

thmzlt commented Apr 18, 2024

Okay, will run 3.2.19 for a week and report back.

@thmzlt
Copy link
Author

thmzlt commented Apr 22, 2024

Still getting the out of bounds in 3.2.19.

@thmzlt
Copy link
Author

thmzlt commented Apr 29, 2024

@lmangani anything else I can share to help debug this?

@lmangani
Copy link
Collaborator

@thmzlt could you kindly retest using the latest version and provide feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs testing
Projects
None yet
Development

No branches or pull requests

2 participants