You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Colm O hEigeartaigh <co...@apache.org> on 2017/05/10 08:55:26 UTC
Re: Review Request 58732: The XmlConfigChanger does not have any error
messages when some exceptions occur.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58732/#review174432
-----------------------------------------------------------
Why not use try with resources here? e.g:
try (FileInputStream in = new FileInputStream(propFile)) {
installProperties.load(in);
} catch (IOException ex) {
..
}
- Colm O hEigeartaigh
On April 26, 2017, 9:34 a.m., Qiang Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58732/
> -----------------------------------------------------------
>
> (Updated April 26, 2017, 9:34 a.m.)
>
>
> Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-1547
> https://issues.apache.org/jira/browse/RANGER-1547
>
>
> Repository: ranger
>
>
> Description
> -------
>
> The XmlConfigChanger does not have any error messages when some exceptions occur.
>
>
> Diffs
> -----
>
> agents-installer/src/main/java/org/apache/ranger/utils/install/XmlConfigChanger.java ba949bd
>
>
> Diff: https://reviews.apache.org/r/58732/diff/1/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qiang Zhang
>
>
Re: Review Request 58732: The XmlConfigChanger does not have any error
messages when some exceptions occur.
Posted by Qiang Zhang <zh...@zte.com.cn>.
> On May 10, 2017, 8:55 a.m., Colm O hEigeartaigh wrote:
> > Why not use try with resources here? e.g:
> >
> > try (FileInputStream in = new FileInputStream(propFile)) {
> > installProperties.load(in);
> > } catch (IOException ex) {
> > ..
> > }
Ok. You are right. This segment code should be refactored. I had rebuilt and updated the patch. Thanks.
- Qiang
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58732/#review174432
-----------------------------------------------------------
On May 10, 2017, 1:22 p.m., Qiang Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58732/
> -----------------------------------------------------------
>
> (Updated May 10, 2017, 1:22 p.m.)
>
>
> Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-1547
> https://issues.apache.org/jira/browse/RANGER-1547
>
>
> Repository: ranger
>
>
> Description
> -------
>
> The XmlConfigChanger does not have any error messages when some exceptions occur.
>
>
> Diffs
> -----
>
> agents-installer/src/main/java/org/apache/ranger/utils/install/XmlConfigChanger.java ba949bd
>
>
> Diff: https://reviews.apache.org/r/58732/diff/2/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qiang Zhang
>
>