Skip to content

Reliability issue during failures to write to KDB #10

@jarkaxi

Description

@jarkaxi

Hi,

I've been reading through your code to see how it works. I did spot an issue with the reliability of the process and wanted to highlight this.

In https://github.com/DataIntellectTech/kdb-chronicle-queue/blob/main/Adapter/src/main/java/uk/co/aquaq/kdb/adapter/chronicle/ChronicleToKdbAdapter.java#L215 it does the following:

  1. read messages from chronicle queue and accumulate in kdb envelope
  2. try send to KDB
  3. if this fails now reset the queue state back to where it was before we were reading
  4. if application crashes between 2 and 3 you now have a gap in the messages and no way of detecting that gap

Best,

Jark

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions