Skip to content

[Search Sessions] Async searches have expiration date in a week when search sessions are disabled #104405

@flash1293

Description

@flash1293

Kibana version: 7.14

Describe the bug: When search sessions are disabled via xpack.data_enhanced.search.sessions.enabled: false, async searches are still created and have an expiration date a week in the future. This can lead to a lot of accumulated async search documents.

Steps to reproduce:

  1. Set xpack.data_enhanced.search.sessions.enabled: false in kibana.yml
  2. Go to Discover and do a few searches
  3. Check async search documents via
GET .async-search/_search
{
  "_source": ["expiration_time"]
}
  1. Expiration date is a week in the future

Expected behavior:
Expiration date should be very close to the current date and time or no async search documents should stick around

Metadata

Metadata

Assignees

Labels

PR sentblockerbugFixes for quality problems that affect the customer experienceimpact:criticalThis issue should be addressed immediately due to a critical level of impact on the product.loe:mediumMedium Level of Effortv7.14.0v7.15.0v8.0.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions