You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:使用WSO2 Streaming Integrator实现MongoDB CDC失败,请协助排查

WSO2 Streaming Integrator MongoDB CDC配置失败求助

背景

我在使用WSO2 Streaming Integrator实现MongoDB CDC功能时遇到问题:

  • 已通过docker-compose搭建MongoDB副本集(基于mongo-replica-compose项目的配置)
  • 按照如下参数配置CDC源:
    • 源类型:MongoDB CDC
    • 连接URL:mongodb://localhost:27017
    • 目标数据库:testdb
    • 目标集合:testcol
    • 副本集名称:rs0
    • 未启用SSL,未配置认证信息

问题

配置启动后无法正常运行,抛出如下错误:

[2024-XX-XX XX:XX:XX,XXX] ERROR {MongoDBChangeStreamListener} - Error occurred while listening to change stream
com.mongodb.MongoQueryException: Query failed with error code 286 and error message 'The $changeStream stage is only supported on replica sets or sharded clusters'
    at com.mongodb.internal.operation.CommandOperationHelper.translateCommandException(CommandOperationHelper.java:265)
    ...(省略后续堆栈信息)

恳请各位帮忙排查解决,谢谢!

内容的提问来源于stack exchange,提问作者nankiesof

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 08:00:28