containerd / containerd/ttrpc

Context canceled error returned instead of ErrClosed

Open
#137 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
664
Forks
86
PR merge metrics
No merged PRs in 30d

Description

A flaky test was observed in containerd in the 1.1 branch after updating to 1.1.1

```
=== Failed
=== FAIL: . TestClientTTRPC_Close (0.00s)
client_ttrpc_test.go:85: assertion failed: context canceled (err *errors.errorString) != ttrpc: closed (ttrpc.ErrClosed *errors.errorString)

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running TestClientTTRPC_Close in client_ttrpc_test.go and examine the close/error path involved in the failure at line 85. The issue is resolved when closing the client consistently returns ttrpc.ErrClosed rather than context canceled, with the test passing reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.