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

[BUG] java.io.OptionalDataException - Cache Timeout #1927

Closed
msoler8785 opened this issue Jul 1, 2022 · 5 comments
Closed

[BUG] java.io.OptionalDataException - Cache Timeout #1927

msoler8785 opened this issue Jul 1, 2022 · 5 comments
Labels
bug Something isn't working triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.

Comments

@msoler8785
Copy link

What is the bug?
When the auth cache expires it isn't properly updated causing a java.io.OptionalDataException exception to be returned from OpenSearch.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Use the Bulk API after the plugins.security.cache.ttl_minutes period has elapsed.

What is the expected behavior?
The cache is refreshed and there are no errors.

What is your host/environment?

  • OS: Ubuntu 20.04.4 LTS
  • Version: 2.0.1
  • Plugins: Standard

Do you have any additional context?

@msoler8785 msoler8785 added bug Something isn't working untriaged Require the attention of the repository maintainers and may need to be prioritized labels Jul 1, 2022
@msoler8785
Copy link
Author

msoler8785 commented Jul 1, 2022

I suspect this PR to be the culprit, but I don't know enough to pinpoint the problem: ef0d40a

@peternied
Copy link
Member

[Triage] Thanks for filing this issue @msoler8785 we will look into this issue.

@peternied peternied removed the untriaged Require the attention of the repository maintainers and may need to be prioritized label Jul 11, 2022
@TheMeier
Copy link

I suspect this might be the reason for a problem we are seeing. We have installed a fresh cluster version 2.1.0. We deliver logs with fluent-bit. Every hour the delivery fails with:

"status":500,"error":{"type":"exception","reason":"java.io.OptionalDataException","caused_by":{"type":"i_o_exception","reason":null}}}}

It fails for roughly one hour and starts working again. Then one hour later the cycle repeats.
Clearing the cache (via dashboards or curl) does not resolve the problem.

What does resolve the problem ist to run securityadmin.sh with the exact same permissions again.

@TheMeier
Copy link

TheMeier commented Jul 21, 2022

What does resolve the problem ist to run securityadmin.sh with the exact same permissions again.

Even that does not reliably fix the problem.
Also I raised plugins.security.cache.ttl_minutes. Still seeing this problem ~10 times per day

@davidlago davidlago added triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. WIP labels Oct 10, 2022
@peternied peternied removed the WIP label Jan 30, 2023
@cwperks
Copy link
Member

cwperks commented Oct 31, 2023

Closing as #1970 has been merged

@cwperks cwperks closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Projects
None yet
Development

No branches or pull requests

5 participants