Katarína Hermanová created WFCORE-5146:
------------------------------------------
Summary: WFLYPRT0057 message handling improvement
Key: WFCORE-5146
URL:
https://issues.redhat.com/browse/WFCORE-5146
Project: WildFly Core
Issue Type: Enhancement
Components: CLI, Management, Remoting
Reporter: Katarína Hermanová
Assignee: Katarína Hermanová
WFLYPRT0057 message may or may not be output.
This message is output if an AsyncTaskRunner runable thread is not
null(_ManagementRequestContextImpl.java:139_).
{code:java|title=org/jboss.as/protocol/mgmt/ManagementRequestContextImpl.java}
126 private abstract static class AsyncTaskRunner implements Runnable, Cancellable {
--- snip ---
135 @Override
136 public Cancellable cancel() {
137 if (cancellable && cancelled.compareAndSet(false, true)) {
138 final Thread thread = this.thread;
139 if(thread != null) {
140 thread.interrupt();
141
ProtocolLogger.ROOT_LOGGER.cancelledAsyncTask(getClass().getSimpleName(), thread);
142 }
143 }
144 return this;
145 }
--- snip ---
152 @Override
153 public void run() {
154 if (cancellable && cancelled.get()) {
155 Thread.currentThread().interrupt();
156
ProtocolLogger.ROOT_LOGGER.cancelledAsyncTaskBeforeRun(getClass().getSimpleName());
157 }
158 this.thread = Thread.currentThread();
159 try {
160 doExecute();
161 } finally {
162 this.thread = null;
163 }
164 }
{code}
The process is working on multi thread, so the WFLYPRT0057 message is output by race
condition of null thread handling(_ManagementRequestContextImpl.java:162_).
This is just a timing, we cannot determine the need for this message.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)