Skip to content

[0.12] cherry-picks 0.12.4#4452

Merged
tonistiigi merged 4 commits intomoby:v0.12from
crazy-max:v0.12.4_cherry-picks
Nov 29, 2023
Merged

[0.12] cherry-picks 0.12.4#4452
tonistiigi merged 4 commits intomoby:v0.12from
crazy-max:v0.12.4_cherry-picks

Conversation

tonistiigi and others added 4 commits November 29, 2023 21:22
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit e99bfa9)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 7f8eedc)
The events for currently active builds were sent through
pubsub channel instead of directly to the current request,
like it was done for completed builds for example.

This meant that if there are more active builds running
than the pubsub channel buffer (32) the sends will block.
Because the history API mutex is held in this process it
will eventually block the requests for builds that try to
update their history records.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 1ed9931)
When a record is marked for deletion the event is set to nil
but we don't check if it's nil when sending events which could
cause a panic.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
(cherry picked from commit 9d39af0)
@crazy-max crazy-max requested a review from tonistiigi November 29, 2023 20:29
@tonistiigi tonistiigi merged commit 833949d into moby:v0.12 Nov 29, 2023
@crazy-max crazy-max deleted the v0.12.4_cherry-picks branch November 30, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants