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 class TimelineReaderWebServices {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime,
|
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 {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -631,7 +632,8 @@ public class TimelineReaderWebServices {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime,
|
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 {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -725,7 +727,8 @@ public class TimelineReaderWebServices {
|
||||||
checkAccessForGenericEntity(entity, callerUGI);
|
checkAccessForGenericEntity(entity, callerUGI);
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime, "flowrunid");
|
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||||
|
+ " start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -919,7 +922,8 @@ public class TimelineReaderWebServices {
|
||||||
checkAccessForGenericEntity(entity, callerUGI);
|
checkAccessForGenericEntity(entity, callerUGI);
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime, "flowrunid");
|
handleException(e, url, startTime, "Either flowrunid or metricslimit or"
|
||||||
|
+ " metricstime start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -1606,7 +1610,8 @@ public class TimelineReaderWebServices {
|
||||||
checkAccessForAppEntity(entity, callerUGI);
|
checkAccessForAppEntity(entity, callerUGI);
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime, "flowrunid");
|
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||||
|
+ " start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -1781,7 +1786,8 @@ public class TimelineReaderWebServices {
|
||||||
checkAccessForAppEntity(entity, callerUGI);
|
checkAccessForAppEntity(entity, callerUGI);
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime, "flowrunid");
|
handleException(e, url, startTime, "Either flowrunid or metricslimit or"
|
||||||
|
+ " metricstime start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -1927,7 +1933,8 @@ public class TimelineReaderWebServices {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime,
|
handleException(e, url, startTime,
|
||||||
"createdTime start/end or limit or flowrunid");
|
"Either limit or createdtime start/end or metricslimit or"
|
||||||
|
+ " metricstime start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -3418,7 +3425,8 @@ public class TimelineReaderWebServices {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime,
|
handleException(e, url, startTime,
|
||||||
"createdTime start/end or limit");
|
"Either limit or createdtime start/end or metricslimit or metricstime"
|
||||||
|
+ " start/end or fromid");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
@ -3489,7 +3497,8 @@ public class TimelineReaderWebServices {
|
||||||
checkAccessForSubAppEntities(entities,callerUGI);
|
checkAccessForSubAppEntities(entities,callerUGI);
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handleException(e, url, startTime, "");
|
handleException(e, url, startTime, "Either metricslimit or metricstime"
|
||||||
|
+ " start/end");
|
||||||
} finally {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
METRICS.addGetEntitiesLatency(latency, succeeded);
|
METRICS.addGetEntitiesLatency(latency, succeeded);
|
||||||
|
|
Loading…
Reference in New Issue