You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/08/02 12:49:00 UTC

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

     [ https://issues.apache.org/jira/browse/FLINK-7311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-7311.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

1.4: e83217bd3205768cc6dbdeead3f7334ce409f6a2

> 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
>             Fix For: 1.4.0
>
>
> 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)