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
Found three ways that TSM files are removed: delete shard, retention policy, and compaction.
This bug affects delete shard and retention policy, which both remove the entire shard.
Compaction doesn't remove the entire shard, it operates within a shard. When compaction converts n old TSM files into 1 new TSM file, it tries to close the old files, and add any currently-referenced TSM file to a purger, which closes and removes the file later.
That approach could work here, but perhaps should be managed at the Store level. A hung query could cause the open file to stay open until the service is shut down, and Store.Close() can be used to force queued files to be closed and removed.
Not sure if drop shard X should receive a partial error when TSM files are queued, rather than actually closed and removed. It would be nice to implement the drop shard and retention by simply queueing all shard deletes.
InfluxDB current master 28-apr-2018 running on current MacOS.
The service removes, but does not close, TSM files when a shard is dropped while the TSM files are in use by a query.
select sum(foo) from m
takes a long time to completedrop shard X
ls
lsof -p PID
shows shard .tsm files still openlsof
still shows .tsm files openThe text was updated successfully, but these errors were encountered: