influxdb/tsdb
Edd Robinson 3588c0505e fix(storage): don't remap renamed TSM file
There exists a possibility for an in-flight read on a TSMReader to read
a stale reference to an mmapped TSM file index, which has become
unmapped.

This commit resolves that issue by simply renaming the file, leaving the
original file handler open and the data mapped. The path is updated so
that if any callers need to refer to the name of the TSM file after it's
renamed, the new name will be reflected.

The orphaned file handler will be closed when the TSM file is closed.
2019-05-03 22:36:35 +01:00
..
cursors feat(storage): Teach TagKeys, TagValues how to accumulate statistics 2019-04-24 11:14:22 -07:00
internal Integrate scanned values statistics tracking. 2018-11-28 15:32:06 -07:00
testdata Update tsdb package from OSS 2018-10-01 12:08:37 +01:00
tsi1 chore(log): Put trace_id back in logs (#13712) 2019-04-30 18:51:22 -07:00
tsm1 fix(storage): don't remap renamed TSM file 2019-05-03 22:36:35 +01:00
value refactor: move value package up to tsdb 2019-02-04 10:32:52 -07:00
config.go Improve bulk series file writes. 2019-04-05 14:38:58 -06:00
cursor.go feat(tsdb): Teach storage how to only decode timestamps from a block 2019-04-18 16:19:18 -07:00
errors.go tsdb: cleanup shard errors 2019-02-18 21:25:30 +08:00
explode.go Merge point parse & explode. 2019-04-24 10:12:15 -06:00
explode_test.go Merge point parse & explode. 2019-04-24 10:12:15 -06:00
index.go Fix typos in tsdb package 2019-04-17 12:55:38 -07:00
index_test.go Merge point parse & explode. 2019-04-24 10:12:15 -06:00
meta.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
meta_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
metrics.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
metrics_test.go feat(influxd): Tracing refactor (#12318) 2019-03-04 11:48:11 -08:00
series_collection.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_collection_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_file.go chore(log): Put trace_id back in logs (#13712) 2019-04-30 18:51:22 -07:00
series_file_test.go feat(influxd): Tracing refactor (#12318) 2019-03-04 11:48:11 -08:00
series_id.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_id_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_index.go Improve bulk series file writes. 2019-04-05 14:38:58 -06:00
series_index_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_partition.go chore(log): Put trace_id back in logs (#13712) 2019-04-30 18:51:22 -07:00
series_partition_test.go Improve bulk series file writes. 2019-04-05 14:38:58 -06:00
series_segment.go Fix typos in tsdb package 2019-04-17 12:55:38 -07:00
series_segment_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_set.go Remove copy-on-write when caching bitmaps 2019-01-25 13:38:22 +00:00
series_set_test.go Remove copy-on-write when caching bitmaps 2019-01-25 13:38:22 +00:00