You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ion Badita <io...@searchcapital.net> on 2008/06/02 09:34:03 UTC

MetricsIntValue/MetricsLongValue publish once

Hi,

In javadoc for MetricsIntValue and MetricsLongValue is written: "Each 
time its value is set, it is published only *once* at the next update 
call". Looking at the those classes is right they "push" the data into 
the MetricsRecord only once, but digging dipper into the 
AbstractMericsContext the MetricsRecord data is "published" on every 
update, because ins not cleared once is published (i think is normal to 
be cleared because MetricsRecod "records" only "instructions" for 
changing the bufferedData from MetricsContext, maybe I'm wrong but thats 
what code dose).

Ion