Skip to content

Commit d67ab04

Browse files
committed
updated hbase_region_requests.py
1 parent 45aec39 commit d67ab04

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

hbase_region_requests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ def process_bean(self, host, bean, uptime):
193193
else:
194194
stats[host][table][region][metric_type] = (bean[key] - last[host][key]) / self.interval
195195
last[host][key] = bean[key]
196+
# totalRequestCount field seems to not always be found, causing key errors later in print_stats()
197+
#
198+
# worse is that totalRequestCount calculation is wrong due to change
199+
#
200+
# See https://issues.apache.org/jira/browse/HBASE-20626
201+
#
202+
# which counts multi-requests as a single request, breaking the seemingly reasonable assertion
203+
#
204+
# assert readRequestCount + writeRequestcount == totalRequestCount
205+
#
196206
if 'read' in stats[host][table][region] and 'write' in stats[host][table][region]:
197207
#log.debug('calculating total now we have read and write info')
198208
stats[host][table][region]['total'] = stats[host][table][region]['read'] + \

0 commit comments

Comments
 (0)