Skip to content

Adds constants for threadPool Names#4768

Merged
ddanielr merged 20 commits into
apache:2.1from
ddanielr:4535-constants
Jul 28, 2024
Merged

Adds constants for threadPool Names#4768
ddanielr merged 20 commits into
apache:2.1from
ddanielr:4535-constants

Conversation

@ddanielr

Copy link
Copy Markdown
Contributor

Contains all of @EdColeman's changes from #4535.

Adds enums for threadpool names so that copy/pasting thread pool names from jstacks should hit on sections of code vs having to search for partial names.

@ddanielr ddanielr added this to the 2.1.3 milestone Jul 26, 2024
@ddanielr ddanielr requested a review from dlmarion July 26, 2024 20:08
Comment thread core/src/main/java/org/apache/accumulo/core/clientImpl/bulk/BulkImport.java Outdated
Use the string value stored in the enum vs the default toString output
Comment thread core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPoolNames.java Outdated
Comment thread core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java Outdated
ddanielr added 5 commits July 26, 2024 21:36
Refactored the Enum threadpool names to remove the _NAME suffix
 Adds constants for the following pools:
 * Bulk Import Threads
 * Compaction Service Planner
 * Tablet wal creator
 * Scan server tablet metadata cache
 * Manager upgrade metadata
 * Compaction Coordinator summary gatherer
 * Utility check pools
One of the constants was using the same name as the thread pool after
the _NAME suffix refactor. Changed the name to eliminate confusion.

Sorted the enums based on names and cleaned up formatting
Comment thread test/src/main/java/org/apache/accumulo/test/metrics/MetricsIT.java Outdated
Comment thread test/src/main/java/org/apache/accumulo/test/metrics/MetricsIT.java Outdated
@ddanielr ddanielr merged commit b90ca95 into apache:2.1 Jul 28, 2024
@ddanielr ddanielr deleted the 4535-constants branch July 28, 2024 22:16
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.

4 participants