Skip to content

Caching in 0.10.0-rc1 is returning wrong values #4093

@ghost

Description

This issue is not present in 0.9.2

This can be replicated with the wikiticker quickstart. Once this data is loaded, execute the following 2 queries :

{
    "queryType": "timeseries",
    "dataSource": "wikiticker",
    "granularity": "all",
    "aggregations": [
        {"type": "longSum", "name": "count", "fieldName": "count"},
        {"type": "longSum", "name": "added", "fieldName": "added"}
    ],
    "intervals": [ "2016/2018" ]
}

This return the correct values

[ {
  "timestamp" : "2016-06-27T00:00:11.080Z",
  "result" : {
    "count" : 11774265,
    "added" : 24433
  }
} ]

Then execute the following query (it's identical other than the order of the aggregations)

{
    "queryType": "timeseries",
    "dataSource": "wikiticker",
    "granularity": "all",
    "aggregations": [
        {"type": "longSum", "name": "added", "fieldName": "added"},
        {"type": "longSum", "name": "count", "fieldName": "count"}
    ],
    "intervals": [ "2016/2018" ]
}

Yields the following.

[ {
  "timestamp" : "2016-06-27T00:00:11.080Z",
  "result" : {
    "count" : 24433,
    "added" : 11774265
  }
} ]

The values returned have been "switched". With "count" incorrectly showing the "added" value in the result, and vice versa.

Disabling caching on both the historical and the broker removes the problem. If caching is on either the broker or the historical then the error returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions