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

"time" format not applied to running_time in cat tasks api #57502

Closed
sewi-cpan opened this issue Jun 2, 2020 · 1 comment
Closed

"time" format not applied to running_time in cat tasks api #57502

sewi-cpan opened this issue Jun 2, 2020 · 1 comment
Labels
>bug needs:triage Requires assignment of a team area label

Comments

@sewi-cpan
Copy link

Elasticsearch version (bin/elasticsearch --version):
6.6.0 and 7.6.1, following answers based on 7.6.1

Plugins installed: []

JVM version (java -version):
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)

OS version (uname -a if on a Unix-like system):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
Linux 5.3.0-51-generic #44-Ubuntu SMP Wed Apr 22 21:09:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:
The cat tasks api ignores any time format given. The content of the "running_time" column is always "human readable".

Steps to reproduce:
Working example:

http://localhost:9200/_cat/nodes?v&h=uptime
uptime
  7.5m
http://localhost:9200/_cat/nodes?time=s&v&h=uptime
uptime
   455
http://localhost:9200/_cat/nodes?time=ms&v&h=uptime
uptime
457067

Bug example:

http://localhost:9200/_cat/tasks?v&h=running_time
running_time
209micros
52.5micros
http://localhost:9200/_cat/tasks?time=s&v&h=running_time
running_time
187.6micros
35micros
http://localhost:9200/_cat/tasks?time=ms&v&h=running_time
running_time
248.7micros
58.7micros

Also happens with more and longer (>1s) running tasks.

Please include a minimal but complete recreation of the problem,
including (e.g.) index creation, mappings, settings, query etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.

  1. Start Elasticsearch
  2. http://localhost:9200/_cat/tasks?time=s&v&h=running_time

Provide logs (if relevant):

@sewi-cpan sewi-cpan added >bug needs:triage Requires assignment of a team area label labels Jun 2, 2020
@gaobinlong
Copy link
Contributor

Same to #54554, the problem has been resolved by #54536, so maybe this issue and #54554 can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug needs:triage Requires assignment of a team area label
Projects
None yet
Development

No branches or pull requests

2 participants