Affects Version/s: None
Fix Version/s: None
Component/s: Runtime / Task
When a Flink Job is running and encounters an unexpected exception, either through processing an expected message, or a message that may be well formed, but the state of the job renders a exception. It can be difficult to diagnose the cause of the issue. For example I would get a NPE in one of the Operators:
2018-11-13 10:10:26,332 INFO org.apache.flink.runtime.executiongraph.ExecutionGraph - Co-Process-Broadcast-Keyed -> Map -> Map -> Sin
k: Unnamed (1/1) (9a8f3b970570742b7b174a01a9bb1405) switched from RUNNING to FAILED.
An improvement to this would be to allow the printing of the incoming message so the developer can diagnose if that message was correct. Printing of the state of the job would be nice as well just in case the state of the job was incorrect leading to the exception