rreddy-22 commented on code in PR #14524:
URL: https://github.com/apache/kafka/pull/14524#discussion_r1373681142
##########
tests/kafkatest/services/kafka/kafka.py:
##########
@@ -277,6 +279,22 @@ def __init__(self, context, num_nodes, zk,
security_protocol=SecurityConfig.PLAI
self.isolated_controller_quorum = None # will define below if necessary
self.configured_for_zk_migration = False
+ default_use_new_coordinator = False
+
+ # If 'use_new_coordinator' is not explicitly set, determine it based
on context.
+ if use_new_coordinator is None:
+ arg_name = 'use_new_coordinator'
+
+ # Default to the global setting if no arguments are injected.
+ if not context.injected_args:
Review Comment:
```
if use_new_coordinator is None:
use_new_coordinator = context.globals.get(`use_new_coordinator`)
if context.injected_args is not None:
use_new_coordinator = context.injected_args.get(`use_new_coordinator`,
use_new_coordinator)
```
This would've overwritten the global value with the default in case injected
args didn't have the value specified. I changed it to something different now.
This could've also allowed use_new_coordinator to be None in case the global
value wasn't set and context args was None.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]