You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ddanielr (via GitHub)" <gi...@apache.org> on 2026/02/23 17:01:35 UTC
[PR] Added correct thread naming to compactor threads [accumulo]
ddanielr opened a new pull request, #6144:
URL: https://github.com/apache/accumulo/pull/6144
Sets the thread name prefix based on the compaction type instead of defaulting to MajC.
I looked at using the existing CompactionType enum but it's in the public API.
https://github.com/apache/accumulo/blob/cf57e343de77f416de10c22e0ed05ef37f433b36/core/src/main/java/org/apache/accumulo/core/client/admin/ActiveCompaction.java#L30-L50
The goal is to name the MinC and MajC threads correctly for troubleshooting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Added correct thread naming to compactor threads [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #6144:
URL: https://github.com/apache/accumulo/pull/6144#discussion_r2843094249
##########
server/compactor/src/main/java/org/apache/accumulo/compactor/ExtCEnv.java:
##########
@@ -80,6 +80,11 @@ public String getQueueName() {
this.queueName = queueName;
}
+ @Override
+ public String getThreadPrefix() {
+ return "ExtC";
Review Comment:
> Could this just be "MajC"? ExternalCompactors only run major compactors, and these will be on the only compaction threads in the Compactor JVM.
Yeah I think that's fine. It changes less behavior in 2.1 as well.
> If external compactions are not differentiated, then maybe we could use `CompactionEnv.getIteratorScope()` for the naming of the thread.
That sounds good. IteratorScope is also public so I'll just move the scope check up and handle the rename inside FileCompactor
https://github.com/apache/accumulo/blob/cf57e343de77f416de10c22e0ed05ef37f433b36/core/src/main/java/org/apache/accumulo/core/iterators/IteratorUtil.java#L28-L35
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Added correct thread naming to compactor threads [accumulo]
Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #6144:
URL: https://github.com/apache/accumulo/pull/6144#discussion_r2842836201
##########
server/compactor/src/main/java/org/apache/accumulo/compactor/ExtCEnv.java:
##########
@@ -80,6 +80,11 @@ public String getQueueName() {
this.queueName = queueName;
}
+ @Override
+ public String getThreadPrefix() {
+ return "ExtC";
Review Comment:
If external compactions are not differentiated, then maybe we could use `CompactionEnv.getIteratorScope()` for the naming of the thread.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Added correct thread naming to compactor threads [accumulo]
Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6144:
URL: https://github.com/apache/accumulo/pull/6144#discussion_r2842746544
##########
server/compactor/src/main/java/org/apache/accumulo/compactor/ExtCEnv.java:
##########
@@ -80,6 +80,11 @@ public String getQueueName() {
this.queueName = queueName;
}
+ @Override
+ public String getThreadPrefix() {
+ return "ExtC";
Review Comment:
Could this just be "MajC"? ExternalCompactors only run major compactors, and these will be on the only compaction threads in the Compactor JVM.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Added correct thread naming to compactor threads [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr merged PR #6144:
URL: https://github.com/apache/accumulo/pull/6144
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org