You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Andras Bokor (JIRA)" <ji...@apache.org> on 2016/05/03 14:34:12 UTC
[jira] [Created] (YARN-5034) Failing tests after using
try-with-resources
Andras Bokor created YARN-5034:
----------------------------------
Summary: Failing tests after using try-with-resources
Key: YARN-5034
URL: https://issues.apache.org/jira/browse/YARN-5034
Project: Hadoop YARN
Issue Type: Improvement
Components: test
Affects Versions: 2.7.0
Reporter: Andras Bokor
Assignee: Andras Bokor
Priority: Trivial
Fix For: 2.7.0
In tests MiniYARNCluster is used with the following pattern:
In try-catch block create a MiniYARNCluster instance and in finally block close it.
[Try-with-resources|https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html] is preferred since Java7 instead of the pattern above.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org