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

ChangeStreamDocument does not have getters for txnNumber and lsid fields

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.0
    • Affects Version/s: 4.0.0
    • Component/s: Change Streams
    • None

      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.

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

              Created:
              Updated:
              Resolved: