Skip to content

each call to ElasticClient.Index uses up a file descriptor #2417

@mhowlett

Description

@mhowlett

NEST/Elasticsearch.Net version:

5.0.0-rc3 from nuget

Elasticsearch version:

docker image: elasticsearch:5.0.1

Description of the problem including expected versus actual behavior:

Every time I call .Index, or .IndexAsync on ElasticClient it uses up a file descriptor (opens a TCP connection and leaves it open). My process soon quits.

Steps to reproduce:

i'm running .NET Core 1.1 on linux (dotnet:latest docker image).

  var settings = new ConnectionSettings(new Uri($"http://{elasticHost}:9200"))
    .DefaultIndex("myindex");
  var ec = new Nest.ElasticClient(settings);

    ...

  var r = ec.Index(elasticSummary);

Provide ConnectionSettings (if relevant):

as above

Provide DebugInformation (if relevant):

lsof -a -p [pid] 
...
dotnet  22944 root  203u  sock    0,8      0t0 738704 protocol: TCP
...
etc.

nothing relevant is logged by elastic search (using default settings in docker image).

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