Skip to content

Add the requet back to the queue on fail, not just the last record.#75

Merged
markrmiller merged 1 commit intoapache:mainfrom
markrmiller:fix_retry
Oct 3, 2023
Merged

Add the requet back to the queue on fail, not just the last record.#75
markrmiller merged 1 commit intoapache:mainfrom
markrmiller:fix_retry

Conversation

@markrmiller
Copy link
Copy Markdown
Member

No description provided.

@markrmiller markrmiller requested a review from sigram October 3, 2023 07:27
}
metrics.counter("failed-resubmit").inc();
kafkaMirroringSink.submit(record.value());
kafkaMirroringSink.submit(result.newItem());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should do the trick :)
BTW, I don't like the name _newItem and this method suggests as if we were creating something new, which we're not. Why not item and getItem() ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I honestly have no clue. I started on this from Anshum's original dump that he extracted from some older code that did other things and integrated with other components. I don't understand much about the naming in that class, and since I haven't really had to touch before, it's just kind of survived. I'll make sure to refactor it in a cleanup issue.

@markrmiller markrmiller merged commit 35fc2c2 into apache:main Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants