-
Notifications
You must be signed in to change notification settings - Fork 46
当使用TIMEOUT_FOREVER时,发生死锁 #19
Description


当Expect4j在调用consumer.waitForBuffer(singleTimeOut);的时候,BlockingConsumer似乎一直wait,而Expect4j所在的线程也一直无法运行。
Log:
2015-10-21 17:31:56,196 [pool-1-thread-1] DEBUG log.SSHClient: ----------Running commands are listed as follows:----------
2015-10-21 17:31:56,196 [pool-1-thread-1] DEBUG log.SSHClient: ssh root@10.16.35.114
2015-10-21 17:31:56,196 [pool-1-thread-1] DEBUG log.SSHClient: egrep 'ppag867871a15fab' /data/logs/filter.log
2015-10-21 17:31:56,196 [pool-1-thread-1] DEBUG log.SSHClient: ----------End----------
2015-10-21 17:31:56,197 [pool-1-thread-1] DEBUG expect4j.Expect4j: Timeout set to -1 milliseconds, expires at 1445419916196
2015-10-21 17:32:01,239 [pool-1-thread-1] DEBUG expect4j.Expect4j: Finding first match using >>><<< as the haystack
2015-10-21 17:32:48,196 [Thread-1] DEBUG expect4j.BlockingConsumer: BlockingConsumer expect4j.BlockingConsumer@546aa225 appending 71 characters to the buffer
2015-10-21 17:32:48,196 [Thread-1] DEBUG expect4j.BlockingConsumer: Adding to buffer: Last login: Wed Oct 21 17:13:29 2015 from 10.2.25.75\r\r\n[@zw_76_156 ~]$
2015-10-21 17:32:54,734 [pool-1-thread-1] DEBUG expect4j.Expect4j: Finding first match using >>>Last login: Wed Oct 21 17:13:29 2015 from 10.2.25.75\r\r\n[@zw_76_156 ~]$ <<< as the haystack