[jira] [Created] (FLINK-7311) refrain from using fail(Exception#getMessage()) in core memory tests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-7311) refrain from using fail(Exception#getMessage()) in core memory tests

Shang Yuanchun (Jira)
Nico Kruber created FLINK-7311:
----------------------------------

             Summary: refrain from using fail(Exception#getMessage()) in core memory tests
                 Key: FLINK-7311
                 URL: https://issues.apache.org/jira/browse/FLINK-7311
             Project: Flink
          Issue Type: Improvement
          Components: Core, Tests
    Affects Versions: 1.4.0
            Reporter: Nico Kruber
            Assignee: Nico Kruber
            Priority: Minor


Most unit tests in the {{flink/core/memory/}} domain still relies on a code pattern like this:
{code}
try {
        // ...
} catch (Exception e) {
        e.printStackTrace();
        fail(e.getMessage());
}
{code}

This does hides the exception details and should be removed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)