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

Intermittent test failure in test_describe_configs_topic_resource_returns_configs #1929

Open
jeffwidman opened this issue Oct 12, 2019 · 1 comment

Comments

@jeffwidman
Copy link
Collaborator

jeffwidman commented Oct 12, 2019

Noticed that two test runs failed on one of the travis builds:

topic = 'test_describe_configs_topic_resource_returns_configs_nXpHTvKOpm'
kafka_admin_client = <kafka.admin.client.KafkaAdminClient object at 0x7f47e3367250>
    @pytest.mark.skipif(env_kafka_version() < (0, 11), reason="Describe config features require broker >=0.11")
    def test_describe_configs_topic_resource_returns_configs(topic, kafka_admin_client):
        """Tests that describe config returns configs for topic
        """
        configs = kafka_admin_client.describe_configs([ConfigResource(ConfigResourceType.TOPIC, topic)])
    
        assert len(configs) == 1
        assert configs[0].resources[0][2] == ConfigResourceType.TOPIC
        assert configs[0].resources[0][3] == topic
>       assert len(configs[0].resources[0][4]) > 1
E       assert 0 > 1
E        +  where 0 = len([])
test/test_admin_integration.py:108: AssertionError

I suspect (but have not verified) that this is a race condition where the topic or config resource is in the midst of being created, but simply hasn't completed by the time it's checked.

@dpkp
Copy link
Owner

dpkp commented Dec 29, 2019

Let's skip this test until we have a solution. I've also seen several of these. (I've marked it as xfail for now)

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

No branches or pull requests

2 participants