Add implementation of processing duplicated ID and duplicated file cases.
Loading
@tim.schoof Add implementation of processing duplicated ID and duplicated file cases. How asapo should react on message insertion if message_id already exists or/and fine name is already exists.
This MR suggest following logic:
Node: in receiver process handling file saving is done before injection metadata to the MongoDB.
Node: Metadata considered the same if:
Architecture of implementation:
Check of the metadata is done on a broker side. In case of Metadata inject no extra request to the broker is needed. In case of file injection a new broker request check_meta
is created. At the end broker uses the same function to perform the check.
Types of errors (e.g. ConsumerErrorTemplates::kWarningDuplicatedRequest
) to be discussed.