Bläddra i källkod

HPCC-12315 Suppress ignore list warnings in Thor

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 9 år sedan
förälder
incheckning
45ae80e7dc
1 ändrade filer med 11 tillägg och 3 borttagningar
  1. 11 3
      thorlcr/graph/thgraphmaster.cpp

+ 11 - 3
thorlcr/graph/thgraphmaster.cpp

@@ -492,7 +492,7 @@ bool CMasterActivity::fireException(IException *_e)
         case TE_LargeAggregateTable:
         {
             if (!notedWarnings->testSet(e->errorCode()))
-                reportExceptionToWorkunit(container.queryJob().queryWorkUnit(), e);
+                CActivityBase::fireException(e);
             return true;
         }
     }
@@ -1894,9 +1894,13 @@ bool CJobMaster::fireException(IException *e)
     switch (action)
     {
         case tea_warning:
+        {
             LOG(MCwarning, thorJob, e);
-            reportExceptionToWorkunit(*workunit, e);
+            ErrorSeverity mappedSeverity = workunit->getWarningSeverity(e->errorCode(), SeverityWarning);
+            if (mappedSeverity != SeverityIgnore)
+                reportExceptionToWorkunit(*workunit, e);
             break;
+        }
         default:
         {
             LOG(MCerror, thorJob, e);
@@ -2139,9 +2143,13 @@ bool CMasterGraph::fireException(IException *e)
     switch (action)
     {
         case tea_warning:
+        {
             LOG(MCwarning, thorJob, e);
-            reportExceptionToWorkunit(job.queryWorkUnit(), e);
+            ErrorSeverity mappedSeverity = job.queryWorkUnit().getWarningSeverity(e->errorCode(), SeverityWarning);
+            if (mappedSeverity != SeverityIgnore)
+                reportExceptionToWorkunit(job.queryWorkUnit(), e);
             break;
+        }
         case tea_abort:
         {
             EXCLOG(e, NULL);