Skip to content

storage: ListFolders context deadline exceeded #13405

@marziaelia

Description

@marziaelia

Client

Storage

Environment

Kubernetes

Code and Dependencies

 	req := &controlpb.ListFoldersRequest{
		Parent:    fmt.Sprintf("projects/_/buckets/%s", l.bucketName),
		Prefix:    l.prefix,
		Delimiter: "/",
		PageSize:  int32(limit),
	}
	it := l.client.ListFolders(ctx, req)
	paginator := iterator.NewPager(it, defaultGCSPageSize, l.nextPageToken)
	var objects []*controlpb.Folder

	pageToken, err := paginator.NextPage(&objects)
	if err != nil {
		return err
	}
go.mod
module modname

go 1.25.0

require (
   cloud.google.com/go/storage v1.57.1
)

Expected behavior

The ListFolders API should return the list of folders in an HNS enabled bucket

Actual behavior

The ListFolders API hangs and eventually fails with a context deadline exceeded error.

Additional context

The issue started after upgrading to v1.57.1; the same code works fine with v1.55.0. Are there any relevant changes between these versions that could explain this behavior?

We compile using the disable_grpc_modules build tag, could this have an impact?

We haven’t been able to reproduce the issue ourselves when connecting from our development workstation to an HNS-enabled bucket, but some of our customers (and yours) encounter it when running our application on Kubernetes.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions