-
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 <[email protected]> * Add resource tracking update support for tasks Signed-off-by: Tushar Kharbanda <[email protected]> * List tasks action support for task resource refresh Signed-off-by: Tushar Kharbanda <[email protected]> * Handle task unregistration case on same thread Signed-off-by: Tushar Kharbanda <[email protected]> * Add lazy initialisation for RunnableTaskExecutionListener Signed-off-by: Tushar Kharbanda <[email protected]> * Segregate resource tracking logic to a separate service. Signed-off-by: Tushar Kharbanda <[email protected]> * Check for running threads during task unregister Signed-off-by: Tushar Kharbanda <[email protected]> * Moved thread context logic to resource tracking service Signed-off-by: Tushar Kharbanda <[email protected]> * preserve task id in thread context even after stash Signed-off-by: Tushar Kharbanda <[email protected]> * Add null check for resource tracking service Signed-off-by: Tushar Kharbanda <[email protected]> * Tracking service tests and minor refactoring Signed-off-by: Tushar Kharbanda <[email protected]> * Preserve task id fix with test Signed-off-by: Tushar Kharbanda <[email protected]> * Minor test changes and Task tracking call update Signed-off-by: Tushar Kharbanda <[email protected]> * Fix Auto Queue executor method's signature Signed-off-by: Tushar Kharbanda <[email protected]> * Make task runnable task listener factory implement consumer Signed-off-by: Tushar Kharbanda <[email protected]> * Use reflection for ThreadMXBean Signed-off-by: Tushar Kharbanda <[email protected]> * Formatting Signed-off-by: Tushar Kharbanda <[email protected]> * Replace RunnableTaskExecutionListenerFactory with AtomicReference Signed-off-by: Tushar Kharbanda <[email protected]> * Revert "Use reflection for ThreadMXBean" This reverts commit cbcf3c525bf516fb7164f0221491a7b25c1f96ec. Signed-off-by: Tushar Kharbanda <[email protected]> * Suppress Warning related to ThreadMXBean Signed-off-by: Tushar Kharbanda <[email protected]> * Add separate method for task resource tracking supported check Signed-off-by: Tushar Kharbanda <[email protected]> * Enabled setting by default Signed-off-by: Tushar Kharbanda <[email protected]> * Add debug logs for stale context id Signed-off-by: Tushar Kharbanda <[email protected]> * Remove hardcoded task overhead in tests Signed-off-by: Tushar Kharbanda <[email protected]> * Bump stale task id in thread context log level to warn Signed-off-by: Tushar Kharbanda <[email protected]> * Improve assertions and logging Signed-off-by: Tushar Kharbanda <[email protected]> Co-authored-by: Tushar Kharbanda <[email protected]> (cherry picked from commit 6517eec)
- Loading branch information
1 parent
4422540
commit ae4f4b2
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.