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

ValueError: min() arg is an empty sequence in CreateTopicUpgradeTest.test_retention_config_on_upgrade_from_v22_2_to_v22_3 #11182

Closed
bharathv opened this issue Jun 3, 2023 · 8 comments · Fixed by #11756
Assignees
Labels

Comments

@bharathv
Copy link
Contributor

bharathv commented Jun 3, 2023

https://buildkite.com/redpanda/redpanda/builds/30508#01887e80-df22-4183-8ad6-e39e8b766def
https://ci-artifacts.dev.vectorized.cloud/redpanda/30508/01887e80-df22-4183-8ad6-e39e8b766def/vbuild/ducktape/results/2023-06-02--001/report.html

Module: rptest.tests.topic_creation_test
Class:  CreateTopicUpgradeTest
Method: test_retention_config_on_upgrade_from_v22_2_to_v22_3
test_id:    rptest.tests.topic_creation_test.CreateTopicUpgradeTest.test_retention_config_on_upgrade_from_v22_2_to_v22_3
status:     FAIL
run time:   15.111 seconds


    ValueError('min() arg is an empty sequence')
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 "/root/tests/rptest/services/cluster.py", line 79, in wrapped
    r = f(self, *args, **kwargs)
  File "/root/tests/rptest/utils/mode_checks.py", line 95, in f
    return func(*args, **kwargs)
  File "/root/tests/rptest/tests/topic_creation_test.py", line 622, in test_retention_config_on_upgrade_from_v22_2_to_v22_3
    self._populate_tiered_storage_topic("test-si-topic-with-retention",
  File "/root/tests/rptest/tests/topic_creation_test.py", line 528, in _populate_tiered_storage_topic
    wait_for_local_storage_truncate(self.redpanda,
  File "/root/tests/rptest/util.py", line 271, in wait_for_local_storage_truncate
    wait_until(is_truncated, timeout_sec=timeout_sec, backoff_sec=1)
  File "/usr/local/lib/python3.10/dist-packages/ducktape/utils/util.py", line 53, in wait_until
    raise e
  File "/usr/local/lib/python3.10/dist-packages/ducktape/utils/util.py", line 44, in wait_until
    if condition():
  File "/root/tests/rptest/util.py", line 255, in is_truncated
    first_segment = min(node_partition.segments.values(),
ValueError: min() arg is an empty sequence
@andijcr
Copy link
Contributor

andijcr commented Jun 5, 2023

@andijcr
Copy link
Contributor

andijcr commented Jun 7, 2023

@andijcr andijcr self-assigned this Jun 8, 2023
@twmb
Copy link
Contributor

twmb commented Jun 11, 2023

@ztlpn
Copy link
Contributor

ztlpn commented Jun 14, 2023

@michael-redpanda
Copy link
Contributor

@ztlpn
Copy link
Contributor

ztlpn commented Jun 16, 2023

@travisdowns travisdowns changed the title ValueError: min() arg is an empty sequence in topic_creation_test.CreateTopicUpgradeTest.test_retention_config_on_upgrade_from_v22_2_to_v22_3 ValueError: min() arg is an empty sequence in CreateTopicUpgradeTest.test_retention_config_on_upgrade_from_v22_2_to_v22_3 Jun 20, 2023
@travisdowns
Copy link
Member

FAIL test: CreateTopicUpgradeTest.test_retention_config_on_upgrade_from_v22_2_to_v22_3 (1/13 runs)
failure at 2023-06-20T16:29:25.828Z: ValueError('min() arg is an empty sequence')
on (amd64, container) in job https://buildkite.com/redpanda/redpanda/builds/31657#0188d968-f1d7-41a4-bf89-bf83d46ac0df

@jcsp
Copy link
Contributor

jcsp commented Jun 27, 2023

The truncation check races with the election of the partition leader, it hits a node while there are no segments on disk.

The handling of segment-less results should have been fixed in the just-merged:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
7 participants