Skip to content

Remove failure_store field name from Data Stream serialization #127071

Open
@jbaiera

Description

@jbaiera

Currently we serialize if a data stream has the failure store explicitly enabled when writing a data stream to XContent and to a byte stream. This is redundant because we always send the data stream options for the data stream which already have this setting inside of them. This is a vestigial field from early in failure store's dev cycle that has yet to be cleared up. Now that the feature is going into GA - logic that uses values provided to this field has be cleared up to ignore it. It doesn't look like the field is currently written in XContent. We should look toward clearing it out.

if (out.getTransportVersion()
.between(DataStream.ADDED_FAILURE_STORE_TRANSPORT_VERSION, DataStream.ADD_DATA_STREAM_OPTIONS_VERSION)) {
out.writeBoolean(isFailureStoreExplicitlyEnabled());
}

public static final ParseField FAILURE_STORE_FIELD = new ParseField("failure_store");

// Should be removed after backport
PARSER.declareBoolean(ConstructingObjectParser.optionalConstructorArg(), FAILURE_STORE_FIELD);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions