YARN-7627. [ATSv2] When passing a non-number as metricslimit, the error message is wrong. Contributed by Charan Hebri.
This commit is contained in:
parent
912d9f790d
commit
1e5e08d83b
@ -350,7 +350,8 @@ public Set<TimelineEntity> getEntities(
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime,
|
||||
"createdTime start/end or limit or flowrunid");
|
||||
"Either limit or createdtime start/end or metricslimit or metricstime"
|
||||
+ " start/end or fromid");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -631,7 +632,8 @@ public Set<TimelineEntity> getEntities(
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime,
|
||||
"createdTime start/end or limit or flowrunid");
|
||||
"Either flowrunid or limit or createdtime start/end or metricslimit"
|
||||
+ " or metricstime start/end or fromid");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -725,7 +727,8 @@ public TimelineEntity getEntity(
|
||||
checkAccessForGenericEntity(entity, callerUGI);
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime, "flowrunid");
|
||||
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||
+ " start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -919,7 +922,8 @@ public TimelineEntity getEntity(
|
||||
checkAccessForGenericEntity(entity, callerUGI);
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime, "flowrunid");
|
||||
handleException(e, url, startTime, "Either flowrunid or metricslimit or"
|
||||
+ " metricstime start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -1606,7 +1610,8 @@ public TimelineEntity getApp(
|
||||
checkAccessForAppEntity(entity, callerUGI);
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime, "flowrunid");
|
||||
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||
+ " start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -1781,7 +1786,8 @@ public TimelineEntity getApp(
|
||||
checkAccessForAppEntity(entity, callerUGI);
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime, "flowrunid");
|
||||
handleException(e, url, startTime, "Either flowrunid or metricslimit or"
|
||||
+ " metricstime start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -1927,7 +1933,8 @@ public Set<TimelineEntity> getFlowRunApps(
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime,
|
||||
"createdTime start/end or limit or flowrunid");
|
||||
"Either limit or createdtime start/end or metricslimit or"
|
||||
+ " metricstime start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -3418,7 +3425,8 @@ public Set<TimelineEntity> getSubAppEntities(
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime,
|
||||
"createdTime start/end or limit");
|
||||
"Either limit or createdtime start/end or metricslimit or metricstime"
|
||||
+ " start/end or fromid");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
@ -3489,7 +3497,8 @@ public Set<TimelineEntity> getSubAppEntities(@Context HttpServletRequest req,
|
||||
checkAccessForSubAppEntities(entities,callerUGI);
|
||||
succeeded = true;
|
||||
} catch (Exception e) {
|
||||
handleException(e, url, startTime, "");
|
||||
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||
+ " start/end");
|
||||
} finally {
|
||||
long latency = Time.monotonicNow() - startTime;
|
||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||
|
Loading…
Reference in New Issue
Block a user