Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E84111D8A for ; Sat, 23 Aug 2014 02:25:11 +0000 (UTC) Received: (qmail 48995 invoked by uid 500); 23 Aug 2014 02:25:11 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 48948 invoked by uid 500); 23 Aug 2014 02:25:11 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 48937 invoked by uid 99); 23 Aug 2014 02:25:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Aug 2014 02:25:11 +0000 Date: Sat, 23 Aug 2014 02:25:11 +0000 (UTC) From: "Billie Rinaldi (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2445) ATS does not reflect changes to uploaded TimelineEntity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14107808#comment-14107808 ] Billie Rinaldi commented on YARN-2445: -------------------------------------- ATS is only designed to support aggregation. In other words, each new primary filter or related entity is added to what is already there for the entity. You cannot remove previously put information. In this example, I would expect oldprop and newprop both to appear. > ATS does not reflect changes to uploaded TimelineEntity > ------------------------------------------------------- > > Key: YARN-2445 > URL: https://issues.apache.org/jira/browse/YARN-2445 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver > Reporter: Marcelo Vanzin > Priority: Minor > Attachments: ats2.java > > > If you make a change to the TimelineEntity and send it to the ATS, that change is not reflected in the stored data. > For example, in the attached code, an existing primary filter is removed and a new one is added. When you retrieve the entity from the ATS, it only contains the old value: > {noformat} > {"entities":[{"events":[],"entitytype":"test","entity":"testid-ad5380c0-090e-4982-8da8-21676fe4e9f4","starttime":1408746026958,"relatedentities":{},"primaryfilters":{"oldprop":["val"]},"otherinfo":{}}]} > {noformat} > Perhaps this is what the design wanted, but from an API user standpoint, it's really confusing, since to upload events I have to upload the entity itself, and the changes are not reflected. -- This message was sent by Atlassian JIRA (v6.2#6252)