> On June 28, 2016, 11:43 a.m., Nate Cole wrote: > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java, > > lines 701-704 > > <https://reviews.apache.org/r/49322/diff/1/?file=1431929#file1431929line701> > > > > Could also use db.getTask(long), but this implementation probably saves > > a potential DB hit on cache miss?
Yes, I wanted to ensure thwe we didn't hit the DB. Since these tasks are already retrieved and I justed needed a simple boolean, it made sense to re-use what's in memory. > On June 28, 2016, 11:43 a.m., Nate Cole wrote: > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java, > > lines 726-727 > > <https://reviews.apache.org/r/49322/diff/1/?file=1431929#file1431929line726> > > > > Will this flood logs? It's hard to get context on RB. It shouldn't - it will only log to INFO on when a task is rescheduled after being timed out. - Jonathan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/49322/#review139807 ----------------------------------------------------------- On June 28, 2016, 11:08 a.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/49322/ > ----------------------------------------------------------- > > (Updated June 28, 2016, 11:08 a.m.) > > > Review request for Ambari, Alejandro Fernandez, Nate Cole, and Robert Levas. > > > Bugs: AMBARI-17464 > https://issues.apache.org/jira/browse/AMBARI-17464 > > > Repository: ambari > > > Description > ------- > > # Deploy HDP 2.4 cluster > # Start EU to 2.5.0.0 and wait for EU to reach till backup Hive DB prompt > # At this point, stop Ambari agent on the "slave only" node (lets call the > host as host1) > # Proceed with rest of the EU > > - The task - {{Stop Datanode}} (under Stop Core Components for Core Services > upgrade group) shows as {{HOLDING_TIMEDOUT}} for host1 > - Hit 'Ignore and Proceed' to continue further > - The task - Restart HDFS/DATANODE shows as {{SKIPPED_FAILED}} and EU > continues to the next steps > > Caused by AMBARI-15671 - basically this is assuming that all tasks within a > stage follow the stage's auto skip setting, which is wrong. > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java > 8c27d3c > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/HostRoleCommand.java > 2b9c10b > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java > 3fbeef9 > > ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java > d2c7de9 > > Diff: https://reviews.apache.org/r/49322/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Jonathan Hurley > >