File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
src/main/java/com/actiontech/dble/singleton Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ public static void interruptSingleThread(String threadName) throws Exception {
39
39
}
40
40
if (find == null )
41
41
throw new Exception ("Thread[" + threadName + "] does not exist" );
42
+
43
+ String [] array = threadName .split ("-" );
44
+ if (array .length == 2 && array [1 ].equals (NIO_FRONT_RW )) {
45
+ throw new Exception ("The kill operation of thread[" + threadName + "] is not supported" );
46
+ }
42
47
find .interrupt ();
43
48
LOGGER .info ("exec interrupt Thread[{}]" , find .getName ());
44
49
}
@@ -87,19 +92,7 @@ public static void recoverSingleThread(String threadName) throws Exception {
87
92
}
88
93
break ;
89
94
case NIO_FRONT_RW :
90
- if (SystemConfig .getInstance ().getUsingAIO () != 1 ) {
91
- try {
92
- NameableExecutor nameableExecutor4 = (NameableExecutor ) server .getNioFrontExecutor ();
93
- if (nameableExecutor4 .getPoolSize () > nameableExecutor4 .getActiveCount ()) {
94
- nameableExecutor4 .execute (new RW (server .getFrontRegisterQueue ()));
95
- } else {
96
- throw new Exception ("threadPool[{" + NIO_FRONT_RW + "}] does not need to be recover" );
97
- }
98
- } catch (IOException e ) {
99
- throw new Exception ("recover threadPool[{" + NIO_FRONT_RW + "}] fail" , e );
100
- }
101
- }
102
- break ;
95
+ throw new Exception ("The recover operation of thread[" + threadName + "] is not supported" );
103
96
case NIO_BACKEND_RW :
104
97
if (SystemConfig .getInstance ().getUsingAIO () != 1 ) {
105
98
try {
You can’t perform that action at this time.
0 commit comments