-
Notifications
You must be signed in to change notification settings - Fork 132
ci(spanner): Fix nightly job issues #3522
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -717,7 +717,7 @@ private void testPagination() { | |
Page<Backup> page = dbAdminClient.listBackups(instanceId, Options.pageSize(1)); | ||
assertEquals(1, Iterables.size(page.getValues())); | ||
numBackups++; | ||
assertTrue(page.hasNextPage()); | ||
assertFalse(page.hasNextPage()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a bit surprising. Did this always fail before? Or is there some other reason that this needs to be changed now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so. if you can see line above, it says iterable.size is 1 which means it will not have next page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, that is not what that means. That value is for how many items per page that the backend should return. So it basically works like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I meant the same. In this example, there's only one backup so it will not have next page. |
||
Set<String> seenPageTokens = new HashSet<>(); | ||
seenPageTokens.add(""); | ||
while (page.hasNextPage()) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.