You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "albgen (via GitHub)" <gi...@apache.org> on 2026/09/15 13:01:02 UTC
[PR] [Improve][Docs] Disable MapStore for engine_finishedJobMetrics in IMap persistence examples [seatunnel]
albgen opened a new pull request, #12328:
URL: https://github.com/apache/seatunnel/pull/12328
### Purpose of this pull request
Close #12022.
`config/hazelcast.yaml` ships without a `map` section, so the documented `engine*` MapStore examples are the effective default. This PR adds an `engine_finishedJobMetrics` override with `map-store.enabled: false` to each of them (Zeta hybrid/separated deployment, Kubernetes configuration and separated-cluster pages, EN and ZH), plus a short note. `engine_runningJobMetrics` is already excluded in code by #11244.
### Does this PR introduce _any_ user-facing change?
Docs only. With the updated examples, metrics of jobs that finished before a full cluster restart are no longer kept; removing the entry restores the previous behaviour.
### How was this patch tested?
All changed YAML blocks parse (PyYAML). The override mechanism was verified on a 2.3.13 single-node deployment with the equivalent pattern `engine_*JobMetrics`: with the override the metrics maps are not written to the IMap store, without it both are.
### Check list
* [ ] If any new Jar binary package adding in your PR, please add License Notice according
[New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
* [x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
* [ ] If necessary, please update `incompatible-changes.md` to describe the incompatibility caused by this PR.
* [ ] If you are contributing the connector code, please check that the following files are updated:
1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Docs] Disable MapStore for engine_finishedJobMetrics in IMap persistence examples [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #12328:
URL: https://github.com/apache/seatunnel/pull/12328#issuecomment-5691316318
@albgen Would it be better to set the default value of enabled for map-store to true?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Docs] Disable MapStore for engine_finishedJobMetrics in IMap persistence examples [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12328:
URL: https://github.com/apache/seatunnel/pull/12328#issuecomment-5701071888
@davidzollo Good question, and worth being precise here since the two readings of "default" point in opposite directions.
With the documented example (`map: engine*: map-store: enabled: true`), `engine_finishedJobMetrics` already inherits `enabled: true` from the `engine*` wildcard match, since there was previously no exact-match entry for it. That inherited `true` is exactly what causes the unbounded MapStore/WAL growth described in #12022 — flipping the *default* to `true` wouldn't change anything, because it is already effectively `true` via wildcard inheritance today. What's missing is the opt-out, which is what this PR adds.
If instead you meant "should we harden this at the code level instead of relying on every doc example getting the override right" — I'd agree that's more robust, and I flagged exactly that as a non-blocking follow-up suggestion in my review: giving `engine_finishedJobMetrics` the same hardcoded `NoOpMapStorage` guard that `FileMapStore.init()` already applies to `engine_runningJobMetrics` (`seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/persistence/FileMapStore.java:46-53`), so correctness wouldn't depend on users copying the right YAML at all.
I'd keep that as a separate follow-up PR rather than folding it into this one, though: it's a behavior/data-retention change to production code (finished-job metrics would stop persisting even for users who never touch their `hazelcast.yaml`), so it deserves its own scoped review and tests. This PR is correctly scoped to just fix the documented example so it matches the guard `engine_runningJobMetrics` already has in code. Happy to review that follow-up if either of you wants to open it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Docs] Disable MapStore for engine_finishedJobMetrics in IMap persistence examples [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12328:
URL: https://github.com/apache/seatunnel/pull/12328#issuecomment-5770873698
@davidzollo Thanks for the follow-up review. To make sure this doesn't stay stuck on a misunderstanding: my 2026-09-16 comment wasn't disagreeing with you in principle, just pointing out that "default" has two different meanings here, and they lead to different fixes.
- If "default" means *the documented example's `map: engine*: map-store: enabled: true`* — that's already effectively `true` for `engine_finishedJobMetrics` today via wildcard inheritance, since there's no exact-match override. Setting it to `true` explicitly would be a no-op; it doesn't change today's behavior at all, and doesn't touch the unbounded-growth problem in #12022. What actually fixes that is the opt-out this PR adds (`engine_finishedJobMetrics: map-store: enabled: false`).
- If instead you meant "the product's *actual* code-level default should be `false` for this map regardless of what a user's `hazelcast.yaml` says" — I agree that's the more robust fix, and it's exactly the follow-up I flagged in my original review: give `engine_finishedJobMetrics` the same hardcoded `NoOpMapStorage` guard in `FileMapStore.init()` that `engine_runningJobMetrics` already has (`seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/persistence/FileMapStore.java:46-53`). That's a behavior/data-retention change to production code, not a docs change, so I'd still keep it out of this PR and do it as its own scoped PR with its own tests.
So: if your CHANGES_REQUESTED is about the second reading, I don't think it should block this docs fix — it's a separate, larger change that deserves its own review. If it's about the first reading, I don't think there's anything left to change, since the value is already `true` by inheritance today and this PR is what actually closes the gap.
@albgen, no action needed on your side unless @davidzollo has a different, more specific ask than what's outlined above — happy to help scope the code-level follow-up if either of you wants to open it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Docs] Disable MapStore for engine_finishedJobMetrics in IMap persistence examples [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12328:
URL: https://github.com/apache/seatunnel/pull/12328#issuecomment-6473852291
Thanks for the contribution. The CI fact cited in my previous conclusion has changed; this follow-up updates that gate on the unchanged reviewed head, without issuing another full source review.
Gate snapshot (2026-10-28T15:56:07+00:00), head `2c565fac9fbd1d7a889bca1d13b52d22e7b43595`: [Build](https://github.com/apache/seatunnel/runs/121486621015) is `TIMED_OUT`.
The blocking jobs are [Run / Dead links](https://github.com/albgen/seatunnel/actions/runs/40192601656/job/121166612962) `failure`; [Run / Build website](https://github.com/albgen/seatunnel/actions/runs/40192601656/job/121167188417) `cancelled`.
The Dead links log identifies two HTTP 429 responses: the DeepWiki project URL and its remote badge URL in README. Build website was cancelled, so it is not evidence of a separate executed website compiler failure. Latest dev uses a local DeepWiki badge but still links the external project page; a sync alone is not a cure for that external rate limit. Please rerun only Dead links after the rate limit clears, keeping unrelated documentation/dependency changes out of this PR. The independent reviewer decision remains separate.
My [previous source conclusion](https://github.com/apache/seatunnel/pull/12328#pullrequestreview-5643701675) remains clear for the reviewed scope. CI is not being passed by inference, and this follow-up is not an effective approval.
Comparison recorded in this scan: base `dev`, `diverged`, ahead 2 / behind 348, no merge conflict. Branch drift is metadata here and is not an additional sync request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org