prashantwason opened a new pull request, #18091:
URL: https://github.com/apache/hudi/pull/18091

   ### Describe the issue this Pull Request addresses
   
   Closes [HUDI-6856](https://issues.apache.org/jira/browse/HUDI-6856)
   
   When write errors occur in the Flink StreamWriteOperatorCoordinator, the 
error logs only include the exception message but not the full stacktrace. This 
makes debugging write failures difficult as the root cause information is lost.
   
   ### Summary and Changelog
   
   Fix error logging in `StreamWriteOperatorCoordinator` to include exception 
stacktraces by passing the `Throwable` as the last parameter to the log call.
   
   **Changes:**
   - For global errors: Pass the exception as the last parameter (without a 
`{}` placeholder) so SLF4J prints the full stacktrace
   - For record-level errors: Pass the full `Throwable` (`entry.getValue()`) 
instead of just the message (`entry.getValue().getMessage()`)
   
   ### Impact
   
   No public API or user-facing feature change. This only improves error 
logging to include exception stacktraces for better debugging.
   
   ### Risk Level
   
   none
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable


-- 
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]

Reply via email to