Skip to content

Exception in creating stream consumer puts segments into ERROR state #4627

@npawar

Description

@npawar

We recently encountered a situation:

  1. When starting a new consuming segment, we try to create the stream consumer. This is in LLRealtimeSegmentDataManager constructor, the call to makeStreamConsumer
  2. If we encounter an exception in makeStreamConsumer, the entire state transition fails
  3. The segment goes into ERROR state.

Only ways to recover:

  1. Restart

We should be able to gracefully recover from this. Some solutions:

  1. Catch this as a transient exception, and call handleTransientException. This method will retry creating streamConsumer after a 1s sleep. The retry will happen 5 times.

cc: @mcvsubbu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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