Skip to content

Remove failure_store field name from Data Stream serialization #127071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jbaiera opened this issue Apr 18, 2025 · 1 comment
Open

Remove failure_store field name from Data Stream serialization #127071

jbaiera opened this issue Apr 18, 2025 · 1 comment
Labels
:Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team >tech debt

Comments

@jbaiera
Copy link
Member

jbaiera commented Apr 18, 2025

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);

@jbaiera jbaiera added :Data Management/Data streams Data streams and their lifecycles >tech debt labels Apr 18, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Apr 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team >tech debt
Projects
None yet
Development

No branches or pull requests

2 participants