Commit f153b99
committed
Parquet-back raw-PUT test indices on the analytics-engine route
With -Dtests.analytics.parquet_indices=true, indices created by a raw
document PUT (e.g. `PUT /test/_doc/1` in a test's init()) bypass
AnalyticsIndexConfig.applyIndexCreationSettings, so they inherit the
composite *value* — and are therefore routed to the analytics engine by
RestUnifiedQueryAction.isAnalyticsIndex — but not the
`pluggable.dataformat.enabled` flag. They are then stored as a
plain-Lucene EngineBackedIndexer whose acquireReader() is unimplemented,
and the query fails with
`StreamException[INTERNAL] Failed to start streaming fragment`.
Apply the cluster-level composite defaults in setUpIndices() so every
index — including raw-PUT ones — is stored as a parquet-backed
DataFormatAwareEngine that is actually scannable by the analytics engine
it routes to. No-op unless tests.analytics.parquet_indices=true, so
normal CI is unchanged.
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent f861d02 commit f153b99
2 files changed
Lines changed: 42 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
92 | 128 | | |
93 | 129 | | |
94 | 130 | | |
| |||
0 commit comments