> On Oct. 9, 2017, 10:15 p.m., Jonathan Hurley wrote: > > ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListener.java > > Lines 149 (patched) > > <https://reviews.apache.org/r/62851/diff/1/?file=1849814#file1849814line149> > > > > Should we move this around the switch statement in case anymore case's > > are added in the future which should also be skipped?
I was thinking an if/continue before the switch - there's no other code after that. - Nate ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62851/#review187486 ----------------------------------------------------------- On Oct. 9, 2017, 5:19 p.m., Nate Cole wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62851/ > ----------------------------------------------------------- > > (Updated Oct. 9, 2017, 5:19 p.m.) > > > Review request for Ambari, Dmitro Lisnichenko and Jonathan Hurley. > > > Bugs: AMBARI-22178 > https://issues.apache.org/jira/browse/AMBARI-22178 > > > Repository: ambari > > > Description > ------- > > The HostVersionOutOfSyncListener is incorrectly setting ALL other > host_version records to OUT_OF_SYNC other than what the newly-added component > is for. > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListener.java > 78744613ed > > ambari-server/src/test/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListenerTest.java > 076190a47d > > > Diff: https://reviews.apache.org/r/62851/diff/1/ > > > Testing > ------- > > Manual added host and added new service to verify records. Unit tests > pending. > > > Thanks, > > Nate Cole > >