Commit 6a8be2e
authored
[Transform] Associate legacy audit index (elastic#136508) (elastic#136622)
If a user manually creates the legacy audit index,
TransformClusterStateListener will automatically add the non-legacy
alias to forward messages to it. If the transform feature had never been
accessed before (for example after the feature is reset), then the next
time the auditor is called, it will associate with the existing legacy
index rather than the notifications index.
We cannot cleanly block users from manually creating system or hidden
indices (yet), but we can associate the legacy index with the transform
feature so that a feature reset will delete the legacy index (like it
does with the notifications index). The next time the transform feature
is used, it will automatically create the notifications index rather
than reusing the legacy index.
Resolve elastic#1212411 parent 44f1173 commit 6a8be2e
File tree
3 files changed
+11
-4
lines changed- docs/changelog
- x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform
3 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
545 | | - | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
439 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
| |||
0 commit comments