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

Lost statement series in influxdb #459

Closed
mdaguete opened this issue Jun 5, 2020 · 4 comments
Closed

Lost statement series in influxdb #459

mdaguete opened this issue Jun 5, 2020 · 4 comments
Labels
bug Something isn't working influxdb Issue affects InfluxDB

Comments

@mdaguete
Copy link
Contributor

mdaguete commented Jun 5, 2020

Hi,

I,m testing v1.1.0 with influxdb 1.7.10 and grafana 6.7.4. It seems with queries with multiple statements per query only the first stament series is retained in cache after the first refresh. The problem seems to be in the sort call at the end of merge function, if I disable it then it seems to work if I don't change the query window.

This is the cache content in the first time ( all series values deleted on editing)

{"results":[
  {"statement_id":0,"series":[{"name":"memory/limit","columns":["time","mean"],"values":[[1591345200000,134217728],....
  {"statement_id":1,"series":[{"name":"memory/request","columns":["time","mean"],"values":[[1591345200000,134217728],....
  {"statement_id":2,"series":[{"name":"memory/usage","columns":["time","mean"],"values":[[1591345200000,12496896],...
  "step":30000000000,
  "extents":[{"start":"2020-06-05T10:20:00+02:00","end":"2020-06-05T11:18:55+02:00"}]
}

After refreshing this is the content:

{"results":[
  {"statement_id":0,"series":[{"name":"memory/limit","columns":["time","mean"],"values":[[1591345200000,134217728]../
  {"statement_id":1},
  {"statement_id":2}]
  ,"step":30000000000,
  "extents":[{"start":"2020-06-05T10:20:00+02:00","end":"2020-06-05T11:18:55+02:00"},{"start":"2020-06-05T11:19:00+02:00","end":"2020-06-05T11:25:55+02:00"}]
  }

My trickster config is:

[frontend]
  listen_port = 8086
[caches]
    [caches.default]
        cache_type = 'filesystem'
    [caches.default.filesystem]
        cache_path = '/tmp/trickster'
    [caches.default.index]
        flush_interval_secs = 1
        reap_interval_secs = 1
[origins]
    [origins.default]
        is_default= true
        cache_key_prefix = 'pref'
        origin_type = 'influxdb'
        hosts = ['localhost']
        origin_url = 'https://localhost:9086/'
        timeseries_retention_factor = 40960
        fastforward_ttl_secs = 2
        multipart_ranges_disabled = true
        backfill_tolerance_secs = 65
        fast_forward_disable=true
    [origins.default.tls]
        insecure_skip_verify = true
[logging]
    log_level = 'info'

How can I avoid this problem ?

Thanks.

@jranson
Copy link
Member

jranson commented Jun 5, 2020

@mdaguete thanks for the report and such a detailed analysis. Quick question - did you use 1.0 and are finding it is a new behavior in 1.1? Thanks!

@mdaguete
Copy link
Contributor Author

mdaguete commented Jun 5, 2020

@jranson Yes 1.0 the same behaviout. I'm testing a patch and I'll submit a pr after some test.

@jranson jranson added bug Something isn't working influxdb Issue affects InfluxDB labels Jun 5, 2020
@jranson
Copy link
Member

jranson commented Jun 19, 2020

hey @mdaguete thanks again for #460 (what a great catch!), which was included in v1.1.2. Can you let us know that positively fixed up your corresponding issue here? Thanks!

@jranson
Copy link
Member

jranson commented Sep 18, 2020

closing due to no response over 3 months.

@jranson jranson closed this as completed Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working influxdb Issue affects InfluxDB
Projects
None yet
Development

No branches or pull requests

2 participants