You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "Krishna, Murali(AWF)" <mu...@ebay.com> on 2015/12/23 05:48:29 UTC

create/update differentiation in eagle service API

Hi Team,

The question is in terms of https://issues.apache.org/jira/browse/EAGLE-47

In the eagle services for PolicyDefinition and DataSourceDefinition, both the create and update operations go through the create method of HBaseStorage.java. So how do we differentiate between create and update operation without hitting HBase again to check if the row exists (is this acceptable from the point of performance). Or is there any other way to differentiate ?

Thanks,
Murali Krishna

RE: create/update differentiation in eagle service API

Posted by "Krishna, Murali(AWF)" <mu...@ebay.com>.
Thanks Edward.

	- Murali Krishna

-----Original Message-----
From: Zhang, Edward (GDI Hadoop) [mailto:yonzhang@ebay.com] 
Sent: Wednesday, December 23, 2015 11:18 AM
To: dev@eagle.incubator.apache.org
Subject: Re: create/update differentiation in eagle service API

Hi Murali,

There is no easy way to distinguish create and update. But looks it is not that important to know if policy is created or updated. If we do want to know if it is created or updated, we can look at the policy¹s history and the first change must be create.

Thanks
Edward

On 12/22/15, 20:48, "Krishna, Murali(AWF)" <mu...@ebay.com> wrote:

>Hi Team,
>
>The question is in terms of 
>https://issues.apache.org/jira/browse/EAGLE-47
>
>In the eagle services for PolicyDefinition and DataSourceDefinition, 
>both the create and update operations go through the create method of 
>HBaseStorage.java. So how do we differentiate between create and update 
>operation without hitting HBase again to check if the row exists (is 
>this acceptable from the point of performance). Or is there any other 
>way to differentiate ?
>
>Thanks,
>Murali Krishna


Re: create/update differentiation in eagle service API

Posted by "Zhang, Edward (GDI Hadoop)" <yo...@ebay.com>.
Hi Murali,

There is no easy way to distinguish create and update. But looks it is not
that important to know if policy is created or updated. If we do want to
know if it is created or updated, we can look at the policy¹s history and
the first change must be create.

Thanks
Edward

On 12/22/15, 20:48, "Krishna, Murali(AWF)" <mu...@ebay.com> wrote:

>Hi Team,
>
>The question is in terms of https://issues.apache.org/jira/browse/EAGLE-47
>
>In the eagle services for PolicyDefinition and DataSourceDefinition, both
>the create and update operations go through the create method of
>HBaseStorage.java. So how do we differentiate between create and update
>operation without hitting HBase again to check if the row exists (is this
>acceptable from the point of performance). Or is there any other way to
>differentiate ?
>
>Thanks,
>Murali Krishna