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
[Transform] Rename internal indexes for transform plugin (#47788) (#47900)
rename internal indexes of transform plugin
- rename audit index and create an alias for accessing it, BWC: add an alias for old indexes to
keep them working, kibana UI will switch to use the read alias
- rename config index and provide BWC to read from old and new ones
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/persistence/TransformInternalIndexConstants.java
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,20 @@ public final class TransformInternalIndexConstants {
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformAuditorIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformInternalIndexIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ public class TransformInternalIndexIT extends ESRestTestCase {
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/action/TransportGetTransformAction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformConfigManager.java
+28-13Lines changed: 28 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,8 @@
73
73
*
74
74
* Versioned Index:
75
75
*
76
-
* We wrap several indexes under 1 pattern: ".data-frame-internal-1", ".data-frame-internal-2", ".data-frame-internal-n" while
77
-
* n is the _current_ version of the index.
76
+
* We wrap several indexes under 1 pattern: ".transform-internal-001", ".transform-internal-002", ".transform-internal-n" while
77
+
* n is the _current_ version of the index. For BWC we also search in ".data-frame-internal-1", ".data-frame-internal-2"
78
78
*
79
79
* - all gets/reads and dbq as well are searches on all indexes, while last-one-wins, so the result with the highest version is uses
80
80
* - all puts and updates go into the _current_ version of the index, in case of updates this can leave dups behind
@@ -168,7 +168,9 @@ public void updateTransformConfiguration(TransformConfig transformConfig,
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java
0 commit comments