Skip to content

GET _streams/status state is not included in snapshot #132468

@klacabane

Description

@klacabane

Elasticsearch Version

main

Installed Plugins

No response

Java Version

bundled

OS Version

macos 15.6

Problem Description

The streams' state returned by GET _streams/status is not included in snapshots.

If a snapshot is taken while the feature is enabled, restoring a cluster from a snapshot will keep the feature disabled ({ "logs": {"enabled": false} }).

Steps to Reproduce

Assuming a preconfigured snapshot repository

// 1. Enable streams
POST kbn:/api/streams/_enable

// 2. Verify streams is enabled
GET _streams/status // -> { "logs": { "enabled": true } }

// 3. Create a snapshot
PUT /_snapshot/{repository}/snapshot_1?wait_for_completion=true
{
  "include_global_state": true
}

// 4. Restore
POST /_snapshot/{repository}/snapshot_1/_restore?wait_for_completion=true
{
  "include_global_state":true
}

// 5. Streams is disabled
GET _streams/status // -> { "logs": { "enabled": false } }

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions