Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Failure (timeout in kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement in DEBUG builds #11276

Closed
andijcr opened this issue Jun 7, 2023 · 14 comments · Fixed by #11342
Assignees
Labels
area/controller ci-failure ci-rca/infra CI Root Cause Analysis - Infrastructure Issue kind/bug Something isn't working

Comments

@andijcr
Copy link
Contributor

andijcr commented Jun 7, 2023

https://buildkite.com/redpanda/redpanda/builds/30776#018894e7-2322-4fdc-afec-cb028f9cc9da
https://buildkite.com/redpanda/redpanda/builds/30776#018894e7-2322-4fdc-afec-cb028f9cc9da

Module: rptest.tests.rack_aware_replica_placement_test
Class:  RackAwarePlacementTest
Method: test_replica_placement
Arguments:
{
  "num_partitions": 400,
  "num_topics": 2,
  "rack_layout_str": "ooooFF",
  "replication_factor": 3
}
====================================================================================================
test_id:    rptest.tests.rack_aware_replica_placement_test.RackAwarePlacementTest.test_replica_placement.rack_layout_str=ooooFF.num_partitions=400.replication_factor=3.num_topics=2
status:     FAIL
run time:   2 minutes 5.245 seconds


    CalledProcessError(1, ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-5:9092,docker-rp-16:9092,docker-rp-4:9092,docker-rp-17:9092,docker-rp-14:9092,docker-rp-15:9092', '--create', '--topic', 'topic-rrtjhdlqrb', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete'])
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/ducktape/tests/runner_client.py", line 135, in run
    data = self.run_test()
  File "/usr/local/lib/python3.10/dist-packages/ducktape/tests/runner_client.py", line 227, in run_test
    return self.test_context.function(self.test)
  File "/usr/local/lib/python3.10/dist-packages/ducktape/mark/_mark.py", line 481, in wrapper
    return functools.partial(f, *args, **kwargs)(*w_args, **w_kwargs)
  File "/root/tests/rptest/services/cluster.py", line 79, in wrapped
    r = f(self, *args, **kwargs)
  File "/root/tests/rptest/tests/rack_aware_replica_placement_test.py", line 147, in test_replica_placement
    self._create_topic(topic)
  File "/root/tests/rptest/tests/rack_aware_replica_placement_test.py", line 50, in _create_topic
    self.client().create_topic(topic)
  File "/root/tests/rptest/clients/default.py", line 56, in create_topic
    client.create_topic(spec)
  File "/root/tests/rptest/clients/kafka_cli_tools.py", line 84, in create_topic
    return self._run("kafka-topics.sh", args)
  File "/root/tests/rptest/clients/kafka_cli_tools.py", line 402, in _run
    return self._execute(cmd)
  File "/root/tests/rptest/clients/kafka_cli_tools.py", line 412, in _execute
    res = subprocess.check_output(cmd,
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-5:9092,docker-rp-16:9092,docker-rp-4:9092,docker-rp-17:9092,docker-rp-14:9092,docker-rp-15:9092', '--create', '--topic', 'topic-rrtjhdlqrb', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete']' returned non-zero exit status 1.

@andijcr andijcr added kind/bug Something isn't working ci-failure labels Jun 7, 2023
@andijcr andijcr changed the title CI Failure (CalledProcessError kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placemen CI Failure (CalledProcessError kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement Jun 7, 2023
@michael-redpanda
Copy link
Contributor

@bharathv bharathv self-assigned this Jun 13, 2023
@michael-redpanda
Copy link
Contributor

@ztlpn
Copy link
Contributor

ztlpn commented Jun 15, 2023

@ztlpn
Copy link
Contributor

ztlpn commented Jun 16, 2023

@travisdowns
Copy link
Member

Underlying cause is that topic creation fails due to timeout, I think this can only be seen in the debug log:

[DEBUG - 2023-06-19 00:48:52,926 - kafka_cli_tools - create_topic - lineno:67]: Creating topic: topic-qpvznbjaqd
[DEBUG - 2023-06-19 00:48:52,927 - kafka_cli_tools - _execute - lineno:410]: Executing command: ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-9:9092,docker-rp-6:9092,docker-rp-19:9092,docker-rp-5:9092,docker-rp-7:9092,docker-rp-8:9092', '--create', '--topic', 'topic-qpvznbjaqd', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete']
[DEBUG - 2023-06-19 00:49:54,807 - kafka_cli_tools - _execute - lineno:418]: Error (1) executing command: Error while executing topic command : Call(callName=createTopics, deadlineMs=1687135794401, tries=1, nextAllowedTryMs=1687135794559) timed out at 1687135794459 after 1 attempt(s)
[2023-06-19 00:49:54,464] ERROR org.apache.kafka.common.errors.TimeoutException: Call(callName=createTopics, deadlineMs=1687135794401, tries=1, nextAllowedTryMs=1687135794559) timed out at 1687135794459 after 1 attempt(s)
Caused by: org.apache.kafka.common.errors.DisconnectException: Cancelled createTopics request with correlation id 3 due to node 1 being disconnected
 (kafka.admin.TopicCommand$)

Looks like the timeout occurred about 62 seconds after issuing the command (so probably a 60 second timeout) which is a long time to create a 400 partition topic.

@travisdowns
Copy link
Member

Three more instances overnight:

FAIL test: RackAwarePlacementTest.test_replica_placement.rack_layout_str=ooooFF.num_partitions=400.replication_factor=3.num_topics=2 (3/31 runs)
failure at 2023-06-19T01:19:57.960Z: CalledProcessError(1, ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-9:9092,docker-rp-6:9092,docker-rp-19:9092,docker-rp-5:9092,docker-rp-7:9092,docker-rp-8:9092', '--create', '--topic', 'topic-qpvznbjaqd', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete'])
on (amd64, container) in job https://buildkite.com/redpanda/redpanda/builds/31567#0188d102-709f-4dfa-a1bf-47647df79717
failure at 2023-06-19T14:53:48.777Z: CalledProcessError(1, ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-8:9092,docker-rp-23:9092,docker-rp-24:9092,docker-rp-21:9092,docker-rp-18:9092,docker-rp-22:9092', '--create', '--topic', 'topic-xvrrqvacjj', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete'])
on (amd64, container) in job https://buildkite.com/redpanda/redpanda/builds/31599#0188d3ec-265a-4582-997f-aad70ddfe771
failure at 2023-06-19T07:07:44.877Z: CalledProcessError(1, ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-2:9092,docker-rp-1:9092,docker-rp-11:9092,docker-rp-12:9092,docker-rp-18:9092,docker-rp-19:9092', '--create', '--topic', 'topic-kieseoggdk', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete'])
on (amd64, container) in job https://buildkite.com/redpanda/redpanda/builds/31580#0188d241-8759-487b-8fb1-dba0aae8251c

@travisdowns travisdowns changed the title CI Failure (CalledProcessError kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement CI Failure (CalledProcessError kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement in DEBUG builds Jun 19, 2023
@travisdowns travisdowns changed the title CI Failure (CalledProcessError kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement in DEBUG builds CI Failure (timeout in kafka-topics.sh create topic) in RackAwarePlacementTest.test_replica_placement in DEBUG builds Jun 19, 2023
@travisdowns
Copy link
Member

One more:

FAIL test: RackAwarePlacementTest.test_replica_placement.rack_layout_str=xxYYzz.num_partitions=400.replication_factor=3.num_topics=2 (1/31 runs)
failure at 2023-06-19T16:03:55.178Z: CalledProcessError(1, ['/opt/kafka-3.0.0/bin/kafka-topics.sh', '--bootstrap-server', 'docker-rp-20:9092,docker-rp-10:9092,docker-rp-9:9092,docker-rp-19:9092,docker-rp-17:9092,docker-rp-8:9092', '--create', '--topic', 'topic-zfyjepslfe', '--partitions', '400', '--replication-factor', '3', '--config', 'cleanup.policy=delete'])
on (amd64, container) in job https://buildkite.com/redpanda/redpanda/builds/31600#0188d42b-92b5-463b-9b9e-9303916f63a4

@bharathv
Copy link
Contributor

Looks like it is only failing with debug build + 400 partition combination.. perhaps one of those slow debug build issues, I'll dig more tomorrow.

@michael-redpanda
Copy link
Contributor

@michael-redpanda
Copy link
Contributor

@bharathv
Copy link
Contributor

Disabled via #11590

@piyushredpanda piyushredpanda added the ci-rca/infra CI Root Cause Analysis - Infrastructure Issue label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller ci-failure ci-rca/infra CI Root Cause Analysis - Infrastructure Issue kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants