[ https://issues.apache.org/jira/browse/YARN-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227560#comment-14227560 ]
Hudson commented on YARN-2165: ------------------------------ FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #18 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/18/]) YARN-2165. Added the sanity check for the numeric configuration values of the timeline service. Contributed by Vasanth kumar RJ. (zjshen: rev 8f1454cc6d46afa057770a39aecc151c5f048b57) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryClientService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test/java/org/apache/hadoop/yarn/server/timeline/TestLeveldbTimelineStore.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test/java/org/apache/hadoop/yarn/server/applicationhistoryservice/TestApplicationHistoryServer.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestTimelineClient.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/timeline/LeveldbTimelineStore.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java * hadoop-yarn-project/CHANGES.txt > Timeline server should validate the numeric configuration values > ---------------------------------------------------------------- > > Key: YARN-2165 > URL: https://issues.apache.org/jira/browse/YARN-2165 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelineserver > Reporter: Karam Singh > Assignee: Vasanth kumar RJ > Fix For: 2.7.0 > > Attachments: YARN-2165.1.patch, YARN-2165.2.patch, YARN-2165.3.patch, > YARN-2165.4.patch, YARN-2165.patch > > > Timelineserver should validate that yarn.timeline-service.ttl-ms is greater > than zero > Currently if set yarn.timeline-service.ttl-ms=0 > Or yarn.timeline-service.ttl-ms=-86400 > Timeline server start successfully with complaining > {code} > 2014-06-15 14:52:16,562 INFO timeline.LeveldbTimelineStore > (LeveldbTimelineStore.java:<init>(247)) - Starting deletion thread with ttl > -604800000 and cycle interval 300000 > {code} > At starting timelinserver should that yarn.timeline-service-ttl-ms > 0 > otherwise specially for -ive value discard oldvalues timestamp will be set > future value. Which may lead to inconsistancy in behavior > {code} > public void run() { > while (true) { > long timestamp = System.currentTimeMillis() - ttl; > try { > discardOldEntities(timestamp); > Thread.sleep(ttlInterval); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)