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:09:50 UTC
[I] [Docs][Core] Add Javadoc to SupportResourceShare and MultiTableResourceManager [seatunnel]
davidzollo opened a new issue, #10535:
URL: https://github.com/apache/seatunnel/issues/10535
Sub-issue of #10533
## Scope
Two small SPI interfaces (~60 lines combined) that are the extension points for sharing connections across multi-table sink writers. Without Javadoc, connector authors do not know when or whether to override them.
## Files
- `seatunnel-api/src/main/java/org/apache/seatunnel/api/sink/SupportResourceShare.java`
- `seatunnel-api/src/main/java/org/apache/seatunnel/api/sink/MultiTableResourceManager.java`
## Methods to document
| Method | File | Line | What to explain |
|--------|------|------|-----------------|
| `initMultiTableResourceManager(int tableSize, int queueSize)` | `SupportResourceShare` | 22 | When to override; what `tableSize` (number of target tables) and `queueSize` (parallel write queues) mean; called once per job by `MultiTableSinkWriter` constructor |
| `setMultiTableResourceManager(MultiTableResourceManager<T>, int queueIndex)` | `SupportResourceShare` | 27 | Called after `initMultiTableResourceManager`; `queueIndex` identifies which write queue this writer belongs to; use it to retrieve the shared resource |
| `getSharedResource()` | `MultiTableResourceManager` | 25 | Thread-safety contract; when `Optional.empty()` is acceptable vs when to return a real shared object (e.g., connection pool) |
| `close()` | `MultiTableResourceManager` | 29 | Called by `MultiTableSinkWriter.close()` after all per-table writers are closed; implementation should release pooled connections |
## How to contribute
1. Fork the repo and create a branch
2. Add Javadoc to the four methods above
3. Run `./mvnw spotless:apply` and `./mvnw -q -DskipTests verify`
4. Open a PR with title: `[Docs][Core] Add Javadoc to SupportResourceShare and MultiTableResourceManager`
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10535:
URL: https://github.com/apache/seatunnel/issues/10535#issuecomment-4245032815
I rechecked the issue after the latest update. PR #10707 was merged into `dev` on April 9, 2026, and it adds the missing Javadocs on `SupportResourceShare` and `MultiTableResourceManager`, which were the core documentation gaps described here.
So from the issue side this is now resolved on `dev`. Thanks again to the contributor for carrying it through.
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "zooo-code (via GitHub)" <gi...@apache.org>.
zooo-code commented on issue #10535:
URL: https://github.com/apache/seatunnel/issues/10535#issuecomment-4182869762
@davidzollo I've gone ahead and opened a PR for this: #10707
Hope that's okay!
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "DanielCarter-stack (via GitHub)" <gi...@apache.org>.
DanielCarter-stack commented on issue #10535:
URL: https://github.com/apache/seatunnel/issues/10535#issuecomment-3976457818
<!-- code-pr-reviewer -->
Thanks for creating this documentation issue! I've verified that:
1. The 4 methods in both interfaces indeed lack Javadoc:
- `SupportResourceShare.initMultiTableResourceManager(int, int)` (line 22)
- `SupportResourceShare.setMultiTableResourceManager(MultiTableResourceManager<T>, int)` (line 27)
- `MultiTableResourceManager.getSharedResource()` (line 25)
- `MultiTableResourceManager.close()` (line 29)
2. Your description of the calling sequence matches the actual implementation in `MultiTableSinkWriter`:
- Initialization: lines 117-132 (constructors call `initResourceManager`)
- Cleanup: lines 350-352 (`close()` calls `resourceManager.close()`)
3. Parameter semantics are accurate:
- `tableSize` = number of target tables
- `queueSize` = parallel write queue count (thread pool size = `queueSize * 2`)
- `queueIndex` = current writer's queue index (used for modulo-based table assignment)
This is a valuable improvement for connector authors. Existing implementations like `HudiMultiTableResourceManager` and `JdbcMultiTableResourceManager` can serve as references when writing the Javadoc.
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10535:
URL: https://github.com/apache/seatunnel/issues/10535#issuecomment-4199326250
Thanks for taking this forward.
I checked the related API path again, and this issue is still well-scoped as a documentation/Javadoc improvement. The missing Javadocs are indeed on the key resource-sharing interfaces, and the current `MultiTableSinkWriter` flow already gives us a clear contract to document: initialize the shared manager once, bind it to each writer with the queue index, and close it when the writer shuts down.
Since @zooo-code has already opened PR #10707, I think the next discussion can move to the PR review itself.
So from the issue side, this looks in good shape now:
- scope is clear
- code path is confirmed
- implementation PR is already open
Thanks again for contributing this. After the PR is reviewed and merged, we can close this issue accordingly.
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "zooo-code (via GitHub)" <gi...@apache.org>.
zooo-code commented on issue #10535:
URL: https://github.com/apache/seatunnel/issues/10535#issuecomment-4134202975
Hi @davidzollo !
If no one is currently working on this, I would like to take this issue.
Can I try this issue?
--
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 SupportResourceShare and MultiTableResourceManager [seatunnel]
Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w closed issue #10535: [Docs][Core] Add Javadoc to SupportResourceShare and MultiTableResourceManager
URL: https://github.com/apache/seatunnel/issues/10535
--
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