File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2828import io .netty .buffer .ByteBuf ;
2929import io .netty .buffer .ByteBufAllocator ;
3030import io .netty .buffer .Unpooled ;
31+ import io .netty .util .concurrent .DefaultThreadFactory ;
3132import java .io .BufferedWriter ;
3233import java .io .File ;
3334import java .io .FileOutputStream ;
@@ -76,7 +77,8 @@ class EntryLoggerAllocator {
7677 this .preallocatedLogId = logId ;
7778 this .recentlyCreatedEntryLogsStatus = recentlyCreatedEntryLogsStatus ;
7879 this .entryLogPreAllocationEnabled = conf .isEntryLogFilePreAllocationEnabled ();
79- this .allocatorExecutor = Executors .newSingleThreadExecutor ();
80+ this .allocatorExecutor = Executors .newSingleThreadExecutor (
81+ new DefaultThreadFactory ("EntryLoggerAllocator" ));
8082
8183 // Initialize the entry log header buffer. This cannot be a static object
8284 // since in our unit tests, we run multiple Bookies and thus EntryLoggers
You can’t perform that action at this time.
0 commit comments