Status
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Motivation
According to the current code, the MAX_NUMBER_EXCEPTION_TO_REPORT is default 20 and not configurable. The problem is that the exception which is useful to users usually appears in the first exception, but if there are a lot of exceptions happened, users can only get the latest 20 exception messages, the first exception is gone.
Proposed Changes
Making the MAX_NUMBER_EXCEPTION_TO_REPORT configurable in REST API can solve this problem.
Frontend Design
Add a load more button in the exception history page, when there the exception count is more than 20(the truncated is true), clicking the load more button the frontend will add 20 to the MAX_NUMBER_EXCEPTION_TO_REPORT request params.
REST API Design
Add max exceptions query parameter. FLINK-11405
Test Plan
We need to update existing and add UI tests to make sure the new REST API works as expected.