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

ChangeStreamDocument should support the "to" field for rename events

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

      Listening to changestream on a database for a collection rename event returns this output:

      ChangeStreamDocument{resumeToken={"_data": "825CABD8F6000000012B022C0100296E5A1004A1D1648D793640C68477FB35AC9554E904"}, namespace=test.test, fullDocument=null, documentKey=null, clusterTime=Timestamp{value=6677669423580446721, seconds=1554766070, inc=1}, operationType=OperationType{value='rename'}, updateDescription=null}
      

      Note that the returned ChangeStreamDocument returned is missing the to field, which is expected to exist (as mentioned in the Change event documentation).

      This was tested using the Java driver 3.10.1

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            kevin.adistambha@mongodb.com Kevin Adistambha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: