[Backport 2.x] Add allowlist setting for ingest-common processors#14561
Merged
[Backport 2.x] Add allowlist setting for ingest-common processors#14561
Conversation
Add a new static setting that lets an operator choose specific ingest processors to enable by name. The behavior is as follows: - If the allowlist setting is not defined, all installed processors are enabled. This is the status quo. - If the allowlist setting is defined as the empty set, then all processors are disabled. - If the allowlist setting contains the names of valid processors, only those processors are enabled. - If the allowlist setting contains a name of a processor that does not exist, then the server will fail to start with an IllegalStateException listing which processors were defined in the allowlist but are not installed. - If the allowlist setting is changed between server restarts then any ingest pipeline using a now-disabled processor will fail. This is the same experience if a pipeline used a processor defined by a plugin but then that plugin were to be uninstalled across restarts. Related to #14439 Signed-off-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit a99b494) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Contributor
|
❌ Gradle check result for 7acfe66: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Andrew Ross <andrross@amazon.com>
Member
|
Pushed a commit to fix compilation errors related to the "module plugin" class renaming that happened on main |
Contributor
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #14561 +/- ##
============================================
+ Coverage 71.39% 71.42% +0.03%
- Complexity 62268 62364 +96
============================================
Files 5102 5102
Lines 293130 293146 +16
Branches 42715 42716 +1
============================================
+ Hits 209275 209394 +119
+ Misses 66203 66194 -9
+ Partials 17652 17558 -94 ☔ View full report in Codecov by Sentry. |
owaiskazi19
approved these changes
Jun 26, 2024
reta
approved these changes
Jun 26, 2024
This was referenced Jun 27, 2024
kkewwei
pushed a commit
to kkewwei/OpenSearch
that referenced
this pull request
Jul 24, 2024
…ensearch-project#14561) * Add allowlist setting for ingest-common processors (opensearch-project#14479) Add a new static setting that lets an operator choose specific ingest processors to enable by name. The behavior is as follows: - If the allowlist setting is not defined, all installed processors are enabled. This is the status quo. - If the allowlist setting is defined as the empty set, then all processors are disabled. - If the allowlist setting contains the names of valid processors, only those processors are enabled. - If the allowlist setting contains a name of a processor that does not exist, then the server will fail to start with an IllegalStateException listing which processors were defined in the allowlist but are not installed. - If the allowlist setting is changed between server restarts then any ingest pipeline using a now-disabled processor will fail. This is the same experience if a pipeline used a processor defined by a plugin but then that plugin were to be uninstalled across restarts. Related to opensearch-project#14439 Signed-off-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit a99b494) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix test issues due to class renaming on main Signed-off-by: Andrew Ross <andrross@amazon.com> --------- Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: kkewwei <kkewwei@163.com>
expani
added a commit
to expani/OpenSearch
that referenced
this pull request
May 2, 2025
Signed-off-by: expani <anijainc@amazon.com>
andrross
pushed a commit
to expani/OpenSearch
that referenced
this pull request
May 5, 2025
Signed-off-by: expani <anijainc@amazon.com>
andrross
pushed a commit
to expani/OpenSearch
that referenced
this pull request
May 15, 2025
Signed-off-by: expani <anijainc@amazon.com>
mch2
pushed a commit
that referenced
this pull request
May 19, 2025
* Upgrade lucene to version 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Removed usage of non public constructor for DocIdSetBuilder Signed-off-by: expani <anijainc@amazon.com> * Increment version and fixed another compilation error Signed-off-by: expani <anijainc@amazon.com> * Updating license sha for lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Upgraded icu4j in conjunction with Lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * update sha for icu4j Signed-off-by: expani <anijainc@amazon.com> * Update to 10.2.1 Signed-off-by: Andrew Ross <andrross@amazon.com> * Add changelog entry Signed-off-by: Andrew Ross <andrross@amazon.com> * Updated test based on Lucene-#14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Delegating nextDoc to advance as previous assumption doesn't hold with current ConstantScoreSupplier Signed-off-by: expani <anijainc@amazon.com> * Implemented cost function Signed-off-by: expani <anijainc@amazon.com> --------- Signed-off-by: expani <anijainc@amazon.com> Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
tandonks
pushed a commit
to tandonks/OpenSearch
that referenced
this pull request
Jun 1, 2025
* Upgrade lucene to version 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Removed usage of non public constructor for DocIdSetBuilder Signed-off-by: expani <anijainc@amazon.com> * Increment version and fixed another compilation error Signed-off-by: expani <anijainc@amazon.com> * Updating license sha for lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Upgraded icu4j in conjunction with Lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * update sha for icu4j Signed-off-by: expani <anijainc@amazon.com> * Update to 10.2.1 Signed-off-by: Andrew Ross <andrross@amazon.com> * Add changelog entry Signed-off-by: Andrew Ross <andrross@amazon.com> * Updated test based on Lucene-opensearch-project#14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Delegating nextDoc to advance as previous assumption doesn't hold with current ConstantScoreSupplier Signed-off-by: expani <anijainc@amazon.com> * Implemented cost function Signed-off-by: expani <anijainc@amazon.com> --------- Signed-off-by: expani <anijainc@amazon.com> Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
neuenfeldttj
added a commit
to neuenfeldttj/OpenSearch
that referenced
this pull request
Jun 26, 2025
* Upgrade lucene to version 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Removed usage of non public constructor for DocIdSetBuilder Signed-off-by: expani <anijainc@amazon.com> * Increment version and fixed another compilation error Signed-off-by: expani <anijainc@amazon.com> * Updating license sha for lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Upgraded icu4j in conjunction with Lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * update sha for icu4j Signed-off-by: expani <anijainc@amazon.com> * Update to 10.2.1 Signed-off-by: Andrew Ross <andrross@amazon.com> * Add changelog entry Signed-off-by: Andrew Ross <andrross@amazon.com> * Updated test based on Lucene-opensearch-project#14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Delegating nextDoc to advance as previous assumption doesn't hold with current ConstantScoreSupplier Signed-off-by: expani <anijainc@amazon.com> * Implemented cost function Signed-off-by: expani <anijainc@amazon.com> --------- Signed-off-by: expani <anijainc@amazon.com> Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>Signed-off-by: TJ Neuenfeldt <tjneu@amazon.com>
neuenfeldttj
pushed a commit
to neuenfeldttj/OpenSearch
that referenced
this pull request
Jun 26, 2025
* Upgrade lucene to version 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Removed usage of non public constructor for DocIdSetBuilder Signed-off-by: expani <anijainc@amazon.com> * Increment version and fixed another compilation error Signed-off-by: expani <anijainc@amazon.com> * Updating license sha for lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * Upgraded icu4j in conjunction with Lucene 10.2.0 Signed-off-by: expani <anijainc@amazon.com> * update sha for icu4j Signed-off-by: expani <anijainc@amazon.com> * Update to 10.2.1 Signed-off-by: Andrew Ross <andrross@amazon.com> * Add changelog entry Signed-off-by: Andrew Ross <andrross@amazon.com> * Updated test based on Lucene-opensearch-project#14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Updated test based on Lucene-14561 Signed-off-by: expani <anijainc@amazon.com> * Delegating nextDoc to advance as previous assumption doesn't hold with current ConstantScoreSupplier Signed-off-by: expani <anijainc@amazon.com> * Implemented cost function Signed-off-by: expani <anijainc@amazon.com> --------- Signed-off-by: expani <anijainc@amazon.com> Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport a99b494 from #14479.