Skip to content

Remove WrongInput error from AckRecord function

Mikhail Karnevskiy requested to merge remove_ack_error into develop

@tim.schoof

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 with ordered=True to get_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.

Merge request reports

Loading