Rangsh commented on PR #12173: URL: https://github.com/apache/seatunnel/pull/12173#issuecomment-7335874026
@SEZ9 @DanielLeens — confirming on unchanged head `05bf5510ac09`. No new commit, benchmark run, or product-guide change. **Durability boundary.** Whether the single-key sample is acceptable evidence for this PR remains an open decision for a write-capable maintainer. Until that decision, this benchmark is evidence for the workload and one sampled durable key, not proof that every timed put was durable. **Store-failure tracking.** It is already tracked, so I am not opening another item and I am not adding it to #12266. https://github.com/apache/seatunnel/pull/12081 is the separate, still-open change that stops discarding the `FileMapStore.store` / `storeAll` / `delete` / `deleteAll` result: on write-through (`write-delay-seconds=0`), a failed call is thrown to the caller as `IMapStorageException`. That behavior is not in this head. On `05bf5510ac09`, `FileMapStore.store` still ignores the boolean, so a failed write-through append in an earlier iteration can still go unnoticed here. https://github.com/apache/seatunnel/issues/12266 stays limited to widening the durability sample to a full-batch `loadAll` outside measured SingleShot time, with a no-OOM condition. **Benchmark docs.** Noted. Javadoc-only methodology for `runningJobGrowth` / `completedJobHistoryGrowth` stays as intended. No product-guide change. **Earlier points.** These match @DanielLeens's check of this same head. 1. The lock is in https://github.com/apache/seatunnel/blob/05bf5510ac098079916badf0110130c1ada1c99f/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobHistoryService.java#L286-L307: `finishedJobMetricsImap.lock(jobId)` around get, merge, and one TTL `put`, with `unlock` in `finally`. 2. The current contract is the Javadoc in that same range. It describes the lock, the merge into the current IMap value, and one TTL put. It does not include the `computeIfAbsent` history or the "in memory" wording. 3. https://github.com/apache/seatunnel/blob/05bf5510ac098079916badf0110130c1ada1c99f/seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/JobHistoryServiceFinishedMetricsTest.java#L92-L163: - The `never().computeIfAbsent` assertion is gone. This file contains no `computeIfAbsent` assertion. - Null metrics are rejected by `storeFinishedPipelineMetricsRejectsNullMetrics`. The configured TTL is asserted on the `put` for a new job (`WritesOnceForNewJob`), an existing value (`MergesExistingFinishedMetrics`), and distinct tags (`KeepsDistinctTaggedMeasurements`). The durability-boundary decision remains with a write-capable maintainer. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
