Skip to content

Commit 20de6de

Browse files
author
prajwal.kirankumar
committed
Disable all stats for indexes if flag is off
Change-Id: I04d8f73df47db702f04666e1f793d0432603f8f5 Reviewed-on: http://review.couchbase.org/c/perfrunner/+/145784 Tested-by: Build Bot <[email protected]> Reviewed-by: Jyotsna <[email protected]>
1 parent 2f86f36 commit 20de6de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

perfrunner/tests/secondary.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ def calc_avg_rr(self, storage_stats):
154154
return avg_rr
155155

156156
def print_index_disk_usage(self, text=""):
157+
if self.test_config.gsi_settings.disable_perindex_stats:
158+
return
159+
157160
if text:
158161
logger.info("{}".format(text))
159162

@@ -163,8 +166,7 @@ def print_index_disk_usage(self, text=""):
163166

164167
storage_stats = self.rest.get_index_storage_stats(self.index_nodes[0])
165168

166-
if not self.test_config.gsi_settings.disable_perindex_stats:
167-
logger.info("Index storage stats:\n{}".format(storage_stats.text))
169+
logger.info("Index storage stats:\n{}".format(storage_stats.text))
168170

169171
heap_profile = get_indexer_heap_profile(self.index_nodes[0],
170172
self.rest.rest_username,

0 commit comments

Comments
 (0)