Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2316

mongodb-connector NPE in process of MongoDataConverter

XMLWordPrintable

    • It's because of the ObjectID not recognized in json.
    • Hide
      1. prepare cdc environment no special.
      2. regist cdc with config named 400-mongodb-download-albums.json attached.
      3. insert special mongo data to mongodb named test.json attached.
      4. NPE reproduced.
      5. change the  "transforms.unwrap.array.encoding" to "document"
      6. repeat step from 1 to 3, it works well. 
      Show
      prepare cdc environment no special. regist cdc with config named 400-mongodb-download-albums.json  attached. insert special mongo data to mongodb named  test.json attached. NPE reproduced. change the  "transforms.unwrap.array.encoding" to "document" repeat step from 1 to 3, it works well. 

      When I capture a special data segment from mongodb with `transforms.unwrap.array.encoding` of array, it will always crash with NPE error. But if i change to `document` type, it works well. 

        1. test.json
          11 kB
        2. test.json
          10 kB
        3. 400-mongodb-download-albums.json
          0.8 kB

              ccranfor@redhat.com Chris Cranford
              yaphetsglhf na yin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: