influxdb/integration
John Shahid 1f5f5cb789 Don't write points if they are too old
Background of the bug: Prior to this patch we actually tried writing
points that were older than the retention period of the shard. This
caused race condition when it came to writing points to a shard that's
being dropped, which will happen frequently if the user is loading old
data (by accident). This is demonstrated in the test in this commit.This
bug was previously addressed in #985. It turns the fix for #985 wasn't
enough. A user reported in #1078 that some shards are left behind and
not deleted.

It turns out that while the shard is being dropped more write
requests could come in and end up on line `cluster/shard.go:195` which
will cause the datastore to create a shard on disk that isn't tracked
anywhere in the metadata. This shard will live forever and never get
deleted. This fix address this issue by not writing old points in, but
there are still some edge cases with the current implementation, at
least not as bad as current master.

Close #1078
2014-11-03 17:28:47 -05:00
..
helpers Don't write points if they are too old 2014-11-03 17:28:47 -05:00
continuous_queries_test.go Make the error message clear when a series is missing 2014-10-23 12:23:42 -04:00
coordinator_test.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
data_test.go Support joining multiple series using regex or list 2014-10-31 14:49:48 -04:00
database_conf.json Move load database config to API 2014-08-01 16:09:00 -04:00
database_conf_invalid.json Add invalid config file that should have been in #861. Whoops, sorry @jvshaid. 2014-09-02 13:49:37 -04:00
doc.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
engine_test.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
init_test.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
late_join_test.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
legacy_data_test.go Return the merged data using the alias 2014-10-21 17:57:13 -04:00
migration_test.go Fixes #868, panic on upgrades. 2014-09-03 10:40:51 -04:00
migration_test.toml Add support for "syslog" logging 2014-09-03 21:41:56 +02:00
migration_test2.toml Fixes #868, panic on upgrades. 2014-09-03 10:40:51 -04:00
missing_points_test.go rename a test file 2014-10-21 17:57:13 -04:00
multiple_servers_test.go Make the error message clear when a series is missing 2014-10-23 12:23:42 -04:00
remove_node_test.go Don't use the same server id more than once 2014-10-07 18:32:14 -04:00
replication_factor_test.go Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00
single_server_test.go Don't write points if they are too old 2014-11-03 17:28:47 -05:00
test_config1.toml don't enable raft debug log by default 2014-10-31 14:50:04 -04:00
test_config2.toml don't enable raft debug log by default 2014-10-31 14:50:04 -04:00
test_config3.toml don't enable raft debug log by default 2014-10-31 14:50:04 -04:00
test_config_single.toml Revert "Use rocksdb in the data test suite" (info below) 2014-10-29 16:52:00 -04:00
test_missing_points1.toml Fix #690. Use idiomatic go project structure 2014-07-14 18:47:37 -04:00
test_missing_points2.toml Fix #690. Use idiomatic go project structure 2014-07-14 18:47:37 -04:00
test_missing_points3.toml Fix #690. Use idiomatic go project structure 2014-07-14 18:47:37 -04:00
test_rf_1.toml Add a test for the shard expiration 2014-08-07 13:09:53 -04:00
test_rf_2.toml Add a test for the shard expiration 2014-08-07 13:09:53 -04:00
test_ssl_only.toml Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00