diff --git a/benchmarks/perf-tool/okpt/test/steps/steps.py b/benchmarks/perf-tool/okpt/test/steps/steps.py index 8529a2f63..9e70123c3 100644 --- a/benchmarks/perf-tool/okpt/test/steps/steps.py +++ b/benchmarks/perf-tool/okpt/test/steps/steps.py @@ -288,11 +288,11 @@ def action(doc_id): return {'index': {'_index': self.index_name, '_id': doc_id}} index_responses = [] - for doc_id_ in range(0, self.doc_count, self.bulk_size): + for i in range(0, self.doc_count, self.bulk_size): partition = self.dataset.read(self.bulk_size) if partition is None: break - body = bulk_transform(partition, self.field_name, action, doc_id_) + body = bulk_transform(partition, self.field_name, action, i) result = bulk_index(self.opensearch, self.index_name, body) index_responses.append(result)