[KAFKA-44] Fail to write to DB 'The $v update field is only recognized internally Created: 18/Jul/19  Updated: 28/Oct/23  Resolved: 24/Jul/19

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: 0.1
Fix Version/s: 0.2

Type: Improvement Priority: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The CDC handler cannot cope with the $v field that may be present in data

Example payload:

 "payload": {
    "after": null,
    "patch": "{\"$v\" : 1,\"$set\" : {\"last_name\" : \"MyNewName\"}}",
    "source": {
      "version": "0.9.5.Final",
      "connector": "mongodb",
      "name": "dbserver5",
      "rs": "rs0",
      "ns": "inventory.customers",
      "sec": 1562769763,
      "ord": 1,
      "h": 4519476723350356000,
      "initsync": false
    },
    "op": "u",
    "ts_ms": 1562769763351
  }
}

Ref: https://github.com/hpgrahsl/kafka-connect-mongodb/issues/91



 Comments   
Comment by Githook User [ 24/Jul/19 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: CDC: Remove oplog $v field from update

KAFKA-44
Branch: master
https://github.com/mongodb/mongo-kafka/commit/63fab6efe8c52f862fee2fca7aefe0b7cc928bab

Generated at Thu Feb 08 09:05:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.