Skip to content

Commit

Permalink
Fix datanode message count metric (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre authored Feb 13, 2024
1 parent c04c06b commit 479b125
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions datanode/src/datanode_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def __init__(self, partition_count=1, home_path='datanode/server/', metrics_prov
self.shared_partition = SharedPartitions(partition_count, home_path=home_path + '/main/')
self.replica = SharedPartitions(partition_count, home_path=home_path + '/replica/')

@inc_message_count
def Push(self, request, context):
PUSH_THROUGHPUT.labels(provider=self.metrics_provider).observe(1)
start_time = time.time()
Expand Down Expand Up @@ -137,7 +136,6 @@ def PurgeReplicaData(self, request, context):
home_path=self.home_path + '/replica/')
return empty_pb2.Empty()

@dec_message_count
def AcknowledgePull(self, request, context):
try:
ACK_THROUGHPUT.labels(provider=self.metrics_provider).observe(1)
Expand Down

0 comments on commit 479b125

Please sign in to comment.