When a document is deleted on a MongoDB Collection 2 messages will appear:
- First being a delete operation as in the oplog
- Second a Tombstone message which value is null
In a connector with UnwrapFromMongoDbEnvelope enabled, delete a document within the collection.
The result is as follows:
It happens because the Tombstone message has no value nor valueSchema, this part of the transformer UnwrapFromMongoDbEnvelopeTestIT.java:148 depends on the valueSchema to exist which isn't true for the tombstone