Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3225

ChangeStreamDocument does not have getters for txnNumber and lsid fields

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.11.0
    • 4.0.0
    • Change Streams
    • None

    Description

      According to the ChangeStreamDocument api, there are no getter methods for txnNumber and lsid.

      From the manual, these fields do exist when the operation is part of a transaction.

      Would you be able to extend the ChangeStreamDocument class to include the above fields?

      Is this related to CSHARP-2406?

      I did try to implement my own POJO to use in ChangeStreamIterable.withDocumentClass(). I got as far as registering the class's codec into the MongoClient.codecRegistry(). However, I was not successful. If there is a recommended approach without using the getters, please let me know.

      Attachments

        Activity

          People

            john.stewart@mongodb.com John Stewart (Inactive)
            steve.choi@mongodb.com Steve Choi (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: