Skip to content

Connection error with parallel testing #1709

Open
@mahmoudyusof

Description

@mahmoudyusof

Describe the feature:

Elasticsearch version (bin/elasticsearch --version): 7.14.1

elasticsearch-py version (elasticsearch.__versionstr__): 7.14.1

Description of the problem including expected versus actual behavior: When running tests sequentially using pytest everything works fine, however, once I try to run tests in parallel using pytest -n=4 I get the following error:
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f201879e978>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f201879e978>: Failed to establish a new connection: [Errno 111] Connection refused)
I make sure before every test that the elasticsearch server is running, after this error I check the server status to see that is failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions