Remove WrongInput error from AckRecord function
AckRecord function can return WrongInputError
if the Id is missing in inProcess collection.
However thre are several reason for Id to be missing:
- A race condition when two requests try to acknowledge the same id simultaneously
- A message that arrived late was retrieved by the consumer after internally switching from
get_next
withordered=True
toget_by_id
, in which case it was not added to the collection - The user acknowledged the wrong ID.
It would be nice to return a WrongInputError
in the last case, but it currently cannot be distinguished from the above cases. Therefore this MR remove this error.