kyoty commented on issue #5811:
URL:
https://github.com/apache/dolphinscheduler/issues/5811#issuecomment-878878797
Thanks @CalvinKirs , if so ,what should we do next?
In windows, the server would try to get `handle` by reflection, but the type
of `handle` is long rather than int, the `getProcessId`
woudle always throws an exception.
```java
public static final String PID = OSUtils.isWindows() ? "handle" : "pid";
// AbstractCommandExecutor.java
private int getProcessId(Process process) {
int processId = 0;
try {
Field f = process.getClass().getDeclaredField(Constants.PID);
f.setAccessible(true);
processId = f.getInt(process);
} catch (Throwable e) {
logger.error(e.getMessage(), e);
}
return processId;
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]