[JAVA-3261] ChangeStreamDocument should support the "to" field for rename events Created: 08/Apr/19  Updated: 28/Oct/23  Resolved: 23/May/19

Status: Closed
Project: Java Driver
Component/s: Change Streams
Affects Version/s: None
Fix Version/s: 3.11.0

Type: New Feature Priority: Major - P3
Reporter: Kevin Adistambha Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to JAVA-2966 Support dropDatabase and rename opera... Closed

 Description   

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



 Comments   
Comment by Githook User [ 23/May/19 ]

Author:

{'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin', 'username': 'jyemin'}

Message: Add support for "to" field in ChangeStreamDocument

JAVA-3261
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/019e1997579c0cb14419a68ded1d6ac32aa061d8

Comment by Ian Whalen (Inactive) [ 23/May/19 ]

hey doug and james, sorry for the delay. we usually bulk our triage onto mondays so this would have been sitting for a while - thanks for proactively reaching out!

Generated at Thu Feb 08 08:59:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.