SEZ9 commented on PR #11077: URL: https://github.com/apache/seatunnel/pull/11077#issuecomment-7071012047
Quick follow-up on the earlier review points. The latest note on this thread is a CI follow-up about the Build check, not a new source review, and it reports head `434247e5e67f2d0a35ab9dec0653f2e28bbe27a2` as unchanged. I'm therefore treating the earlier points as still open; if you believe any are already addressed, please point me to where. High severity: - **Destination-key collisions:** a collision can silently route one table's data through another sink's writer. Please make the key unambiguous across sinks, or fail fast on a collision. - **Duplicated state on recovery:** shared-writer state is snapshotted under every aliased identifier and then unioned on restore, so the writer state is duplicated N times. Please snapshot once per shared writer or de-duplicate on restore. A restore test covering this would help. Medium severity: - **Schema/config divergence:** the shared writer is created from an arbitrary alias's sink instance and `CatalogTable` but receives rows from all aliased tables. Please validate that the aliases are compatible, or reject the job when they are not. - **`proxyContexts`:** only the first alias per destination is registered, and the `containsValue` check adds O(n²) startup cost. Please register every aliased identifier and avoid the linear lookup. - **Exception contract:** an `IOException` from `createWriter`/`restoreWriter` is wrapped in an unchecked `RuntimeException` inside `computeIfAbsent`. Please surface it as the declared `IOException`. - **Docs:** please document `getPhysicalDestinationIdentifier()` and the multi-table writer-sharing behavior in the docs. The changed `restoreWriter` contract also needs documenting for connector implementers: one `SeaTunnelSink#restoreWriter` call now receives the merged state from all aliased identifiers. Low severity: - **Javadoc:** `getDestinationKey` is missing its param and return tags. A short reply per point saying what changed, or why no change is needed, would make the next pass quick. Thanks for the work on this! <!-- streview-comment:2517 --> -- 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]
