You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "davidzollo (via GitHub)" <gi...@apache.org> on 2026/02/28 04:11:17 UTC
[I] [Docs][Core] Add Javadoc to SourceFlowLifeCycle [seatunnel]
davidzollo opened a new issue, #10541:
URL: https://github.com/apache/seatunnel/issues/10541
Sub-issue of #10533
## Scope
`SourceFlowLifeCycle` is the runtime bridge between the Zeta engine and a connector's `SourceReader`. It handles checkpoint barriers, split requests, schema-evolution signals, and the checkpoint lock — all without any method-level Javadoc.
## File
`seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SourceFlowLifeCycle.java`
## Methods to document
| Method | Line | What to explain |
|--------|------|-----------------|
| `init()` | 115 | Creates `SourceReader` from `SourceAction`; initializes split serializer |
| `open()` | 129 | Calls `reader.open()` then registers with the remote enumerator via `register()` |
| `collect()` | 150 | Core read loop: calls `reader.pollNext(collector)`; idle yield via `Thread.yield()` when no records; schema-change phase detection; checkpoint-lock interaction note |
| `triggerBarrier(Barrier)` | 267 | Acquires `checkpointLock` before injecting barrier into the record stream; `prepareClose` flag propagation; schema-change checkpoint type branching |
| `signalNoMoreElement()` | 198 | Sets `prepareClose = true`; sends `ReaderCloseOperation` to enumerator to deregister this reader |
| `register()` | 215 | Resolves enumerator address lazily; sends `RegisterReaderOperation` |
| `requestSplit()` | 230 | Sends `RequestSplitOperation` to the remote enumerator |
| `receivedSplits(List<SplitT>)` | 259 | Deserializes split bytes and forwards to `reader.addSplits` |
| `notifyCheckpointComplete(long)` | 330 | Delegates to `reader.notifyCheckpointComplete`; connector hook for post-commit cleanup |
| `notifyCheckpointAborted(long)` | 335 | Clears schema-change phase state if the aborted checkpoint matches the in-progress DDL checkpoint |
## How to contribute
1. Fork the repo and create a branch
2. Add Javadoc to the methods above
3. Run `./mvnw spotless:apply` and `./mvnw -q -DskipTests verify`
4. Open a PR with title: `[Docs][Core] Add Javadoc to SourceFlowLifeCycle`
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Docs][Core] Add Javadoc to SourceFlowLifeCycle [seatunnel]
Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte closed issue #10541: [Docs][Core] Add Javadoc to SourceFlowLifeCycle
URL: https://github.com/apache/seatunnel/issues/10541
--
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: [I] [Docs][Core] Add Javadoc to SourceFlowLifeCycle [seatunnel]
Posted by "zooo-code (via GitHub)" <gi...@apache.org>.
zooo-code commented on issue #10541:
URL: https://github.com/apache/seatunnel/issues/10541#issuecomment-3979874751
Hi @davidzollo, I would like to work on this issue.
I will add the Javadoc to `SourceFlowLifeCycle` methods following the description.
Please assign it to me.
--
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: [I] [Docs][Core] Add Javadoc to SourceFlowLifeCycle [seatunnel]
Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #10541:
URL: https://github.com/apache/seatunnel/issues/10541#issuecomment-4010824346
Closed by #10552.
--
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: [I] [Docs][Core] Add Javadoc to SourceFlowLifeCycle [seatunnel]
Posted by "DanielCarter-stack (via GitHub)" <gi...@apache.org>.
DanielCarter-stack commented on issue #10541:
URL: https://github.com/apache/seatunnel/issues/10541#issuecomment-3976463845
<!-- code-pr-reviewer -->
Thank you for proposing this documentation improvement.
After reviewing the codebase, I can confirm that `SourceFlowLifeCycle` is missing method-level Javadoc. The target file exists at:
- `seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SourceFlowLifeCycle.java`
All methods listed in the issue match the current implementation (line numbers verified: init@115, open@129, collect@150, signalNoMoreElement@198, register@215, requestSplit@230, receivedSplits@259, triggerBarrier@267, notifyCheckpointComplete@330, notifyCheckpointAborted@335).
For Javadoc style reference, please see:
- `seatunnel-api/src/main/java/org/apache/seatunnel/api/source/SourceReader.java`
This is a good help-wanted task. When contributing, please run `./mvnw spotless:apply` before committing. Pay special attention to documenting the schema-change checkpoint logic in `collect()` and the checkpoint lock mechanism in `triggerBarrier()`.
--
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