hepenghui

Results 4 comments of hepenghui

plus,我是用root启动的

感谢回复 我在Q&A里看到该接口了,但奈何 请求后,后台会有NPE 。 ``` 2022-11-08 14:09:31.372 ERROR com.dfire.logs.ErrorLog.error:22 master handler future take error:{} java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at com.dfire.core.netty.master.MasterHandler.lambda$new$0(MasterHandler.java:58) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by:...

过一会儿请求失败,会有这个错误 ``` 2022-11-08 14:25:38.659 ERROR com.dfire.logs.ErrorLog.error:14 三个小时未获得master任务队列的获取信息 2022-11-08 14:25:38.660 ERROR com.dfire.logs.ErrorLog.error:22 请求/hera/homePage/getJobQueueInfo异常: java.lang.NullPointerException: null at com.dfire.core.netty.worker.WorkClient.getJobQueueInfoFromWeb(WorkClient.java:345) at com.dfire.controller.SystemManageController.getJobQueueInfo(SystemManageController.java:272) at com.dfire.controller.SystemManageController$$FastClassBySpringCGLIB$$b8d4e21.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.dfire.config.HeraAspect.around(HeraAspect.java:72)...

关于机器组监控问题,目前已解决,只是不知道会不会有其他影响 ![image](https://user-images.githubusercontent.com/26619789/202421130-4ebae57a-d2b2-48e8-a35a-193c8a9710eb.png) 原因是ProcessBuilder 返回数据大,2秒钟内stream又没有被读取,所以总是返回false,改代码如下: ![image](https://user-images.githubusercontent.com/26619789/202421446-bc552fdc-421d-422c-b106-47ef58f14b8b.png) 因为不知道如何增加ProcessBuilder stream的阈值,所以改为只要不报错直接返回0 望指正