Skip to content

Aggregation Timeout #316

Open
Open
@Lazarus404

Description

@Lazarus404

Hi guys,

I'm getting an error when performing an aggregation on a lot of data

    ** (exit) an exception was raised:
        ** (Mongo.Error) tcp recv: unknown POSIX error - :timeout
            (mongodb) lib/mongo/cursor.ex:154: anonymous fn/5 in 
    Enumerable.Mongo.AggregationCursor.start_fun/5
            (elixir) lib/stream.ex:1392: anonymous fn/5 in Stream.resource/3
            (elixir) lib/enum.ex:2507: Enum.take/2

I've tried passing cursor_timeout: false, timeout: 30_000, pool_timeout: 30_000 to the aggregate options, but nothing fixes it. The documentation doesn't state what and where timeout values should be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions