You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reliably reproducing a bulk import that writes data to the wrong shard.
OSX, InfluxDB from master @ b50d955; same behavior observed on 1.0.2 open source.
Start with a clean database, preferably with monitoring disabled to avoid creating _internal database (use environment variable INFLUXDB_MONITOR_STORE_ENABLED=false)
Querying specifically for location='santa_monica' with no time range returns the correct results:
> SELECT "water_level" FROM "h2o_feet" WHERE "location"='santa_monica' limit 6
name: h2o_feet
time water_level
---- -----------
2015-08-18T00:00:00Z 2.064
2015-08-18T00:06:00Z 2.116
2015-08-18T00:12:00Z 2.028
2015-08-18T00:18:00Z 2.126
2015-08-18T00:24:00Z 2.041
2015-08-18T00:30:00Z 2.051
But then querying with explicit time bounds, lined up with the previous results, incorrectly returns no results:
> SELECT "water_level" FROM "h2o_feet" WHERE "location"='santa_monica' AND time >= '2015-08-18T00:00:00Z' AND time <= '2015-08-18T00:30:00Z'
Okay, what if we pick a specific value to match, and supply a time range? We see a later value when we supply a time range beyond those initial six results:
> SELECT "water_level", location FROM "h2o_feet" where (water_level = 2.028) AND location = 'santa_monica' AND time < '2015-08-19T00:00:00Z'
> SELECT "water_level", location FROM "h2o_feet" where (water_level = 2.028) AND location = 'santa_monica' AND time < '2015-08-29T00:00:00Z'
name: h2o_feet
time water_level location
---- ----------- --------
2015-08-28T21:00:00Z 2.028 santa_monica
And if we extend the upper time bound far enough, we eventually get the result from 2015-08-18, indicating that the results for 2015-08-18 are contained in the wrong shard:
I am reliably reproducing a bulk import that writes data to the wrong shard.
OSX, InfluxDB from master @ b50d955; same behavior observed on 1.0.2 open source.
_internal
database (use environment variableINFLUXDB_MONITOR_STORE_ENABLED=false
)Querying specifically for
location='santa_monica'
with no time range returns the correct results:But then querying with explicit time bounds, lined up with the previous results, incorrectly returns no results:
Okay, what if we pick a specific value to match, and supply a time range? We see a later value when we supply a time range beyond those initial six results:
And if we extend the upper time bound far enough, we eventually get the result from 2015-08-18, indicating that the results for 2015-08-18 are contained in the wrong shard:
I'm out of the office Wednesday the 19th, but @desa and @rkuchan both have context if additional info is needed.
The text was updated successfully, but these errors were encountered: