DanielLeens commented on PR #13514:
URL: https://github.com/apache/seatunnel/pull/13514#issuecomment-7230496205
# Implementation Notes and Trade-offs
Applicable PR head: 56e6ceb4e77d74f1b280915f98f531f3c3d4673c.
The missing path is `source { Slack { ... } }`: source factory discovery
resolves the Slack identity to the existing Slack artifact, which reads bounded
conversation history for explicit channel IDs. The existing sink path is
retained. The reader emits the fixed eight-column schema; timestamps remain
strings and optional message fields remain nullable.
The chosen boundary keeps source configuration, HTTP state and lifecycle in
`connector-slack`, using existing HTTP/JSON dependencies. A second Slack
artifact was rejected because the existing artifact already owns the same
product identity/dependencies and is already distributed/installed. Generic
HTTP configuration alone was rejected because it does not provide this
dedicated opaque-cursor, bounded-retry, frozen-window and checkpoint-progress
contract. No shared engine/common/API changes are needed.
The reader owns at most one in-flight page in an HTTP worker and yields from
polling while network/backoff is pending. This lets the existing engine task
observe normal close after a stop-with-savepoint checkpoint. The worker never
emits or advances checkpoint state. The polling thread commits
rows/cursor/channel/window under collector-lock then state-lock, and completion
callbacks are outside those locks. Close/cancel abort requests and release
worker/deadline/client resources. Sanitized failures cross the worker boundary
without raw parser/transport/response details.
Assumptions and limits: this is bounded `conversations.history`, not all
Slack API data streams, channel discovery, Events streaming or thread-reply
traversal. Scopes, membership, retention and cursor expiry limit visibility.
The frozen upper timestamp is not a transactional Slack snapshot. Pages after a
restored checkpoint may replay; downstream idempotence is required. One reader
is supported. Fixture-based API-contract E2E is not live Slack certification.
The only POM change adds the existing Slack reactor artifact in test scope
to the existing HTTP E2E module. It associates source changes with CI test
selection and makes the connector available to the test build/container.
Existing Slack transitive dependencies enter that test classpath; no new
production artifact or third-party version is declared. CI must retain all
existing HTTP suite coverage and existing Slack sink regressions.
Scoped Spotless formatting and static diff/AST/XML/YAML/hash checks passed.
Independent scoped spec and quality review passed after the lifecycle
correction; all three initial findings were addressed and no new findings were
identified. These are static results only. GitHub CI run/job outcomes must be
read at the applicable PR head. No local compilation, unit tests, E2E, Docker,
fixtures, services or jobs were executed. Until exact-head GitHub CI completes,
runtime acceptance and merge readiness remain pending. Required tests include
exact output, short/empty/multi-channel paging, repeated/cyclic cursors,
bounded errors/retries/Retry-After, response/page limits, stalled/slow
deadlines, poll responsiveness, normal/external cancellation and
savepoint/restore before releasing the held HTTP response.
--
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]