Skip to content

Commit caa96ed

Browse files
bug
1 parent 70fd552 commit caa96ed

File tree

5 files changed

+274
-75
lines changed

5 files changed

+274
-75
lines changed

x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/SearchApplicationIndexService.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,21 @@ private IndicesAliasesRequestBuilder updateAliasIndices(Set<String> currentAlias
291291
}
292292

293293
private void updateSearchApplication(SearchApplication app, boolean create, ActionListener<DocWriteResponse> listener) {
294-
try (ReleasableBytesStreamOutput buffer = new ReleasableBytesStreamOutput(0, bigArrays.withCircuitBreaking())) {
295-
try (XContentBuilder source = XContentFactory.jsonBuilder(buffer)) {
296-
source.startObject()
297-
.field(SearchApplication.NAME_FIELD.getPreferredName(), app.name())
298-
.field(SearchApplication.ANALYTICS_COLLECTION_NAME_FIELD.getPreferredName(), app.analyticsCollectionName())
299-
.field(SearchApplication.UPDATED_AT_MILLIS_FIELD.getPreferredName(), app.updatedAtMillis())
300-
.directFieldAsBase64(
301-
SearchApplication.BINARY_CONTENT_FIELD.getPreferredName(),
302-
os -> writeSearchApplicationBinaryWithVersion(app, os, clusterService.state().getMinTransportVersion())
303-
)
304-
.endObject();
305-
}
294+
try (
295+
ReleasableBytesStreamOutput buffer = new ReleasableBytesStreamOutput(0, bigArrays.withCircuitBreaking());
296+
XContentBuilder source = XContentFactory.jsonBuilder(buffer)
297+
) {
298+
source.startObject()
299+
.field(SearchApplication.NAME_FIELD.getPreferredName(), app.name())
300+
.field(SearchApplication.ANALYTICS_COLLECTION_NAME_FIELD.getPreferredName(), app.analyticsCollectionName())
301+
.field(SearchApplication.UPDATED_AT_MILLIS_FIELD.getPreferredName(), app.updatedAtMillis())
302+
.directFieldAsBase64(
303+
SearchApplication.BINARY_CONTENT_FIELD.getPreferredName(),
304+
os -> writeSearchApplicationBinaryWithVersion(app, os, clusterService.state().getMinTransportVersion())
305+
)
306+
.endObject();
306307
DocWriteRequest.OpType opType = (create ? DocWriteRequest.OpType.CREATE : DocWriteRequest.OpType.INDEX);
308+
source.flush();
307309
final IndexRequest indexRequest = new IndexRequest(SEARCH_APPLICATION_ALIAS_NAME).opType(DocWriteRequest.OpType.INDEX)
308310
.id(app.name())
309311
.opType(opType)

x-pack/plugin/esql/compute/src/main/generated/org/elasticsearch/compute/aggregation/FirstOverTimeDoubleGroupingAggregatorFunction.java

Lines changed: 65 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated/org/elasticsearch/compute/aggregation/FirstOverTimeFloatGroupingAggregatorFunction.java

Lines changed: 65 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)