Skip to content

Add more context to FailAction, including ChunkId #426

@jonnepmyra

Description

@jonnepmyra

Is your feature request related to a problem? Please describe.

I’ve been looking into customizing the behavior when hash verification fails, using the new FailAction feature added in PR #423. One thing I’m missing, though, is context about which chunk failed.

Currently, the FailAction only provides access to the IConsumer, but it would be really helpful if it also included more information—especially the ID of the chunk that failed verification.

Describe the solution you'd like

It would be nice with an additional parameter where we can get access to the:

  • ChunkId
  • Name of the stream
  • Consumer reference name
  • Partition (if the stream is a superstream)
  • ..and maybe the hash:es ?

Describe alternatives you've considered

No response

Additional context

I want to implement logic that skips a chunk if it fails hash validation repeatedly for the same chunkId. Without knowing which chunk is involved, it's hard to track and act on such repeated failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions