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

multi: roll back change in request page size #1225

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

guggero
Copy link
Member

@guggero guggero commented Nov 29, 2024

This fixes an issue with a new tapd (v0.5.0-rc1) attempting to sync with an old (v0.4.1) universe server. Because we now serve all the root nodes from a cache, we allow a much larger page size when requesting the root nodes. But old universe servers will not yet allow that higher request limit, resulting in the following error:

[/universerpc.Universe/AssetLeafKeys]: invalid request limit

So we need to use the old limit when requesting pages. And once most of the universe servers have been updated (e.g. v0.5.1), we can then also use the larger limit on requests.

This fixes an issue with a new tapd (v0.5.0-rc1) attempting to sync with
an old (v0.4.1) universe server. Because we now serve all the root nodes
from a cache, we allow a much larger page size when requesting the root
nodes. But old universe servers will not yet allow that higher request
limit, resulting in the following error:

[/universerpc.Universe/AssetLeafKeys]: invalid request limit

So we need to use the old limit when _requesting_ pages. And once most
of the universe servers have been updated (e.g. v0.5.1), we can then
also use the larger limit on requests.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12087230161

Details

  • 6 of 10 (60.0%) changed or added relevant lines in 5 files are covered.
  • 13 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.001%) to 40.88%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/tapcli/universe.go 0 2 0.0%
itest/assertions.go 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
tappsbt/create.go 2 53.22%
tapchannel/aux_leaf_signer.go 2 43.08%
asset/mock.go 3 92.2%
asset/asset.go 6 80.79%
Totals Coverage Status
Change from base Build 12057455142: -0.001%
Covered Lines: 25787
Relevant Lines: 63080

💛 - Coveralls

Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚁

@Roasbeef Roasbeef added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit f7c8789 Dec 2, 2024
18 checks passed
@guggero guggero deleted the universe-sync-limit branch December 2, 2024 15:19
@dstadulis dstadulis added this to the v0.5 (v0.4.2 rename) milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants