Hi Team, We are using the AsyncWaitOperator's retr...
# troubleshooting
d
Hi Team, We are using the AsyncWaitOperator's retry function. After the max retry, the RetryableResultHandlerDelegator.processRetry() method calls resultHandler.completeExceptionally(). This was causing job restarts. To stop this job restarts, we changed completeExceptionally() to complete(empty collection). Now we want to implement DLQ for the async operator. But because we use complete(empty collection), the events are dropped after max retry. How to capture these failed events after max retry and return it to the async operator, so we can send it to DLQ. Any help is much appreciated.
👀 2
p
You can check on the next step if the result of your capture is empty or something like it. I had a similar case and to sort it out, I used
Either<Left, Right>
and i check if in a processing step right after the Async.
d
Hi @Pedro Mázala , thanks for the response. We have similar logic in async function. But for that we need to get result in onSuccess or on failure in our future call. In async wait operator, we return empty collection after max retry and so the message is dropped instead of returning to the future call
p
You can use a filter + a side output. One of the side outputs being sink to the DLQ