Skip to content

Commit

Permalink
fix(kafka): missing doublequote wrap of hash keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Smejky338 committed Dec 13, 2023
1 parent 9f3d846 commit 667afba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions opl/consumer_lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def __init__(
def _getconsumer(self):
# Common parameters for both cases
common_params = {
bootstrap_servers: self.bootstrap_servers,
auto_offset_reset: "latest",
enable_auto_commit: False,
max_poll_records: 50,
max_poll_interval_ms: 300000,
group_id: self.group,
session_timeout_ms: 50000,
heartbeat_interval_ms: 10000,
consumer_timeout_ms: 100000,
"bootstrap_servers": self.bootstrap_servers,
"auto_offset_reset": "latest",
"enable_auto_commit": False,
"max_poll_records": 50,
"max_poll_interval_ms": 300000,
"group_id": self.group,
"session_timeout_ms": 50000,
"heartbeat_interval_ms": 10000,
"consumer_timeout_ms": 100000,
}

# Kafka consumer creation: SASL or noauth
Expand Down
14 changes: 7 additions & 7 deletions opl/skip_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def doit_seek_to_end(kafka_hosts, kafka_timeout, kafka_topic, kafka_group, args=

# Common parameters for both cases
common_params = {
bootstrap_servers: kafka_hosts,
auto_offset_reset: "latest",
enable_auto_commit: True,
group_id: kafka_group,
session_timeout_ms: 50000,
heartbeat_interval_ms: 10000,
consumer_timeout_ms: kafka_timeout,
"bootstrap_servers": kafka_hosts,
"auto_offset_reset": "latest",
"enable_auto_commit": True,
"group_id": kafka_group,
"session_timeout_ms": 50000,
"heartbeat_interval_ms": 10000,
"consumer_timeout_ms": kafka_timeout,
}

# Kafka consumer creation: SASL or noauth
Expand Down

0 comments on commit 667afba

Please sign in to comment.