Skip to content

Improve JdbcExecutor traversal by safely handling missing or multiple consumers - #785

Open
mohit-devlogs wants to merge 1 commit into
apache:mainfrom
mohit-devlogs:jdbc-executor-improvement-v2
Open

Improve JdbcExecutor traversal by safely handling missing or multiple consumers#785
mohit-devlogs wants to merge 1 commit into
apache:mainfrom
mohit-devlogs:jdbc-executor-improvement-v2

Conversation

@mohit-devlogs

Copy link
Copy Markdown
Contributor

This PR makes the JdbcExecutor more robust by ensuring that it handles situations where there are either zero consumers or multiple consumers of the execution task gracefully.

Change:

Returns null if the output channel has zero consumers rather than assuming that there is exactly one consumer.
Throws a helpful WayangException if there are multiple consumers of the execution task rather than making any unchecked assumptions.
Keeps the existing behavior intact for the typical case of having exactly one consumer.

This PR replaces my earlier PR for the same change. The branch has been recreated from the latest main after upstream refactoring made rebasing the previous branch impractical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant