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

[Backport 2.x] Refactor Grok validate pattern to iterative approach #14693

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 13f04d9 from #14206.

* grok validate patterns recusrion to iterative

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Add max depth in resolving a pattern to avoid OOM

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* change path from deque to arraylist

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* rename queue to stack

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Change max depth to 500

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* typo originPatternName fix

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* spotless

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

---------

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
(cherry picked from commit 13f04d9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jul 9, 2024

❌ Gradle check result for 3c783e1: 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?

Copy link
Contributor

❌ Gradle check result for 3c783e1: 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?

Copy link
Contributor

❌ Gradle check result for 3c783e1: TIMEOUT

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?

Copy link
Contributor

✅ Gradle check result for 3c783e1: SUCCESS

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.43%. Comparing base (7040df2) to head (3c783e1).
Report is 11 commits behind head on 2.x.

Files Patch % Lines
...s/grok/src/main/java/org/opensearch/grok/Grok.java 96.29% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #14693      +/-   ##
============================================
+ Coverage     71.42%   71.43%   +0.01%     
+ Complexity    62382    62354      -28     
============================================
  Files          5103     5103              
  Lines        293268   293294      +26     
  Branches      42730    42734       +4     
============================================
+ Hits         209478   209529      +51     
+ Misses        66236    66161      -75     
- Partials      17554    17604      +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dblock dblock merged commit a6d7d86 into 2.x Jul 10, 2024
104 of 110 checks passed
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ect#14206) (opensearch-project#14693)

* grok validate patterns recusrion to iterative

* Add max depth in resolving a pattern to avoid OOM

* change path from deque to arraylist

* rename queue to stack

* Change max depth to 500

* typo originPatternName fix

* spotless

---------

(cherry picked from commit 13f04d9)

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.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>
Signed-off-by: kkewwei <kkewwei@163.com>
@dbwiddis dbwiddis deleted the backport/backport-14206-to-2.x branch July 24, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants