You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Nate Cole <nc...@hortonworks.com> on 2016/04/13 20:53:32 UTC

Review Request 46159: VDF with newlines preventing valid repo files

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46159/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez and Jonathan Hurley.


Bugs: AMBARI-15867
    https://issues.apache.org/jira/browse/AMBARI-15867


Repository: ambari


Description
-------

When using a non-formatted VDF file with newlines in XML values, the newlines are being preserved.  This prevents repo files from being generated correctly.

(Also noticed a test failure that was easy to fix and a visual issue whereby non-manifest services like kerberos and AMS versions should be pulled from the stack)


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/repository/Release.java f855b05 
  ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java 4488f58 
  ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/TrimmingAdapter.java PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/package-info.java PRE-CREATION 
  ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java 186ebe7 
  ambari-server/src/test/java/org/apache/ambari/server/state/repository/VersionDefinitionTest.java d262df3 

Diff: https://reviews.apache.org/r/46159/diff/


Testing
-------

Manual.  Automated pending.


Thanks,

Nate Cole


Re: Review Request 46159: VDF with newlines preventing valid repo files

Posted by Nate Cole <nc...@hortonworks.com>.

> On April 13, 2016, 3:14 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java, line 161
> > <https://reviews.apache.org/r/46159/diff/1/?file=1342882#file1342882line161>
> >
> >     Is the version required in the XSD? Want to make sure this can't NPE out

Interesting - that's off the stack that doesn't use XSD, which means it could be null.  I'll add the check.


> On April 13, 2016, 3:14 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java, lines 18-19
> > <https://reviews.apache.org/r/46159/diff/1/?file=1342883#file1342883line18>
> >
> >     I'm LMAO at this. Can't believe the annotation doesn't support classes.

I was pulling my hair out.


- Nate


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46159/#review128734
-----------------------------------------------------------


On April 13, 2016, 2:53 p.m., Nate Cole wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46159/
> -----------------------------------------------------------
> 
> (Updated April 13, 2016, 2:53 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15867
>     https://issues.apache.org/jira/browse/AMBARI-15867
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> When using a non-formatted VDF file with newlines in XML values, the newlines are being preserved.  This prevents repo files from being generated correctly.
> 
> (Also noticed a test failure that was easy to fix and a visual issue whereby non-manifest services like kerberos and AMS versions should be pulled from the stack)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/Release.java f855b05 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java 4488f58 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/TrimmingAdapter.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/package-info.java PRE-CREATION 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java 186ebe7 
>   ambari-server/src/test/java/org/apache/ambari/server/state/repository/VersionDefinitionTest.java d262df3 
> 
> Diff: https://reviews.apache.org/r/46159/diff/
> 
> 
> Testing
> -------
> 
> Manual.  Automated pending.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>


Re: Review Request 46159: VDF with newlines preventing valid repo files

Posted by Jonathan Hurley <jh...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46159/#review128734
-----------------------------------------------------------


Ship it!





ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java (line 161)
<https://reviews.apache.org/r/46159/#comment192199>

    Is the version required in the XSD? Want to make sure this can't NPE out



ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java (lines 18 - 19)
<https://reviews.apache.org/r/46159/#comment192200>

    I'm LMAO at this. Can't believe the annotation doesn't support classes.


- Jonathan Hurley


On April 13, 2016, 2:53 p.m., Nate Cole wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46159/
> -----------------------------------------------------------
> 
> (Updated April 13, 2016, 2:53 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15867
>     https://issues.apache.org/jira/browse/AMBARI-15867
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> When using a non-formatted VDF file with newlines in XML values, the newlines are being preserved.  This prevents repo files from being generated correctly.
> 
> (Also noticed a test failure that was easy to fix and a visual issue whereby non-manifest services like kerberos and AMS versions should be pulled from the stack)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/Release.java f855b05 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java 4488f58 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/TrimmingAdapter.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/package-info.java PRE-CREATION 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java 186ebe7 
>   ambari-server/src/test/java/org/apache/ambari/server/state/repository/VersionDefinitionTest.java d262df3 
> 
> Diff: https://reviews.apache.org/r/46159/diff/
> 
> 
> Testing
> -------
> 
> Manual.  Automated pending.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>


Re: Review Request 46159: VDF with newlines preventing valid repo files

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46159/#review128736
-----------------------------------------------------------


Ship it!




Ship It!

- Alejandro Fernandez


On April 13, 2016, 6:53 p.m., Nate Cole wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46159/
> -----------------------------------------------------------
> 
> (Updated April 13, 2016, 6:53 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15867
>     https://issues.apache.org/jira/browse/AMBARI-15867
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> When using a non-formatted VDF file with newlines in XML values, the newlines are being preserved.  This prevents repo files from being generated correctly.
> 
> (Also noticed a test failure that was easy to fix and a visual issue whereby non-manifest services like kerberos and AMS versions should be pulled from the stack)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/Release.java f855b05 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java 4488f58 
>   ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/TrimmingAdapter.java PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/package-info.java PRE-CREATION 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java 186ebe7 
>   ambari-server/src/test/java/org/apache/ambari/server/state/repository/VersionDefinitionTest.java d262df3 
> 
> Diff: https://reviews.apache.org/r/46159/diff/
> 
> 
> Testing
> -------
> 
> Manual.  Automated pending.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>


Re: Review Request 46159: VDF with newlines preventing valid repo files

Posted by Nate Cole <nc...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46159/
-----------------------------------------------------------

(Updated April 13, 2016, 3:45 p.m.)


Review request for Ambari, Alejandro Fernandez and Jonathan Hurley.


Bugs: AMBARI-15867
    https://issues.apache.org/jira/browse/AMBARI-15867


Repository: ambari


Description
-------

When using a non-formatted VDF file with newlines in XML values, the newlines are being preserved.  This prevents repo files from being generated correctly.

(Also noticed a test failure that was easy to fix and a visual issue whereby non-manifest services like kerberos and AMS versions should be pulled from the stack)


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/repository/Release.java f855b05 
  ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java 4488f58 
  ambari-server/src/main/java/org/apache/ambari/server/state/repository/package-info.java PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/TrimmingAdapter.java PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/package-info.java PRE-CREATION 
  ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java 186ebe7 
  ambari-server/src/test/java/org/apache/ambari/server/state/repository/VersionDefinitionTest.java d262df3 

Diff: https://reviews.apache.org/r/46159/diff/


Testing (updated)
-------

Manual.  Automated:

Tests run: 4209, Failures: 0, Errors: 0, Skipped: 32

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37:59.760s
[INFO] Finished at: Wed Apr 13 15:27:04 EDT 2016
[INFO] Final Memory: 39M/749M
[INFO] ------------------------------------------------------------------------


Thanks,

Nate Cole