Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Document Nakadi Publishing failure handling #416

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Document Nakadi Publishing failure handling #416

merged 2 commits into from
Sep 18, 2023

Conversation

otrosien
Copy link
Member

@otrosien otrosien commented Sep 15, 2023

Adds @ePaul 's nice assessment of the status quo to the API docs.

Relates to #415

@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.09% ⚠️

Comparison is base (1f982ee) 69.76% compared to head (d4f723b) 69.68%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #416      +/-   ##
============================================
- Coverage     69.76%   69.68%   -0.09%     
+ Complexity      631      630       -1     
============================================
  Files           114      114              
  Lines          2487     2487              
  Branches        179      179              
============================================
- Hits           1735     1733       -2     
- Misses          622      623       +1     
- Partials        130      131       +1     
Flag Coverage Δ
unittests 69.68% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...main/java/org/zalando/fahrschein/NakadiClient.java 73.61% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adyach
Copy link
Contributor

adyach commented Sep 15, 2023

@otrosien could we also add it to README as a separate paragraph?

@otrosien otrosien changed the title Document current HTTP 207 handling Document Nakadi Publishing failure handling Sep 18, 2023
@otrosien
Copy link
Member Author

@adyach done.

Copy link
Collaborator

@rob-h-w rob-h-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adyach
Copy link
Contributor

adyach commented Sep 18, 2023

👍

1 similar comment
@otrosien
Copy link
Member Author

👍

@otrosien otrosien merged commit 12db401 into main Sep 18, 2023
2 checks passed
@otrosien otrosien deleted the document-207 branch September 18, 2023 09:50
These objects have the eid of the failed event, a `publishingStatus` (failed/aborted/submitted - but successful itemes are
filtered out), the step where it failed and a detail string.

If the application sets the eids itself (i.e. doesn't let Nakadi do it) and keeps track of them, this allows it
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nakadi does not assign eid to events — the id has to be provided by the event publisher.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, that's new to me. From my experience, when no eid is in the metadata, Nakadi will provide a random UUID. Did this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried it, and events without eid are rejected. I guess I mixed this up with some other metadata fields. Sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants