-
Notifications
You must be signed in to change notification settings - Fork 214
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
MeshService.LayersQuery
broken
#5315
Comments
Halo ?how about this issue going on? |
This has been fixed in #5334 and should be merged and released soon! |
@lrettig This error:
is on the client (grpcurl) side, not go-spacemesh. The client limits the maximum size of response payload to 4MiB by default. There is a CLI argument to change this:
|
Good catch, thanks for the clarification. |
Modify `MeshService.LayersQuery` to return ONLY the single, canonical block for each queried layer. Fixes performance issues for now by not querying any activations, proposals, etc. Modify `MeshService.AccountMeshDataQuery` not to query activations to prevent memory/CPU bomb ## Motivation Closes #5315 Closes #5006 ## Changes - Add method to mesh to return single, valid, applied block for a given layer - Modify `MeshService.LayersQuery` to use this new method - Additionally, remove query for activations (leave this empty for now) - Modify `MeshService.AccountMeshDataQuery` not to query activations ## Test Plan Tests updated ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Fasching <[email protected]> Co-authored-by: Jędrzej Nowak <[email protected]>
Modify `MeshService.LayersQuery` to return ONLY the single, canonical block for each queried layer. Fixes performance issues for now by not querying any activations, proposals, etc. Modify `MeshService.AccountMeshDataQuery` not to query activations to prevent memory/CPU bomb ## Motivation Closes #5315 Closes #5006 ## Changes - Add method to mesh to return single, valid, applied block for a given layer - Modify `MeshService.LayersQuery` to use this new method - Additionally, remove query for activations (leave this empty for now) - Modify `MeshService.AccountMeshDataQuery` not to query activations ## Test Plan Tests updated ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Fasching <[email protected]> Co-authored-by: Jędrzej Nowak <[email protected]>
Modify `MeshService.LayersQuery` to return ONLY the single, canonical block for each queried layer. Fixes performance issues for now by not querying any activations, proposals, etc. Modify `MeshService.AccountMeshDataQuery` not to query activations to prevent memory/CPU bomb ## Motivation Closes #5315 Closes #5006 ## Changes - Add method to mesh to return single, valid, applied block for a given layer - Modify `MeshService.LayersQuery` to use this new method - Additionally, remove query for activations (leave this empty for now) - Modify `MeshService.AccountMeshDataQuery` not to query activations ## Test Plan Tests updated ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Fasching <[email protected]> Co-authored-by: Jędrzej Nowak <[email protected]> Co-authored-by: Kacper Sawicki <[email protected]>
Modify `MeshService.LayersQuery` to return ONLY the single, canonical block for each queried layer. Fixes performance issues for now by not querying any activations, proposals, etc. Modify `MeshService.AccountMeshDataQuery` not to query activations to prevent memory/CPU bomb ## Motivation Closes #5315 Closes #5006 ## Changes - Add method to mesh to return single, valid, applied block for a given layer - Modify `MeshService.LayersQuery` to use this new method - Additionally, remove query for activations (leave this empty for now) - Modify `MeshService.AccountMeshDataQuery` not to query activations ## Test Plan Tests updated ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Fasching <[email protected]> Co-authored-by: Jędrzej Nowak <[email protected]> Co-authored-by: Kacper Sawicki <[email protected]>
Description
It takes a very long time to run, close to a minute for a single layer, probably because it reads all ATX data (presumably the entire active set), probably without caching (no memory issue AFAICT). Then it produces this error:
Affected code
api/grpcserver/mesh_service.go
This issue appears in commit hash: 6499e01
Related: #5006
The text was updated successfully, but these errors were encountered: