@@ -10,7 +10,7 @@ Performs a synced flush on one or more indices.
10
10
--------------------------------------------------
11
11
POST /twitter/_flush/synced
12
12
--------------------------------------------------
13
- // TEST[setup:twitter ]
13
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests ]
14
14
15
15
16
16
[[synced-flush-api-request]]
@@ -80,7 +80,7 @@ section of the shard stats returned by the <<indices-stats,indices stats>> API:
80
80
--------------------------------------------------
81
81
GET /twitter/_stats?filter_path=**.commit&level=shards <1>
82
82
--------------------------------------------------
83
- // TEST[s/^/PUT twitter\nPOST twitter\/_flush\/synced\n/ ]
83
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests ]
84
84
85
85
<1> `filter_path` is used to reduce the verbosity of the response, but is entirely optional
86
86
@@ -116,10 +116,7 @@ The API returns the following response:
116
116
}
117
117
}
118
118
--------------------------------------------------
119
- // TESTRESPONSE[s/"id" : "3M3zkw2GHMo2Y4h4\/KFKCg=="/"id": $body.indices.twitter.shards.0.0.commit.id/]
120
- // TESTRESPONSE[s/"translog_uuid" : "hnOG3xFcTDeoI_kvvvOdNA"/"translog_uuid": $body.indices.twitter.shards.0.0.commit.user_data.translog_uuid/]
121
- // TESTRESPONSE[s/"history_uuid" : "XP7KDJGiS1a2fHYiFL5TXQ"/"history_uuid": $body.indices.twitter.shards.0.0.commit.user_data.history_uuid/]
122
- // TESTRESPONSE[s/"sync_id" : "AVvFY-071siAOuFGEO9P"/"sync_id": $body.indices.twitter.shards.0.0.commit.user_data.sync_id/]
119
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests]
123
120
<1> the `sync id` marker
124
121
125
122
NOTE: The `sync_id` marker is removed as soon as the shard is flushed again, and
@@ -172,7 +169,7 @@ A replica shard failed to sync-flush.
172
169
----
173
170
POST /kimchy/_flush/synced
174
171
----
175
- // TEST[s/^/PUT kimchy\n/ ]
172
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests ]
176
173
177
174
178
175
[[synced-flush-api-multi-ex]]
@@ -182,8 +179,7 @@ POST /kimchy/_flush/synced
182
179
--------------------------------------------------
183
180
POST /kimchy,elasticsearch/_flush/synced
184
181
--------------------------------------------------
185
- // TEST[s/^/PUT elasticsearch\n/]
186
- // TEST[continued]
182
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests]
187
183
188
184
189
185
[[synced-flush-api-all-ex]]
@@ -193,7 +189,7 @@ POST /kimchy,elasticsearch/_flush/synced
193
189
--------------------------------------------------
194
190
POST /_flush/synced
195
191
--------------------------------------------------
196
- // TEST[setup:twitter ]
192
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests ]
197
193
198
194
The response contains details about how many shards were successfully
199
195
sync-flushed and information about any failure.
@@ -217,12 +213,12 @@ successfully sync-flushed:
217
213
}
218
214
}
219
215
--------------------------------------------------
220
- // TESTRESPONSE[s/"successful": 2/"successful": 1/ ]
216
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests ]
221
217
222
218
The following response indicates one shard group failed
223
219
due to pending operations:
224
220
225
- [source,js ]
221
+ [source,console-result ]
226
222
--------------------------------------------------
227
223
{
228
224
"_shards": {
@@ -243,13 +239,13 @@ due to pending operations:
243
239
}
244
240
}
245
241
--------------------------------------------------
246
- // NOTCONSOLE
242
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests]
247
243
248
244
Sometimes the failures are specific to a shard replica. The copies that failed
249
245
will not be eligible for fast recovery but those that succeeded still will be.
250
246
This case is reported as follows:
251
247
252
- [source,js ]
248
+ [source,console-result ]
253
249
--------------------------------------------------
254
250
{
255
251
"_shards": {
@@ -278,4 +274,4 @@ This case is reported as follows:
278
274
}
279
275
}
280
276
--------------------------------------------------
281
- // NOTCONSOLE
277
+ // TEST[skip: Synced flush can conflict with scheduled flushes in doc tests]
0 commit comments