Repository navigation
fix: enable MongoDB external tables by default - #27157
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Blocking finding:
- [P1] Preserve programmatic MongoDB opt-out across repeated defaulting (
pkg/config/configuration.go:318).DefaultMongoDBParameters()leavesenableConfigured == false, so an embedded caller that starts fromnewServiceConfig()and setscfg.CN.Frontend.MongoDB.Enable = falsethrough the public adjustment path has that opt-out overwritten totruewhen CN construction callsFrontend.SetDefaultValues()again (pkg/cnservice/server.go:125). I reproduced this on exact headab375b0ed2e16c82450f07a45338d7ca70cc24bewith the real lifecycle sequence: construct embedded config → setEnable=false→CN.SetDefaultValue(); the final assertion that it remains false fails. The TOML test only covers the privateenableConfiguredpath and cannot catch this public API regression. Please backport the one-time/default-initialized state and the programmatic opt-out regression test from the final main implementation (and retain case-insensitive TOML presence handling), so later defaulting is idempotent.
|
新 head 的 Iceberg E2E 已完成并通过:run |
|
@XuPeng-SH 本次维护 lane 已在 exact head
因此本轮无需新增代码改动;请基于当前 head 复审。 |
|
@XuPeng-SH exact head
|
aunjgr
left a comment
There was a problem hiding this comment.
Reviewed exact head dd429fe. One-time MongoDB default initialization makes repeated defaulting idempotent and preserves the public embedded programmatic opt-out. TOML explicit false and case-variant handling are covered, runtime enablement defaults consistently across production constructors, and endpoint access remains fail-closed without allowlists. The independent Iceberg module metadata and tidy gate are consistent. No blocking findings.
|
@XuPeng-SH fresh maintenance verification on exact head |
|
@XuPeng-SH 对旧 review commit
因此无需新增代码或 push;本次仅针对仍挂起的旧 review 提供当前 head 证据。 |
|
@XuPeng-SH 对 review
因此该 finding 不再适用于当前 head,烦请基于此版本重新审阅。 |
|
@XuPeng-SH 针对 review
因此原 finding 仅适用于其引用的旧提交;请基于当前 head 重新审阅。 |
|
@XuPeng-SH Fresh verification on exact head dd429fe: the blocking finding applies to ab375b0, not the current implementation. NewMongoDBParameters establishes Enable=true and enableDefaulted=true, so public Adjust(Enable=false) remains false through getCNServiceConfig, CN.SetDefaultValue, and Frontend.SetDefaultValues. Using the repository controlled CGo test wrapper, the real embedded lifecycle regression and five configuration regressions (default, explicit disable, repeated defaulting, case-insensitive key, conflicting key) all passed with exit 0. The current PR is MERGEABLE with no inline threads and no failed checks. No additional code change is needed; please re-review the current head. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head dd429fe. The previous programmatic opt-out blocker is closed: MongoDB enablement is initialized before TOML/programmatic mutation, repeated defaulting is idempotent, and the real mo-service/embed lifecycle preserves an explicit false. Case-insensitive TOML variants and conflicting keys are covered. Default SQL enablement remains fail-closed at the network endpoint policy. Focused config, service, embed, frontend, MongoDB runtime, planner, and Iceberg module checks pass.
|
@XuPeng-SH fresh maintenance verification on exact head
No further code change is warranted; please re-review the current head. |
Merge Queue Status
This pull request spent 1 hour 7 minutes 58 seconds in the queue, including 1 hour 7 minutes 14 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #27108
What this PR does / why we need it:
fix: enable MongoDB external tables by default