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

Investigate flaky librdkafka tests #7148

Closed
mmaslankaprv opened this issue Nov 8, 2022 · 5 comments
Closed

Investigate flaky librdkafka tests #7148

mmaslankaprv opened this issue Nov 8, 2022 · 5 comments
Labels
ci-disabled-test kind/enhance New feature or request

Comments

@mmaslankaprv
Copy link
Member

mmaslankaprv commented Nov 8, 2022

Investigate why some of the librdkafka ducktape tests fail intermittently in Ci.

JIRA Link: CORE-1072

@NyaliaLui
Copy link
Contributor

Instances of these failures are
https://buildkite.com/redpanda/redpanda/builds/18065#018455c2-a92a-4d07-8a52-723019b02e8c/6-1030
https://buildkite.com/redpanda/redpanda/builds/18063#018455b1-8a3d-4f13-b6ba-2315d607fccb/6-947
https://buildkite.com/redpanda/redpanda/builds/18059#0184556f-db61-41e4-ac10-63f5cf5e6c0a/6-1007
https://buildkite.com/redpanda/redpanda/builds/18024#01845303-02c1-49f4-986a-808d406f441a/6-932
https://buildkite.com/redpanda/redpanda/builds/18064#018455ba-6762-4555-bedb-d40c98025e45/6-1004

The failure looks like:

    Exception('LibrdkafkaTestcase-0-140073870776048-worker-1: Traceback (most recent call last):\n  File "/root/tests/rptest/services/librdkafka_test_case.py", line 59, in _worker\n    node.account.ssh(\n  File "/usr/local/lib/python3.10/dist-packages/ducktape/cluster/remoteaccount.py", line 281, in ssh\n    raise RemoteCommandError(self, cmd, exit_status, stderr.read())\nducktape.cluster.remoteaccount.RemoteCommandError: root@docker-rp-24: Command \'TEST_KAFKA_VERSION=3.0.0 TESTS=0026 RDKAFKA_TEST_CONF=/mnt/librdkafka_tests/test.conf KAFKA_VERSION=3.0.0 KAFKA_PATH=/opt/kafka-3.0.0 BROKERS=docker-rp-23:9092,docker-rp-22:9092,docker-rp-21:9092 /opt/librdkafka/tests/test-runner > /mnt/librdkafka_tests/rdkafka_test.log 2>&1\' returned non-zero exit status 134. Remote error message: b\'bash: line 1:  2574 Aborted                 (core dumped) TEST_KAFKA_VERSION=3.0.0 TESTS=0026 RDKAFKA_TEST_CONF=/mnt/librdkafka_tests/test.conf KAFKA_VERSION=3.0.0 KAFKA_PATH=/opt/kafka-3.0.0 BROKERS=docker-rp-23:9092,docker-rp-22:9092,docker-rp-21:9092 /opt/librdkafka/tests/test-runner > /mnt/librdkafka_tests/rdkafka_test.log 2>&1\\n\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/usr/local/lib/python3.10/dist-packages/ducktape/services/background_thread.py", line 38, in _protected_worker\n    self._worker(idx, node)\n  File "/root/tests/rptest/services/librdkafka_test_case.py", line 66, in _worker\n    assert False\nAssertionError\n')
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 476, in wrapper
    return functools.partial(f, *args, **kwargs)(*w_args, **w_kwargs)
  File "/root/tests/rptest/services/cluster.py", line 35, in wrapped
    r = f(self, *args, **kwargs)
  File "/root/tests/rptest/utils/mode_checks.py", line 63, in f
    return func(*args, **kwargs)
  File "/root/tests/rptest/tests/librdkafka_test.py", line 75, in test_librdkafka
    tc.wait()
  File "/usr/local/lib/python3.10/dist-packages/ducktape/services/background_thread.py", line 74, in wait
    self._propagate_exceptions()
  File "/usr/local/lib/python3.10/dist-packages/ducktape/services/background_thread.py", line 100, in _propagate_exceptions
    raise Exception(self.errors)
Exception: LibrdkafkaTestcase-0-140073870776048-worker-1: Traceback (most recent call last):
  File "/root/tests/rptest/services/librdkafka_test_case.py", line 59, in _worker
    node.account.ssh(
  File "/usr/local/lib/python3.10/dist-packages/ducktape/cluster/remoteaccount.py", line 281, in ssh
    raise RemoteCommandError(self, cmd, exit_status, stderr.read())
ducktape.cluster.remoteaccount.RemoteCommandError: root@docker-rp-24: Command 'TEST_KAFKA_VERSION=3.0.0 TESTS=0026 RDKAFKA_TEST_CONF=/mnt/librdkafka_tests/test.conf KAFKA_VERSION=3.0.0 KAFKA_PATH=/opt/kafka-3.0.0 BROKERS=docker-rp-23:9092,docker-rp-22:9092,docker-rp-21:9092 /opt/librdkafka/tests/test-runner > /mnt/librdkafka_tests/rdkafka_test.log 2>&1' returned non-zero exit status 134. Remote error message: b'bash: line 1:  2574 Aborted                 (core dumped) TEST_KAFKA_VERSION=3.0.0 TESTS=0026 RDKAFKA_TEST_CONF=/mnt/librdkafka_tests/test.conf KAFKA_VERSION=3.0.0 KAFKA_PATH=/opt/kafka-3.0.0 BROKERS=docker-rp-23:9092,docker-rp-22:9092,docker-rp-21:9092 /opt/librdkafka/tests/test-runner > /mnt/librdkafka_tests/rdkafka_test.log 2>&1\n'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/ducktape/services/background_thread.py", line 38, in _protected_worker
    self._worker(idx, node)
  File "/root/tests/rptest/services/librdkafka_test_case.py", line 66, in _worker
    assert False
AssertionError

@mmaslankaprv
Copy link
Member Author

Each failed test should have librdkafka logs available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-disabled-test kind/enhance New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants