Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v2): metastore index (grafana#3586)
* Move error checking elsewhere * Add metastore index (wip) * Fix a few bugs and tests * Remove unneeded file * Fix race condition * Enable new write path for local deployments * Return level 0 blocks, remove duplicates * Add simple logging * Remove unused var * Refactor out metastore index, add partition meta * Refactor, minor perf improvements * Fix local setup for v2 * Replace block truncation with block retention * Refactor some more * Add tests, basic config * Add documentation * Add todo * Remove unused struct field tags * Add todo * Run make fmt * Run make fmt * Allow longer queries in v2 locally * Add test for changing the partition duration * Update test * Address issue with finding / deleting blocks following a partition duration change * Add test cases * Remove nested locking primitives * Remove index/models.go * Improve error handling in ForEachPartition * Fix access without a lock * Validate block ids at the API level * Improve FindBlocksInRange, add tests * Switch to a LRU cache for loaded partitions * Load partition meta on the fly * Add logging * Load the active partition in memory on startup * Switch away from using a LRU cache for loaded partitions * Switch the index to a partition+tenant structure * Fix nil pointer dereference error on startup * Fix compile error * Update cache entry access ts on reads * Add missing tenant check * Run make fmt * Fix panic in query frontend * Fixed issue with unreachable anonymous blocks
- Loading branch information