Skip to content

Commit 197c428

Browse files
committed
review fixes
1 parent a27d679 commit 197c428

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

tests/slo/src/jobs.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@
3131
);
3232
"""
3333

34-
# QUERY_READ_QUERY_TEMPLATE = """
35-
# SELECT * FROM `{}` WHERE object_id = $object_id AND object_hash = Digest::NumericHash($object_id);
36-
# """
37-
38-
# QUERY_WRITE_QUERY_TEMPLATE = """
39-
# UPSERT INTO `{}` (
40-
# object_id, object_hash, payload_str, payload_double, payload_timestamp
41-
# ) VALUES (
42-
# $object_id, Digest::NumericHash($object_id), $payload_str, $payload_double, $payload_timestamp
43-
# );
44-
# """
4534

4635
logger = logging.getLogger(__name__)
4736

@@ -286,6 +275,7 @@ def run_writes_query(driver, query, row_generator, metrics, limiter, runtime, ti
286275
}
287276

288277
def check_result(result):
278+
# we have to close stream by reading it till the end
289279
with result:
290280
pass
291281

tests/slo/src/metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
JOB_STATUS_OK, JOB_STATUS_ERR = "ok", "err"
1515

1616
SDK_SERVICE_NAME = environ.get("SDK_SERVICE", "sync-python-table")
17-
print(f"SDK_SERVICE_NAME = {SDK_SERVICE_NAME}")
1817

1918

2019
class Metrics:

tests/slo/src/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def run_slo(args, driver, tb_name):
109109
for future in futures:
110110
future.join()
111111

112-
# metrics.reset()
112+
metrics.reset()
113113

114114

115115
def run_cleanup(args, driver, tb_name):

0 commit comments

Comments
 (0)