private void CheckExpected(Org.Apache.Hadoop.Mapreduce.Counters counters) { NUnit.Framework.Assert.AreEqual(FrameworkCounterValue, counters.FindCounter(FrameworkCounter ).GetValue()); NUnit.Framework.Assert.AreEqual(FsCounterValue, counters.FindCounter(FsScheme, FsCounter ).GetValue()); }
private void TestMaxGroups(Org.Apache.Hadoop.Mapreduce.Counters counters) { Log.Info("counter groups max=" + Limits.GetGroupsMax()); for (int i = 0; i < Limits.GetGroupsMax(); ++i) { // assuming COUNTERS_MAX > GROUPS_MAX counters.FindCounter("test" + i, "test"); } SetExpected(counters); ShouldThrow(typeof(LimitExceededException), new _Runnable_124(counters)); CheckExpected(counters); }
private void SetExpected(Org.Apache.Hadoop.Mapreduce.Counters counters) { counters.FindCounter(FrameworkCounter).SetValue(FrameworkCounterValue); counters.FindCounter(FsScheme, FsCounter).SetValue(FsCounterValue); }
public _Runnable_124(Org.Apache.Hadoop.Mapreduce.Counters counters) { this.counters = counters; }