You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by Ashish <pa...@gmail.com> on 2015/01/23 03:41:48 UTC

Re: Usage of CounterGroup class?

Hari,

Sorry for coming back to this again. There are lot of usage of this
class. Shall we raise JIRA's to phase this out and move the usage to
subclasses of MonitoredCounterGroup as applicable?



On Wed, Nov 12, 2014 at 8:03 AM, Ashish <pa...@gmail.com> wrote:
> CounterGroup is obsolete (got it on another thread).
>
> Just closing this Thread to avoid Zombies :)
>
> On Sat, Nov 8, 2014 at 6:18 PM, Ashish <pa...@gmail.com> wrote:
>> Hi,
>>
>> Can someone help me understand the usage of CounterGroup class. Can
>> see its usage for collecting metrics, but how is it reported (via
>> logging only?) The usage is also not consistent across Sources/Sinks,
>> like Avro source doesn't use, neither does HDFS/Kafka sinks.
>>
>> The class has all the methods as synchronized. The only time it is
>> needed is while adding the counter to the map, rest synchronisation is
>> handled by AtomicLong class. We can register the counters while
>> initializing the class and get rid of synchronized clause from class.
>> It's not a big issue, AFAIK JVM would anyways be optimising it during
>> runtime.
>>
>> Thoughts?
>>
>> --
>> thanks
>> ashish
>>
>> Blog: http://www.ashishpaliwal.com/blog
>> My Photo Galleries: http://www.pbase.com/ashishpaliwal
>
>
>
> --
> thanks
> ashish
>
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal



-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal

Re: Usage of CounterGroup class?

Posted by Hari Shreedharan <hs...@cloudera.com>.
Yep, sounds good!




Thanks, Hari

On Thu, Jan 22, 2015 at 6:43 PM, Ashish <pa...@gmail.com> wrote:

> Hari,
> Sorry for coming back to this again. There are lot of usage of this
> class. Shall we raise JIRA's to phase this out and move the usage to
> subclasses of MonitoredCounterGroup as applicable?
> On Wed, Nov 12, 2014 at 8:03 AM, Ashish <pa...@gmail.com> wrote:
>> CounterGroup is obsolete (got it on another thread).
>>
>> Just closing this Thread to avoid Zombies :)
>>
>> On Sat, Nov 8, 2014 at 6:18 PM, Ashish <pa...@gmail.com> wrote:
>>> Hi,
>>>
>>> Can someone help me understand the usage of CounterGroup class. Can
>>> see its usage for collecting metrics, but how is it reported (via
>>> logging only?) The usage is also not consistent across Sources/Sinks,
>>> like Avro source doesn't use, neither does HDFS/Kafka sinks.
>>>
>>> The class has all the methods as synchronized. The only time it is
>>> needed is while adding the counter to the map, rest synchronisation is
>>> handled by AtomicLong class. We can register the counters while
>>> initializing the class and get rid of synchronized clause from class.
>>> It's not a big issue, AFAIK JVM would anyways be optimising it during
>>> runtime.
>>>
>>> Thoughts?
>>>
>>> --
>>> thanks
>>> ashish
>>>
>>> Blog: http://www.ashishpaliwal.com/blog
>>> My Photo Galleries: http://www.pbase.com/ashishpaliwal
>>
>>
>>
>> --
>> thanks
>> ashish
>>
>> Blog: http://www.ashishpaliwal.com/blog
>> My Photo Galleries: http://www.pbase.com/ashishpaliwal
> -- 
> thanks
> ashish
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal