Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
passing max_results=5 to bucket.list_blobs() appears to have no effect; all blobs are returned in the BlobIterator
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
dhermes commentedon Feb 15, 2016
Trying to reproduce right now.
dhermes commentedon Feb 15, 2016
Confirmed:
I'm hoping it's just a query string bug. Digging deeper to ascertain.
jlowin commentedon Feb 15, 2016
@dhermes thanks!
dhermes commentedon Feb 15, 2016
Luckily, it's our fault (not the
storagebackend API). We iterate past themaxResultseven when we don't mean to.A short term fix would be for you to use the iterator manually:
Thanks a lot for bringing it to our attention!
dhermes commentedon Oct 3, 2016
#1787 should be a reference point for a fix here
dhermes commentedon Oct 3, 2016
Another example of unexpected failure:
This prints many more than 10 blobs when the iterator is exhausted.
Making max_results part of the base Iterator class.
Making max_results part of the base Iterator class.
tseaver commentedon Oct 4, 2016
FTR, #2490 is the first pass at fixing this issue: the solution there may eventually be obsoleted by the general approach sketched recently in #895.
Making max_results part of the base Iterator class.
Making max_results part of the base Iterator class.
chore(deps): update dependency google-api-core to v2.10.2 (#1467)
Making max_results part of the base Iterator class.
docs: revised relax column mode sample (#1467)
Making max_results part of the base Iterator class.
feat(gapic): support mTLS certificates when available (#1467)
chore: librarian release pull request: 20251216T134400Z (#1468)
chore: fix Multimodal Gemini modifies input DF (#1467)
docs: migrate code from googleapis/python-bigquery (#18303)