Bug: sometimes an _id
field gets removed from a record payload
#37
Labels
bug
Something isn't working
_id
field gets removed from a record payload
#37
Bug description
When using the MongoDB Source connector and sending a payload containing an
_id
field, it is sometimes removed from the record payload but not from the record key. This issue occurs when there are more than two destinations, which makes it a peculiar bug.The Snapshot iterator has the following code:
Here, the map called "element" is used to construct a record key (
sdk.StructuredData{idFieldName: element[idFieldName]}
) and a payload (sdk.StructuredData(element)
). The map is not modified afterward, so it's unclear why the payload sometimes doesn't contain the_id
field while the record key always does.Steps to reproduce:
Version
Conduit
v0.5.2
, MongoDB connector4736288
The text was updated successfully, but these errors were encountered: