Skip to content

Translog reader didn't release file handler, nearly millions translog still opened, with new translog keep flushing #48730

@wangkhc

Description

@wangkhc

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

JVM version (java -version):
openjdk version "11.0.3-AJDK" 2019-03-09

OS version (uname -a if on a Unix-like system):
Linux es-cn-mp91cp7gj0001pi7e-def6a525-0002 3.10.0-327.ali2010.rc6.alios7.x86_64 #1 SMP Tue May 23 13:42:10 CST 2017 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

  1. Millions of translog file opened containing files created serveral days ago, which should be trimmed.
  2. this node has thousands of shards (2c8g vm)
  3. indexing already stopped by user, but still no help.

Steps to reproduce:
this is from aliyun es customer, we didn't figure out how did it happened.

snapshot : lsof translog-3.tlog

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions