-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
AllocDirStats field missing from api definition of HostStats #20246
Comments
Hi @tomqwpl! Yeah this looks like a bug in Easy fix though. We'll get that done. |
The JSON response for the Read Stats client API includes an `AllocDirStats` field. This field is missing in the `api` package, so consumers of the Go API can't use it to read the values we're getting back from the HTTP server. Fixes: #20246
The JSON response for the Read Stats client API includes an `AllocDirStats` field. This field is missing in the `api` package, so consumers of the Go API can't use it to read the values we're getting back from the HTTP server. Fixes: #20246
I've got a quick fix up here: #20261 |
The JSON response for the Read Stats client API includes an `AllocDirStats` field. This field is missing in the `api` package, so consumers of the Go API can't use it to read the values we're getting back from the HTTP server. Fixes: #20246
@tgross Apologies I didn't get time to create the PR before you got there, since it was a trivial fix I had done locally (albeit I didn't have the test cases) |
The JSON response for the Read Stats client API includes an `AllocDirStats` field. This field is missing in the `api` package, so consumers of the Go API can't use it to read the values we're getting back from the HTTP server. Fixes: #20246
Nomad version
This is in git on main as of today.
Issue
In api/nodes.go there is a definition of HostStats. I believe that this declared what a user of the nomadapi sees as the definition of that struct.
However, in client/hosttast.go there is what I believe is the server side version of this struct. This version has AllocDirStats field in. I can see that AllocDirStats is returned in REST API responses, but the nomadapi version of HostStats doesn't declare that field so it's not available to users of nomadapi.
The text was updated successfully, but these errors were encountered: