Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Event Dispatcher Event Dispatcher
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • packagespackages
  • golanggolang
  • Asynchronous consistencyAsynchronous consistency
  • Event DispatcherEvent Dispatcher
  • Merge requests
  • !5

[IN-757] Handle expected shutdown cancellation in the common dispatcher

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged antonizsar13 requested to merge IN-757 into master Nov 05, 2026
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 4

During playlist-service rollout the Kafka adapter suppressed expected context cancellation, but the common dispatcher logged the returned error again as error/code 500. All four dispatcher error log sites now use a shared classifier: cancellation-only errors become debug only when the caller context is canceled; deadlines, unrelated failures and multi-cause errors remain error/code 500. Original errors and causes still return to callers, with rollback and delivery order preserved. Tests cover classification, wrapped and multi-cause failures, receive cancellation, independent receive failure during shutdown, and canceled send retaining the outbox without deletion or commit. Fixed an existing race in the test channel that reused a loop-variable address on Go 1.18. Validation: go test ./..., go test -race ./..., go vet ./.... Kafka acknowledgement versus database commit ordering is outside this logging fix; this MR does not claim end-to-end delivery verification. No release tag or consumer changes included.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: IN-757