Class CounterBackedMapReduceDataWriterTaskTracker
java.lang.Object
com.linkedin.venice.hadoop.mapreduce.datawriter.task.CounterBackedMapReduceDataWriterTaskTracker
- All Implemented Interfaces:
DataWriterTaskTracker,TaskTracker
public class CounterBackedMapReduceDataWriterTaskTracker
extends Object
implements DataWriterTaskTracker
An interface to retrieve metrics related to data writer tasks after a MapReduce job has completed.
-
Field Summary
Fields inherited from interface com.linkedin.venice.hadoop.task.TaskTracker
PROGRESS_COMPLETED, PROGRESS_NOT_SUPPORTED -
Constructor Summary
ConstructorsConstructorDescriptionCounterBackedMapReduceDataWriterTaskTracker(org.apache.hadoop.mapred.Counters counters) -
Method Summary
Modifier and TypeMethodDescriptionlonglongReturns the set of regions whose external writers exhausted retries and were reported by one or more data-writer tasks.longlonglonglonglonglonglonglonglonglonglonglonglonglonglongMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.hadoop.task.datawriter.DataWriterTaskTracker
getLargestUncompressedValueSize, getPerPartitionRecordCounts, trackCompressedValueSize, trackDuplicateKeyWithDistinctValue, trackDuplicateKeyWithIdenticalValue, trackEmptyRecord, trackExternalStorageWriteTime, trackFailedExternalStorageRegion, trackGzipCompressedValueSize, trackIncrementalPushThrottledTime, trackKeySize, trackLargestUncompressedValueSize, trackPartitionWriterClose, trackPutOrDeleteRecord, trackRecordSentToPubSub, trackRecordTooLargeFailure, trackRepushTtlFilteredRecord, trackSprayAllPartitions, trackUncompressedRecordTooLargeFailure, trackUncompressedValueSize, trackVeniceWriteTime, trackWriteAclAuthorizationFailure, trackZstdCompressedValueSizeMethods inherited from interface com.linkedin.venice.hadoop.task.TaskTracker
getProgress, heartbeat
-
Constructor Details
-
CounterBackedMapReduceDataWriterTaskTracker
public CounterBackedMapReduceDataWriterTaskTracker(org.apache.hadoop.mapred.Counters counters)
-
-
Method Details
-
getSprayAllPartitionsCount
public long getSprayAllPartitionsCount()- Specified by:
getSprayAllPartitionsCountin interfaceDataWriterTaskTracker
-
getTotalKeySize
public long getTotalKeySize()- Specified by:
getTotalKeySizein interfaceDataWriterTaskTracker
-
getTotalValueSize
public long getTotalValueSize()- Specified by:
getTotalValueSizein interfaceDataWriterTaskTracker
-
getTotalUncompressedValueSize
public long getTotalUncompressedValueSize()- Specified by:
getTotalUncompressedValueSizein interfaceDataWriterTaskTracker
-
getTotalGzipCompressedValueSize
public long getTotalGzipCompressedValueSize()- Specified by:
getTotalGzipCompressedValueSizein interfaceDataWriterTaskTracker
-
getTotalZstdCompressedValueSize
public long getTotalZstdCompressedValueSize()- Specified by:
getTotalZstdCompressedValueSizein interfaceDataWriterTaskTracker
-
getRecordTooLargeFailureCount
public long getRecordTooLargeFailureCount()- Specified by:
getRecordTooLargeFailureCountin interfaceDataWriterTaskTracker
-
getUncompressedRecordTooLargeFailureCount
public long getUncompressedRecordTooLargeFailureCount()- Specified by:
getUncompressedRecordTooLargeFailureCountin interfaceDataWriterTaskTracker
-
getWriteAclAuthorizationFailureCount
public long getWriteAclAuthorizationFailureCount()- Specified by:
getWriteAclAuthorizationFailureCountin interfaceDataWriterTaskTracker
-
getDuplicateKeyWithDistinctValueCount
public long getDuplicateKeyWithDistinctValueCount()- Specified by:
getDuplicateKeyWithDistinctValueCountin interfaceDataWriterTaskTracker
-
getOutputRecordsCount
public long getOutputRecordsCount()- Specified by:
getOutputRecordsCountin interfaceDataWriterTaskTracker
-
getPartitionWriterCloseCount
public long getPartitionWriterCloseCount()- Specified by:
getPartitionWriterCloseCountin interfaceDataWriterTaskTracker
-
getRepushTtlFilterCount
public long getRepushTtlFilterCount()- Specified by:
getRepushTtlFilterCountin interfaceDataWriterTaskTracker
-
getTotalPutOrDeleteRecordsCount
public long getTotalPutOrDeleteRecordsCount()- Specified by:
getTotalPutOrDeleteRecordsCountin interfaceDataWriterTaskTracker
-
getIncrementalPushThrottledTimeMs
public long getIncrementalPushThrottledTimeMs()- Specified by:
getIncrementalPushThrottledTimeMsin interfaceDataWriterTaskTracker
-
getFailedExternalStorageRegions
Description copied from interface:DataWriterTaskTrackerReturns the set of regions whose external writers exhausted retries and were reported by one or more data-writer tasks. Implementations should return an immutable or defensive-copy snapshot.- Specified by:
getFailedExternalStorageRegionsin interfaceDataWriterTaskTracker
-
getExternalStorageWriteTimeMs
public long getExternalStorageWriteTimeMs()- Specified by:
getExternalStorageWriteTimeMsin interfaceDataWriterTaskTracker- Returns:
- the summed per-task duration (ms) spent in the external-storage write path across all successful
task outputs of this push. See
DataWriterTaskTracker.trackExternalStorageWriteTime(long)for exactly what is included; this is not the push's wall-clock time.
-
getVeniceWriteTimeMs
public long getVeniceWriteTimeMs()- Specified by:
getVeniceWriteTimeMsin interfaceDataWriterTaskTracker- Returns:
- the summed per-task duration (ms) spent in the Venice/Kafka write path across all successful task
outputs of this push. See
DataWriterTaskTracker.trackVeniceWriteTime(long); this is not the push's wall-clock time.
-