-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error log when creating a PIT search object #166
Comments
We cannot fix this one, as the warning message is raised by OpenSearch's code. We tried to catch this exception to silence it, but it didn't work. We can only wait for a fix from OpenSearch on a future release. |
For development, this error can be overcome by changing the OpenSearch's snapshot version to 2.17.1. opensearch_version = System.getProperty("opensearch.version", "2.17.1-SNAPSHOT") This change cannot be committed to the repository as currently the OpenSearch has a pull request ready to be merged in their The logs show periodically, showing full traceback of the unhandled exception, completely clobbering the wazuh-indexer's log file, making it really hard for the development and testing of the Data Persistence MVP features. Given the situation, we should consider temporarily moving back to OpenSearch v2.17.1, which still resides in https://github.com/wazuh/wazuh-indexer/tree/master-2.17.1. A more moderate temporal solution would be to add custom configurations to log4j to filter out this log, by the means of these references:
Global filter Add these lines at the end of
Restart. This could be improved using more granular filters, for example StringMatchFilter. Cluster level filter Use this command to raise the log level of the
Restart. Both options seem to be a valid workaround, as tested using an MVP vagrant environment.
Similar workarounds could be applied for development environments. |
Description
OpenSearch 2.18.0 introduced a bug on PIT creation that triggers an error log along with a stack trace.
Functionality of the search doesn't seem to be affected, though.
This was already reported in their repository:
The text was updated successfully, but these errors were encountered: