$ dn build --assetroot=/poseidon/stor/dragnet/assets --interval=hour --after=2016-01-11T23:00:00Z --before=2016-01-12T00:00:00Z muskie_logs
using existing asset: "/poseidon/stor/dragnet/assets/dragnet-0.0.4.tgz"
submitted job b042e2c4-6645-ee86-c8d0-b0240dcfda5a
submitted 2 inputs
indexes for "muskie_logs" built
Note that it's an hourly index. The index file looks fine -- at least it has data in it for the specified interval. But querying it shows no results:
$ dn query muskie_logs --assetroot=/poseidon/stor/dragnet/assets --interval=hour --after=2016-01-11T23:55:00Z --before=2016-01-12T02:00:00Z
note: skipping index check (not yet implemented)
using existing asset: "/poseidon/stor/dragnet/assets/dragnet-0.0.4.tgz"
submitted job b90f86f3-1007-4d2c-b9cd-9dd08e587cb7
submitted 1 inputs
VALUE
0
The reason is that Manta job runs the file-based "dn query", but without specifying --interval=hour, so we end up looking for a daily index, find none, and then report nothing:
# LOG_LEVEL=trace dn query --counters --points input --before "2016-01-12T00:00:00.000Z" --after "2016-01-11T23:55:00.000Z" < /dev/null | bunyan
[2016-01-12T18:13:36.234Z] TRACE: dragnet/statter/32280 on 0436b820-a8e9-4b75-8d8d-fd863ef80c6d: stat "/manta/poseidon/stor/dragnet/muskie_logs/by_day/2016-01-11.sqlite"
PathEnumerator noutputs: 2
[2016-01-12T18:13:36.238Z] TRACE: dragnet/statter/32280 on 0436b820-a8e9-4b75-8d8d-fd863ef80c6d: emitting EOF signal
FindStart ninputs: 1
[2016-01-12T18:13:36.238Z] TRACE: dragnet/traverser/32280 on 0436b820-a8e9-4b75-8d8d-fd863ef80c6d: emitting EOF signal
FindStart noutputs: 1
[2016-01-12T18:13:36.239Z] TRACE: dragnet/feedback/32280 on 0436b820-a8e9-4b75-8d8d-fd863ef80c6d: read EOF signal: ending statter
{"fields":{},"value":0}
FindStatter badstat: 1
FindStatter ninputs: 2
FindStatter noutputs: 1
FindTraverser ninputs: 1
FindTraverser noutputs: 1
FindFeedback ninputs: 1
Index Result Aggregator noutputs: 1
Note that the file we stat'd is for the daily index, which is the wrong thing here.
I created this datasource and metric:
I built indexes with:
Note that it's an hourly index. The index file looks fine -- at least it has data in it for the specified interval. But querying it shows no results:
The reason is that Manta job runs the file-based "dn query", but without specifying --interval=hour, so we end up looking for a daily index, find none, and then report nothing:
Note that the file we stat'd is for the daily index, which is the wrong thing here.