Skip to content

feat(connectors): add mongodb source connector - #4225

Open
Luishfs wants to merge 5 commits into
apache:masterfrom
Luishfs:feature/mongodb_source_new
Open

Luishfs wants to merge 5 commits into
apache:masterfrom
Luishfs:feature/mongodb_source_new

Conversation

@Luishfs

@Luishfs Luishfs commented Sep 18, 2026

Copy link
Copy Markdown

Which issue does this PR address?

Status: Open.
#3042

Closes #
Relates to #

Rationale

Adding MongoDB source to connectors

What changed?

Added mongoDB source

Local Execution

Passed. Video showing MongoDB Source behaviour:

simplescreenrecorder3-2026-09-18_13.54.55.mp4

also ran all pre-commit hooks and nothing seems related to my changes:

check yaml...............................................................Passed
mixed line ending........................................................Passed
ruff check...............................................................Passed
ruff format..............................................................Passed
pyrefly (foreign/python).................................................Failed
- hook id: pyrefly-foreign-python
- exit code: 2

warning: Failed to parse `pyproject.toml` during settings discovery:
  TOML parse error at line 153, column 17
      |
  153 | exclude-newer = "7 days"
      |                 ^^^^^^^^
  failed to parse year in date "7 days": failed to parse "7 da" as year (a four digit integer): invalid digit, expected 0-9 but got  

      Built apache-iggy @ file:///home/luis/iggy2/iggy/foreign/python
Uninstalled 1 package in 1ms
Installed 1 package in 0.47ms
error: Failed to spawn: `pyrefly`
  Caused by: No such file or directory (os error 2)

pyrefly (bdd/python).....................................................Passed
pyrefly (examples/python)................................................Passed
markdownlint.............................................................Passed
shellcheck...............................................................Failed
- hook id: shellcheck
- exit code: 1

shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/ci/license-headers.sh

Checking: core/bench/dashboard/server/docker-entrypoint.sh

Checking: scripts/ci/uv-lock-check.sh

Checking: foreign/python/scripts/test.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/ci/sync-python-interpreter-version.sh

Checking: scripts/ci/storage-compat.sh

Checking: foreign/csharp/scripts/pack.sh

Checking: scripts/ci/markdownlint.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/ci/coverage-baseline-affected.sh

Checking: scripts/dashboard/run_dev.sh

Checking: scripts/ci/shellcheck.sh

Checking: scripts/ci/validate-lcov.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/prepare-release.sh

Checking: core/bench/dashboard/frontend/scripts/select_index.sh

Checking: scripts/ci/skills.sh

Checking: .devcontainer/notice.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/extract-version.sh

Checking: scripts/ci/python-sdk-version-sync.sh

Checking: scripts/run-bdd-tests.sh

Checking: bdd/cpp/scripts/entrypoint.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/run-examples-from-readme.sh
scripts/run-examples-from-readme.sh:76:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:77:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:78:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:79:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:80:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:81:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:82:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:83:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:84:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:86:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:87:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:88:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:89:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:90:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:92:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:95:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:97:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:98:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:101:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:101:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:101:36: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:102:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:103:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:103:12: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:104:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:105:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:106:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:107:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:111:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:112:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:114:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:115:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:118:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:118:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:119:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:122:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:123:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:123:12: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:124:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:126:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:129:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:130:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:133:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:133:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:133:45: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:133:74: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:134:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:135:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:136:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:137:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:137:16: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:138:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:140:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:140:16: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:140:43: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:141:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:142:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:146:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:146:12: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:147:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:148:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:149:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:151:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:153:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:154:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:156:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:156:16: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:157:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:160:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:161:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:161:20: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:162:21: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:164:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:167:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:168:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:172:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:173:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:182:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:183:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:188:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:188:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:189:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:190:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:193:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:194:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:199:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:200:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:201:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:201:12: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:202:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:203:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:207:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:222:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:224:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:225:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:225:47: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:227:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:241:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:243:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:244:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:244:47: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:246:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:256:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:264:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:265:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:265:47: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:267:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:268:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:269:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:270:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:271:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:273:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:276:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:277:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:278:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:280:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:280:27: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:281:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:282:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:284:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:286:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:287:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:290:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:290:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:290:45: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:291:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:292:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:292:12: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:292:38: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:293:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:294:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:295:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:296:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:297:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:298:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:300:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:300:35: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:301:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:302:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:303:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:307:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:308:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:316:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:318:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:319:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:319:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:320:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:321:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:326:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:326:16: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:327:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:327:39: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:328:17: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:331:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:334:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:334:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:334:44: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:335:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:336:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:339:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:340:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:341:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:344:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:358:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:359:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:360:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:360:47: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:362:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:378:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:379:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:379:47: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/run-examples-from-readme.sh:381:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]

Checking: foreign/java/gradlew

Checking: scripts/profile.sh

Checking: scripts/performance/utils.sh

❌ Found issues in shell scripts
💡 Fix the issues reported above manually
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/utils.sh

Checking: scripts/ci/third-party-licenses.sh

Checking: scripts/ci/test-helm.sh

Checking: scripts/bump-version.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: bdd/java/gradlew

Checking: gateways/kafka/scripts/ci-wire-fixtures.sh

Checking: scripts/ci/apt-install.sh

Checking: scripts/ci/lib/init.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/cross-docker-entrypoint.sh

Checking: scripts/run-benches.sh

Checking: scripts/ci/taplo.sh

Checking: scripts/verify-crates-publish.sh
scripts/verify-crates-publish.sh:81:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:82:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:83:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:85:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:85:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:86:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:87:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:88:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:90:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:92:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:92:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:93:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:94:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:95:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:95:37: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:98:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:98:8: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:98:36: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:99:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:100:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:100:51: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:102:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:103:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:103:52: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:104:13: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:106:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:106:51: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:107:9: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:107:45: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:110:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
scripts/verify-crates-publish.sh:111:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]

❌ Found issues in shell scripts
💡 Fix the issues reported above manually
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: examples/java/gradlew

Checking: scripts/ci/sync-rustc-version.sh

Checking: foreign/php/scripts/test.sh

Checking: scripts/copy-latest-from-master.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/ci/edge-affected-images.sh

Checking: scripts/ci/trailing-whitespace.sh

Checking: scripts/prepare-cross-toml.sh

Checking: scripts/ci/setup-helm-tools.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/ci/setup-helm-smoke-cluster.sh

Checking: scripts/ci/binary-artifacts.sh

Checking: scripts/performance/run-standard-performance-suite.sh

Checking: scripts/ci/trailing-newline.sh

✅ All shell scripts passed shellcheck
shellcheck version: ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
🔧 Running shellcheck with detailed suggestions...

Note: shellcheck does not support automatic fixing.
Please review the suggestions below and fix issues manually.

Checking: scripts/dashboard/build_release.sh

✅ All shell scripts passed shellcheck

license headers..........................................................Passed
rust version sync........................................................Passed
python sdk version sync..................................................Passed
python interpreter version sync..........................................Passed
uv lock check............................................................Passed
version consistency......................................................Passed
trailing whitespace......................................................Passed
trailing newline.........................................................Passed
binary artifacts.........................................................Passed
typos (spelling check)...................................................Passed
skills (AI agent skill frontmatter + link check).........................Passed
taplo (TOML format)......................................................Passed
cargo fmt................................................................Passed
cargo sort...............................................................Passed
go fmt...................................................................Passed
go mod tidy..............................................................Passed
node eslint..............................................................Passed
web lint.................................................................Passed
helmfmt..................................................................Failed
- hook id: helmfmt
- exit code: 1

Executable `helmfmt` not found

yamllint (helm)..........................................................Passed
helm-docs................................................................Failed
- hook id: helm-docs
- exit code: 127

/usr/bin/bash: line 1: helm-docs: command not found

  • Passed
  • Pre-commit hooks ran

AI Usage

  1. Which tools?
    Claude

2.Scope of usage?
Mostly for small corrections or questions

3.How did you verify the generated code works correctly?
N/A

4.Can you explain every line of the code if asked?
its been some time but yeah =P

@github-actions

Copy link
Copy Markdown

Thanks for the PR. It is labeled S-waiting-on-review and queued for review.

Slash commands (own line, regular comment) move it around the queue:

  • /ready - back to S-waiting-on-review after addressing feedback
  • /author - flip to S-waiting-on-author while you finish changes
  • /request-review @user-or-team - request a reviewer
  • /pin - exempt the PR from the stale bot, /unpin to undo

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Sep 18, 2026
@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.63%. Comparing base (78151b9) to head (ff09cad).
⚠️ Report is 36 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4225      +/-   ##
============================================
- Coverage     87.13%   85.63%   -1.51%     
  Complexity     1455     1455              
============================================
  Files          1273     1273              
  Lines        215301   216032     +731     
  Branches     179911   180028     +117     
============================================
- Hits         187611   184996    -2615     
- Misses        23173    26566    +3393     
+ Partials       4517     4470      -47     
Components Coverage Δ
Rust Core 88.17% <ø> (ø)
Java SDK 67.58% <ø> (ø)
C# SDK 58.25% <ø> (-18.88%) ⬇️
Python SDK 90.97% <ø> (ø)
PHP SDK 85.67% <ø> (ø)
Node SDK 90.78% <ø> (-5.45%) ⬇️
Go SDK 57.58% <ø> (-11.87%) ⬇️
see 154 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@slbotbm

slbotbm commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@Luishfs Seems your cargo.lock file is stale, due to which 11/13 checks are failing. The remaining two checks that fail are:

  • trailing newline: core/connectors/runtime/example_config/connectors/mongodb_source.toml is missing a trailing new line. Fix: ./scripts/ci/trailing-newline.sh --fix
  • toml formatting: same file as above. Fix: taplo format

@hubcio hubcio added S-waiting-on-author PR is waiting on author response and removed S-waiting-on-review PR is waiting on a reviewer labels Sep 21, 2026

@hubcio hubcio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left line comments for the cursor handling, the unbounded first poll and the crate metadata. one thing that doesn't sit on a diff line: core/connectors/sources/README.md still lists five sources in the Available Sources table, and mongodb_source is the only source directory without a README of its own. worth adding the row and a plugin README that covers query and max_pool_size.

};
messages.push(message);
}
let mut state = self.state.lock().await;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical: search_documents writes state.last_poll_timestamp inside poll, but on_batch_result keeps the default no-op, so a runtime Nack re-polls past the dropped batch. stage the cursor in poll and commit it on Ack only, as random_source does.

&& let Some(last_timestamp) = state.last_poll_timestamp
{
let mut filter = self.config.query.clone().unwrap_or_default();
filter.insert(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical: the cursor stores the newest timestamp of a batch that limit truncated, so documents sharing that millisecond beyond the cutoff never come back. keep the last _id as a tiebreaker, or use $gte with a skip count.

.await
.map_err(|e| Error::InitError(format!("Failed to move cursor {e}")))?
{
if let Some(timestamp_field) = &self.config.timestamp_field

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical: as_datetime() returns None for a string, an int, or a missing field, so last_poll_timestamp never advances and every poll takes the unbounded branch. check the field type in open, or parse strings and numbers.

.map_err(|e| Error::InitError(format!("Failed to execute search: {e}")))?
} else {
let filter = &self.config.query.clone().unwrap_or_else(|| doc! {});
coll.find(filter.clone())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical: the else branch runs coll.find(filter) with no .limit(), so a first poll on a large collection loads all of it into one batch. apply the same limit and sort on both branches.

Comment thread Cargo.toml
"core/connectors/sources/elasticsearch_source",
"core/connectors/sources/http_source",
"core/connectors/sources/influxdb_source",
"core/connectors/sources/mongodb_source",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical: this adds the workspace member and leaves Cargo.lock stale, so every --locked build fails at this head. commit the regenerated Cargo.lock.

.as_ref()
.ok_or_else(|| Error::Storage("Mongodb client not initialized".to_string()))?;

let messages = match self.search_documents(client).await {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplification: this match passes the error straight through, so the Err arm adds nothing. replace it with let messages = self.search_documents(client).await?;.

}

async fn search_documents(&self, client: &Client) -> Result<Vec<ProducedMessage>, Error> {
let state = self.state.lock().await;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplification: the state guard is held across find only because the second lock at line 180 forces the manual drop. read last_poll_timestamp into a local first, then the drop and its import both go away.

also at lines 19, 145.

doc! { "$gt": mongodb::bson::DateTime::from_millis(last_timestamp.timestamp_millis()) },
);

coll.find(filter.clone())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplification: filter is cloned here and at 140 although find takes it by value, and lines 121-122 build String names that the driver takes as &str. pass the filter by value and borrow the names.

readme = "../../README.md"

[package.metadata.cargo-machete]
ignored = ["dashmap", "once_cell", "simd-json"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplification: dashmap and simd-json are declared but never named, and the machete ignore list hides them along with a stale once_cell entry. delete both dependencies and the ignore block.

}

impl MongodbSourceFixture {
#[allow(dead_code)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplification: database_name() and collection_name() have no callers, and the two #[allow(dead_code)] attributes hide that. delete both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author PR is waiting on author response

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants