Java nio 空轮询bug

2018-08-23
阅读 2 分钟
5.2k
This is an issue with poll (and epoll) on Linux. If a file descriptor for a connected socket is polled with a request event mask of 0, and if the connection is abruptly terminated (RST) then the poll wakes up with the POLLHUP (and maybe POLLERR) bit set in the returned event set. The implication ...

记录使用nutch执行inject的时候遇到的第一个坑 java.lang.NullPointerException

2016-11-08
阅读 2 分钟
3.4k
源码参见:hadoop-common-{version}.jar , Shell.java line 370 : winUtilsPath = getQualifiedBinPath("winutils.exe"); 调用链中:函数checkHadoopHome() 找不到hadoop安装目录引起的报NPE

我对Postgresql递归查询的理解

2016-08-02
阅读 1 分钟
6.3k
递归查询大家都知道,常见的如一张表,包含id(主键),parent_id(该记录的父亲id),比如我们要从某1个id往下找他所有的儿子还有孙子(这时候心里要有一颗树的形象),该怎么写?