Commit 7262fb3
authored
[Transform] Auto-migrate max_page_search_size (#119348)
`max_page_search_size` had been deprecated in Pivot and migrated to
Settings in ES 7.x. We are removing the key in Pivot in 9.x. It is
still possible to create Pivots with `max_page_search_size`, though a
deprecation is logged. To prep for its removal, this change
automatically migrates `max_page_search_size` from Pivot to Settings as
if the user called `_update`.
- `PUT _transform` with `max_page_search_size` in Pivot will migrate the
value to Settings as part of the Transform's creation. The user will
receive an additional deprecation warning informing of this migration.
- Existing transforms with `max_page_search_size` in Pivot will migrate
the value to Settings as part of node assignment during start.
Transform Messages and Elasticsearch logs will record this event so
users will know what happened.1 parent 17ece0a commit 7262fb3
File tree
14 files changed
+580
-120
lines changed- docs/changelog
- x-pack/plugin
- core/src
- main/java/org/elasticsearch/xpack/core/transform
- transforms
- test/java/org/elasticsearch/xpack/core/transform/transforms
- transform
- qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration
- src
- internalClusterTest/java/org/elasticsearch/xpack/transform/integration
- main/java/org/elasticsearch/xpack/transform
- action
- telemetry
- transforms
- test/java/org/elasticsearch/xpack/transform
- transforms
14 files changed
+580
-120
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
Lines changed: 33 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
| 582 | + | |
589 | 583 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
| 584 | + | |
| 585 | + | |
595 | 586 | | |
596 | 587 | | |
597 | | - | |
| 588 | + | |
598 | 589 | | |
599 | | - | |
| 590 | + | |
600 | 591 | | |
601 | 592 | | |
602 | 593 | | |
| |||
606 | 597 | | |
607 | 598 | | |
608 | 599 | | |
609 | | - | |
610 | | - | |
| 600 | + | |
| 601 | + | |
611 | 602 | | |
612 | 603 | | |
613 | 604 | | |
614 | 605 | | |
615 | | - | |
616 | | - | |
| 606 | + | |
| 607 | + | |
617 | 608 | | |
618 | 609 | | |
619 | 610 | | |
| |||
622 | 613 | | |
623 | 614 | | |
624 | 615 | | |
625 | | - | |
626 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
627 | 637 | | |
628 | 638 | | |
629 | | - | |
| 639 | + | |
630 | 640 | | |
631 | 641 | | |
632 | | - | |
| 642 | + | |
633 | 643 | | |
634 | 644 | | |
635 | 645 | | |
636 | 646 | | |
637 | 647 | | |
638 | 648 | | |
639 | 649 | | |
640 | | - | |
641 | | - | |
| 650 | + | |
642 | 651 | | |
643 | 652 | | |
644 | 653 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
150 | 158 | | |
151 | 159 | | |
152 | 160 | | |
| |||
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| |||
2707 | 2719 | | |
2708 | 2720 | | |
2709 | 2721 | | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
2710 | 2770 | | |
2711 | 2771 | | |
2712 | 2772 | | |
| |||
Lines changed: 0 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 103 | | |
168 | 104 | | |
169 | 105 | | |
| |||
0 commit comments