Skip to content
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

[Session management] update cleanup to allow partial search results for PIT query #200912

Merged

Conversation

SiddharthMantri
Copy link
Contributor

@SiddharthMantri SiddharthMantri commented Nov 20, 2024

Closes #200008

Summary

This PR updates the session cleanup task to allow partial results in the point in time query used to delete any invalid sessions.

Notes

Using a recently introduced option by ES, the session cleanup now allows the PIT to run over partial results. This should reduce the noise we see around session_cleanup errors in our logs.

Release notes

Fixes error with opening point in time query for session deletion by now accounting for partial results.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_node:* label is applied per the guidelines

@SiddharthMantri SiddharthMantri added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! Feature:Security/Session Management Platform Security - Session Management backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development labels Nov 20, 2024
@SiddharthMantri SiddharthMantri requested a review from a team as a code owner November 20, 2024 13:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@SiddharthMantri SiddharthMantri changed the title [Session management] update cleanup query to allow partial search results for PIT query [Session management] update cleanup to allow partial search results for PIT query Nov 20, 2024
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #3 / AllCasesSelectorModal Closing modal when pressing the x icon
  • [job] [logs] Jest Tests #8 / useGetEndpointSecurityPackage hook retrieves the endpoint package

Metrics [docs]

✅ unchanged

@SiddharthMantri SiddharthMantri merged commit 8f12714 into elastic:main Nov 21, 2024
34 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/11955037949

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 21, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.

### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.

### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 8f12714)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 21, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.

### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.

### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 8f12714)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 21, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.

### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.

### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 8f12714)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 21, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.

### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.

### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 8f12714)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15
8.16
8.17
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 21, 2024
…sults for PIT query (#200912) (#201200)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Session management] update cleanup to allow partial search results
for PIT query (#200912)](#200912)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Sid","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T14:14:54Z","message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","v9.0.0","Feature:Security/Session
Management","backport:prev-major"],"title":"[Session management] update
cleanup to allow partial search results for PIT
query","number":200912,"url":"https://github.com/elastic/kibana/pull/200912","mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200912","number":200912,"mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}}]}]
BACKPORT-->

Co-authored-by: Sid <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 21, 2024
…ults for PIT query (#200912) (#201205)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Session management] update cleanup to allow partial search results
for PIT query (#200912)](#200912)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Sid","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T14:14:54Z","message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","v9.0.0","Feature:Security/Session
Management","backport:prev-major"],"title":"[Session management] update
cleanup to allow partial search results for PIT
query","number":200912,"url":"https://github.com/elastic/kibana/pull/200912","mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200912","number":200912,"mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}}]}]
BACKPORT-->

Co-authored-by: Sid <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 21, 2024
…sults for PIT query (#200912) (#201201)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Session management] update cleanup to allow partial search results
for PIT query (#200912)](#200912)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Sid","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T14:14:54Z","message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","v9.0.0","Feature:Security/Session
Management","backport:prev-major"],"title":"[Session management] update
cleanup to allow partial search results for PIT
query","number":200912,"url":"https://github.com/elastic/kibana/pull/200912","mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200912","number":200912,"mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}}]}]
BACKPORT-->

Co-authored-by: Sid <[email protected]>
@mistic
Copy link
Member

mistic commented Nov 21, 2024

This PR didn't make it into the latest BC of v8.16.1. Updating the labels.

@mistic mistic added v8.16.2 and removed v8.16.1 labels Nov 21, 2024
kibanamachine added a commit that referenced this pull request Nov 21, 2024
…sults for PIT query (#200912) (#201203)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Session management] update cleanup to allow partial search results
for PIT query (#200912)](#200912)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Sid","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T14:14:54Z","message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","v9.0.0","Feature:Security/Session
Management","backport:prev-major"],"title":"[Session management] update
cleanup to allow partial search results for PIT
query","number":200912,"url":"https://github.com/elastic/kibana/pull/200912","mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200912","number":200912,"mergeCommit":{"message":"[Session
management] update cleanup to allow partial search results for PIT query
(#200912)\n\nCloses
https://github.com/elastic/kibana/issues/200008\r\n\r\n##
Summary\r\nThis PR updates the session cleanup task to allow partial
results in the\r\npoint in time query used to delete any invalid
sessions.\r\n\r\n\r\n### Notes\r\nUsing a [recently introduced option
by\r\nES](elastic/elasticsearch#111516), the
session\r\ncleanup now allows the PIT to run over partial results. This
should\r\nreduce the noise we see around session_cleanup errors in our
logs.\r\n\r\n\r\n### Release notes\r\nFixes error with opening point in
time query for session deletion by now\r\naccounting for partial
results.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_node:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8f12714219ca4b4c8e58678d42e9978c3defa40b"}}]}]
BACKPORT-->

Co-authored-by: Sid <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.


### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.


### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…or PIT query (elastic#200912)

Closes elastic#200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.


### Notes
Using a [recently introduced option by
ES](elastic/elasticsearch#111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.


### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development bug Fixes for quality problems that affect the customer experience Feature:Security/Session Management Platform Security - Session Management release_note:fix Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v8.15.5 v8.16.2 v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Session management] Update session cleanup task to start using partial search results
5 participants