Skip to content

dev: Graceful shutdown with Topic API causes a warning logs #1999

Description

@lavrukov

I've encountered a minor issue during the graceful shutdown of an application that uses the Topic API.

My application is blocked, waiting for a message on reader.ReadMessage(ctx). When the application begins its shutdown sequence, the context (ctx) is canceled. As a result, I get a WARN log entry:

  • topic read messages failed

This doesn't seem like the correct behavior. Context cancellation is a standard and expected part of a graceful shutdown procedure. Therefore, the driver shouldn't log this event as a warning, as it's not an unexpected failure but a deliberate, controlled termination.

The same behavior is observed with the following messages:

  • table session delete failed
  • topic reader data response received and process failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions