Example #1
0
 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);
 }