You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2018/05/10 16:04:00 UTC
[jira] [Created] (AMBARI-23811) TimelineMetricsFilterTest failure
if dir name contains @
Doroszlai, Attila created AMBARI-23811:
------------------------------------------
Summary: TimelineMetricsFilterTest failure if dir name contains @
Key: AMBARI-23811
URL: https://issues.apache.org/jira/browse/AMBARI-23811
Project: Ambari
Issue Type: Bug
Components: ambari-metrics
Affects Versions: trunk
Reporter: Doroszlai, Attila
Fix For: trunk
[PullRequest Builder|https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/] is occasionally running into failure in the following 2 test cases:
{noformat}
testHybridFilter(org.apache.ambari.metrics.core.timeline.TimelineMetricsFilterTest) Time elapsed: 0.725 sec <<< FAILURE!
junit.framework.AssertionFailedError
at org.apache.ambari.metrics.core.timeline.TimelineMetricsFilterTest.testHybridFilter(TimelineMetricsFilterTest.java:221)
testMetricWhitelisting(org.apache.ambari.metrics.core.timeline.TimelineMetricsFilterTest) Time elapsed: 0.035 sec <<< FAILURE!
junit.framework.AssertionFailedError
at org.apache.ambari.metrics.core.timeline.TimelineMetricsFilterTest.testMetricWhitelisting(TimelineMetricsFilterTest.java:78)
{noformat}
Looking at the logs, it only happens if two builds are running on the same Jenkins node concurrently (workspace dir has suffix {{@2}}), but timing doesn't matter, the two concurrent builds can be at completely different stages. The problem is caused by not finding the whitelist file due to URL escaping ({{@}} is converted to {{%40}}):
{noformat}
FileNotFoundException: Ambari-Github-PullRequest-Builder%402/ambari-metrics/ambari-metrics-timelineservice/target/test-classes/test_data/metric_whitelist.dat (No such file or directory)
{noformat}
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2225/
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2220/
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2214/
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2195/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)