Skip to content

Improve diagnostic messages in JdbcExecutor when resolving execution tasks#714

Open
mohit-devlogs wants to merge 2 commits intoapache:mainfrom
mohit-devlogs:improve-jdbc-executor-diagnostics
Open

Improve diagnostic messages in JdbcExecutor when resolving execution tasks#714
mohit-devlogs wants to merge 2 commits intoapache:mainfrom
mohit-devlogs:improve-jdbc-executor-diagnostics

Conversation

@mohit-devlogs
Copy link
Contributor

The current implementation of the method findJdbcExecutionOperatorTaskInStage relies on the use of assertions and WayangCollections.getSingle for the acquisition of the consumer of the output channel.

When the assumptions are not met, the error messages given, such as "[] is not a singleton", are not very clear and do not assist very much for debugging purposes.

In the current code, the assumptions have been replaced with validations and WayangException.

@zkaoudi
Copy link
Contributor

zkaoudi commented Mar 7, 2026

Hi @mohit-devlogs we will take a look at your PR but until then I am wondering why you have removed the comments the code had.

@mohit-devlogs
Copy link
Contributor Author

Hi @mohit-devlogs we will take a look at your PR but until then I am wondering why you have removed the comments the code had.

Thank you for pointing this out. As for the comments, these were not supposed to be removed. When I modified the code to enhance the diagnostic information, it appears that I inadvertently modified the code block, resulting in the removal of the comments.

I will restore the original comments and update the PR so that it only contains the intended diagnostic improvements.

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.

2 participants