CalvinKirs opened a new pull request, #25565: URL: https://github.com/apache/doris/pull/25565
## Proposed changes #### **env macOS** **SQL:** ``` show frontends disks``` **exception** ```log 2023-10-18 10:18:03,360 WARN (mysql-nio-pool-12|2513) [StmtExecutor.executeByLegacy():807] execute Exception. stmt[3670, 8b87bca4bb7c465b-9a90ab8003c5760e] java.lang.NullPointerException: null at org.apache.doris.common.proc.FrontendsProcNode.getFrontendsDiskInfo(FrontendsProcNode.java:184) ~[classes/:?] at org.apache.doris.common.proc.FrontendsProcNode.getFrontendsInfo(FrontendsProcNode.java:87) ~[classes/:?] at org.apache.doris.qe.ShowExecutor.handleShowFrontends(ShowExecutor.java:1983) ~[classes/:?] at org.apache.doris.qe.ShowExecutor.execute(ShowExecutor.java:356) ~[classes/:?] at org.apache.doris.qe.StmtExecutor.handleShow(StmtExecutor.java:2210) ~[classes/:?] at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:775) ~[classes/:?] at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:468) ~[classes/:?] at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:438) ~[classes/:?] at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:353) ~[classes/:?] at org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:501) ~[classes/:?] at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:752) ~[classes/:?] at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[classes/:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_362] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_362] at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_362] ``` ``` Linux df -k output Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 8256952 2094712 5742232 27% / Max OS df -k output Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on /dev/disk1s1 488555536 97511104 390044432 20% 121655 4884849711 0% / ``` ## Further comments The default size of mac `df` is 512blocks, and the default size of linux is 1024 bloks. Therefore, when executing the command, use `df -k` to limit the output unit to 1024blocks. The output results of mac os and Linux os are also different, so the corresponding information is obtained according to different systems. The default size of mac `df` is 512blocks, and the default size of linux is 1024 bloks. Therefore, when executing the command, use `df -k` to limit the output unit to 1024blocks. The output results of mac os and Linux os are also different, so the corresponding information is obtained according to different systems. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org