Tal Levy
c0c7e02de4
fix javadoc usage
2017-12-11 16:24:44 -08:00
Tal Levy
288515ddc5
initial attempt towards an ordered execution plan for timeseries phases ( #3248 )
...
* initial attempt towards an ordered execution plan for timeseries phases
* respond to feedback and fix bug
2017-12-07 11:59:31 -08:00
Tal Levy
ae7e4882e4
general indexlifecycle cleanup, rest tests, reintroduce integ-test ( #3243 )
...
* cleanup, rest tests, reintroduce integ-test
- cleaned up some long lines
- re-introduced one of the integration tests
- added rest-spec tests
2017-12-06 07:51:06 -08:00
Tal Levy
d847355b58
add timeseries policy action stubs ( #3214 )
2017-12-05 09:09:18 -08:00
Tal Levy
685231e786
Introduce specific types of index lifecycle policies ( #3157 )
...
Introduce specific types of index lifecycle policies
2017-11-30 10:09:41 -08:00
Colin Goodheart-Smithe
922060d766
Typo
2017-11-27 15:46:47 +00:00
Colin Goodheart-Smithe
7199e2fa5c
Small refactoring
2017-11-27 12:32:55 +00:00
Colin Goodheart-Smithe
87766cd4ef
Adds JavaDocs and comments and small refactoring
2017-11-27 12:22:10 +00:00
Colin Goodheart-Smithe
9ab2121fcf
When actions complete the next action is now run
2017-11-27 11:07:26 +00:00
Colin Goodheart-Smithe
152d5d45e5
Adds listeners to Lifecycle actions
...
This means that the result of the action can now be async and we can then implement moving immediately to the next action if the current one is complete
2017-11-24 19:27:50 +00:00
Colin Goodheart-Smithe
26ad2142d5
minor tweak
2017-11-24 17:29:38 +00:00
Colin Goodheart-Smithe
9e891de777
refactors code to allow better testing
...
The client and index metadata have now been abstracted away from the Lifecycle classes behind IndexLifecycleContext. This allow us to test the state machine without having to worry about how the state is persisted and read. It also makes the classes much easier to read and reason about.
2017-11-24 17:22:51 +00:00
Colin Goodheart-Smithe
e113189347
only creates initialisation service ifeature is enabled
2017-11-24 10:23:04 +00:00
Colin Goodheart-Smithe
06958949ab
Uses LongSupplier for nowSupplier
...
Rather than Supplier<Long>. This is in line with the `nowSupplier`s used in other areas of Elasticsearch
2017-11-24 10:18:06 +00:00
Colin Goodheart-Smithe
31ded906d0
Adds settings checking to tests
...
This isn’t an ideal solution so might well be temporary but at least the tests are checking the settings changes are correct now
2017-11-24 10:10:46 +00:00
Colin Goodheart-Smithe
016ba2a57d
Adds another test
...
This test needs more work
2017-11-24 09:40:32 +00:00
Colin Goodheart-Smithe
49b2aaa878
Adds more tests
2017-11-23 18:16:47 +00:00
Colin Goodheart-Smithe
75704510e1
More test changes
2017-11-23 15:48:37 +00:00
Colin Goodheart-Smithe
a9703d4a56
Mutes failing integration test for now
2017-11-23 14:12:31 +00:00
Colin Goodheart-Smithe
0e829843fc
More unit tests
2017-11-23 14:11:09 +00:00
Colin Goodheart-Smithe
db502bef6d
Adds some unit tests
2017-11-23 12:44:12 +00:00
Colin Goodheart-Smithe
f571dc3000
Remove references to InternalClient which no longer exists
2017-11-23 10:35:25 +00:00
Colin Goodheart-Smithe
a3adcb680d
Trying to get the test working
2017-11-23 10:00:23 +00:00
Colin Goodheart-Smithe
9cba84b6fc
Obeys the after parameter on phases excpet the first
2017-11-22 16:09:04 +00:00
Colin Goodheart-Smithe
3f0cf05dcc
Started writing/reading phase and action settings
2017-11-22 13:26:05 +00:00
Colin Goodheart-Smithe
a26a5969dd
iterates over index and executes correct policy
2017-11-22 10:30:21 +00:00
Colin Goodheart-Smithe
eba5afefb7
Gets the scheduler to use poll_interval
2017-11-21 16:54:28 +00:00
Colin Goodheart-Smithe
3f3f7b9b47
Adds PUT/GET/DELETE lifecycle APIs
...
The lifecycles are stored as custom metadata objects in the cluster state. This change also cleans up the parsing of the lifecycle state so that it can be parsed properly
2017-11-21 15:55:45 +00:00
Tal Levy
1fad59b295
tal-temp migration to not use settings for the lifecycle policy
2017-11-17 09:22:54 -07:00
Tal Levy
dd6d192e25
cleanup tests
2017-10-31 17:39:25 -07:00
Colin Goodheart-Smithe
c393944dc0
Adds settings, phase and action objects which control how and when things are executed
2017-10-31 15:30:42 +00:00
Tal Levy
3455445d2c
add integration test to indexlifecyclemanagement
...
This test verifies that we have sufficient failover code so that
a newly elected master re-registers old schedules and fires them off.
All times are relative to the index creation date.
2017-10-30 17:51:01 -07:00
Tal Levy
de4d87c6e6
test
2017-10-26 15:32:08 -07:00
Colin Goodheart-Smithe
4aaec2ef81
Creates a new X-Pack feature for index lifecycle
...
Feature consists of a shell of a persistant task which will later be used to inspect the index settings and apply curator like changes to the index (move from hot to warm, rollover, shrink etc.)
2017-10-12 16:22:42 +01:00