[ 
https://issues.apache.org/jira/browse/HBASE-18089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051822#comment-16051822
 ] 

Xiang Li commented on HBASE-18089:
----------------------------------

The logic of testImportanceOfHeartbeats(testHeartbeatBetweenRows()):
* Set client scanner lease period (timeout) to 1000 ms (see CLIENT_TIMEOUT)
* It scans 5 rows (see NUM_ROWS), and set the time to sleep between each row to 
200 ms (see DEFAULT_ROW_SLEEP_TIME).
* The call duration is like 1000+ ms (a little more than DEFAULT_ROW_SLEEP_TIME 
* NUM_ROWS ms), while call time-out is 1000 ms (set by client scanner lease 
period), so it will time-out if heartbeat is disabled.
* Result expected
** When heartbeat is enabled, no exception is expected
** When heartbeat is disabled, the following exception is expected
{code}
java.net.SocketTimeoutException: callTimeout=1000, callDuration=1016: Call to 
xxxx failed on local exception: 
org.apache.hadoop.hbase.ipc.CallTimeoutException: Call id=34, waitTime=1013, 
rpcTimetout=1000 row '' on table 'testScannerHeartbeatMessagesTable' at 
region=testScannerHeartbeatMessagesTable,,1497612784023.958b55cc0d2971377a027bdf1a1698fa.,
 hostname=xxxx, seqNum=2
{code}

> TestScannerHeartbeatMessages fails in branch-1
> ----------------------------------------------
>
>                 Key: HBASE-18089
>                 URL: https://issues.apache.org/jira/browse/HBASE-18089
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Xiang Li
>         Attachments: test-heartbeat-6860.out
>
>
> From 
> https://builds.apache.org/job/PreCommit-HBASE-Build/6860/artifact/patchprocess/patch-unit-hbase-server.txt
>  :
> {code}
> testScannerHeartbeatMessages(org.apache.hadoop.hbase.regionserver.TestScannerHeartbeatMessages)
>   Time elapsed: 2.376 sec  <<< FAILURE!
> java.lang.AssertionError: Heartbeats messages are disabled, an exception 
> should be thrown. If an exception  is not thrown, the test case is not 
> testing the importance of heartbeat messages
>       at org.junit.Assert.fail(Assert.java:88)
>       at 
> org.apache.hadoop.hbase.regionserver.TestScannerHeartbeatMessages.testImportanceOfHeartbeats(TestScannerHeartbeatMessages.java:237)
>       at 
> org.apache.hadoop.hbase.regionserver.TestScannerHeartbeatMessages.testScannerHeartbeatMessages(TestScannerHeartbeatMessages.java:207)
> {code}
> Similar test failure can be observed in 
> https://builds.apache.org/job/PreCommit-HBASE-Build/6852/artifact/patchprocess/patch-unit-hbase-server.txt



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to