-
Notifications
You must be signed in to change notification settings - Fork 7
[NAE-2250] Optimize Elasticsearch reindexing and bulk operations for performance and reliability #378
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
Merged
Merged
[NAE-2250] Optimize Elasticsearch reindexing and bulk operations for performance and reliability #378
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
2f11efc
Release/7.0.0-RC9
machacjozef b40fe86
[NAE-2250] Optimize Elasticsearch reindexing and bulk operations for …
renczesstefan 9b72195
- corrected according to PR
renczesstefan d7a57d7
Fix empty batch handling and enhance error recovery
renczesstefan f30179e
Update log message to indicate case is queued for indexing
renczesstefan 653829a
Improve shutdown logic in ElasticQueueManager
renczesstefan 1946903
Simplify ElasticQueueManager shutdown process
renczesstefan 21f6549
Refactor shutdown logic in ElasticQueueManager
renczesstefan b0da37d
Reduce default thread pool size for scheduled executor
renczesstefan 4fa3988
Add delay configuration to Elasticsearch queue in tests
renczesstefan 7a1fb84
Add validation annotations and RefreshPolicy to queue config
renczesstefan 625fee3
Refactor Elasticsearch integration to use bulk operations
renczesstefan 6c21409
Refactor ElasticQueueManager and clean up unused dependencies.
renczesstefan 4f74195
Optimize queue handling in ElasticQueueManager.
renczesstefan 026a96e
Add Serializable and _class handling to ElasticTask
renczesstefan da91804
Refactor Elastic domain models and improve queue management.
renczesstefan 8d584a2
Remove generic type parameter from ElasticQueueManager
renczesstefan 3cd8144
Remove unused ElasticsearchConverter import
renczesstefan 8bab0c2
Refactor case deletion logic in CaseEventHandler
renczesstefan 20b69ba
Remove unused removeByPetriNetId method from ElasticCaseService
renczesstefan d01bb7e
Refactor document mapping in ElasticIndexService.
renczesstefan 64b749f
Refactor ElasticQueueManager and clean up ElasticTask code.
renczesstefan 838a277
Remove unused variable in ElasticQueueManager
renczesstefan 83b7b19
Fix timer reset on index failure in ElasticQueueManager
renczesstefan f702a3c
Refactor ElasticQueueManager to include event publishing
renczesstefan e1fd1f2
Synchronize resetTimer to ensure thread safety.
renczesstefan 1e983f0
Refactor ElasticQueueManager for improved queue handling
renczesstefan ca62484
`Move event publishing to finally block in indexing process`
renczesstefan 959ccb4
Refactor error handling in ElasticQueueManager.
renczesstefan b3c41cd
Update ElasticSearch refresh policy handling in bulk requests
renczesstefan 9911644
Fix batch size condition and refine error handling messages
renczesstefan 38e0309
Remove unused exception documentation from push method
renczesstefan bb7beed
Remove unused exception documentation from push method
renczesstefan cb8548c
Fix incorrect JavaDoc comment formatting in ElasticQueueManager
renczesstefan b481929
Fix incorrect JavaDoc comment formatting in ElasticQueueManager
renczesstefan acbec96
Refactor javadoc formatting in ElasticQueueManager.
renczesstefan d3a3ecf
Merge remote-tracking branch 'origin/release/7.0.0-rev8' into NAE-2250
machacjozef a124e43
Enhance error handling for batch operations in ElasticQueueManager
renczesstefan 140d2c2
Merge remote-tracking branch 'origin/NAE-2250' into NAE-2250
renczesstefan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
19 changes: 19 additions & 0 deletions
19
...ine/src/main/java/com/netgrif/application/engine/elastic/domain/BulkOperationWrapper.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package com.netgrif.application.engine.elastic.domain; | ||
|
|
||
|
|
||
| import co.elastic.clients.elasticsearch.core.bulk.BulkOperation; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
|
|
||
| import java.util.EventObject; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @AllArgsConstructor | ||
| public class BulkOperationWrapper { | ||
|
|
||
| private BulkOperation operation; | ||
|
|
||
| private EventObject publishableEvent; | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.