-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support task resource tracking in OpenSearch (#2639)
* Add Task id in Thread Context Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Add resource tracking update support for tasks Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * List tasks action support for task resource refresh Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Handle task unregistration case on same thread Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Add lazy initialisation for RunnableTaskExecutionListener Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Segregate resource tracking logic to a separate service. Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Check for running threads during task unregister Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Moved thread context logic to resource tracking service Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * preserve task id in thread context even after stash Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Add null check for resource tracking service Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Tracking service tests and minor refactoring Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Preserve task id fix with test Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Minor test changes and Task tracking call update Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Fix Auto Queue executor method's signature Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Make task runnable task listener factory implement consumer Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Use reflection for ThreadMXBean Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Formatting Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Replace RunnableTaskExecutionListenerFactory with AtomicReference Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Revert "Use reflection for ThreadMXBean" This reverts commit cbcf3c525bf516fb7164f0221491a7b25c1f96ec. Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Suppress Warning related to ThreadMXBean Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Add separate method for task resource tracking supported check Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Enabled setting by default Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Add debug logs for stale context id Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Remove hardcoded task overhead in tests Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Bump stale task id in thread context log level to warn Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> * Improve assertions and logging Signed-off-by: Tushar Kharbanda <tushar.kharbanda72@gmail.com> Co-authored-by: Tushar Kharbanda <tkharban@amazon.com>
- Loading branch information
1 parent
e9ad90b
commit 6517eec
Showing
30 changed files
with
1,421 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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.