Closed fangdanzai closed 1 year ago
please provide a full reproduction example, as it likely is related to how it is used
PS: next time please use proper code-formatting (ie no spaces for a code-block and add the language)
You can't test changeStream with wiredTiger
storage engine
You can't test changeStream with wiredTiger storage engine
did you mean to say ephermeralForTest
? because official mongodb docs say this about Availability
for Change Streams
:
The replica sets and sharded clusters must use the WiredTiger storage engine. Change streams can also be used on deployments that employ MongoDB's encryption-at-rest feature.
You can't test changeStream with wiredTiger storage engine
did you mean to say
ephermeralForTest
? because official mongodb docs say this aboutAvailability
forChange Streams
:The replica sets and sharded clusters must use the WiredTiger storage engine. Change streams can also be used on deployments that employ MongoDB's encryption-at-rest feature.
Sorry, you're right. In case, we need to handle a replset instance with wiredTiger
, I was wrong.
Marking the Issue as stale, it will be closed in 7 days if no more activity is seen
Closing the Issue because it is marked as stale
Versions
package: mongo-memory-server : mongo-memory-server
What is your question?
I tried to use mongodb-memory-server to create a local unit test, and here's my setup:
I also created a changeStreamClient to connect to the database I built. Once the program start to watch the data-set, I tried to delete one Document in the watched collection but changeStream.on() is not triggered in unit test.
Any one knows the reason?