[Master] Make TestSplitLogWorker more stable

Author: liyintang

Summary: I have run through this unit test 10 times. The min time is 5.6 sec, the max time is 15.69 sec and the avg is 11.77 sec.

Test Plan: Run through this unit test 10 times successfuly

Reviewers: daviddeng, rshroff, elliott

Reviewed By: elliott

CC: hbase-dev@, adela, elliott

Differential Revision: https://phabricator.fb.com/D1287820

Task ID: 4122864

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589478 13f79535-47bb-0310-9956-ffa450edef68
[Master] Make TestMiniClusterLoadParallel more stable

Author: liyintang

Summary: I have run through this unit test 10 times locally. The min execution time is 134.44 sec, the max is 162.576 sec and the avg is 148.917 sec.

Test Plan: Have run this test successfully more than 10 times locally.

Reviewers: daviddeng, rshroff

Reviewed By: rshroff

CC: hbase-dev@

Differential Revision: https://phabricator.fb.com/D1287762

Task ID: 4123414

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589479 13f79535-47bb-0310-9956-ffa450edef68
[master] Fix negative sequenceid exception

Author: everyoung

Summary:
Fix negative sequenceid exception in HRegionSeqidTransanction when opening region with no families.
The HLog sequence id always starts from 1, so using 0 to indicate an empty record is fine.

Test Plan: All tests

Reviewers: daviddeng, jiqingt, aaiyer, rshroff, liyintang, elliott

Reviewed By: daviddeng

CC: hbase-dev@

Differential Revision: https://phabricator.fb.com/D1289443

Task ID: 4192110

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589480 13f79535-47bb-0310-9956-ffa450edef68
[Master] Fix TestRegionServerMetrics.testMultipleRegions

Author: adela

Summary:
we have been calculating the number of expected files wrongly - so I am not sure when this test actually started failing.
Problem is that we caluclate only two files for META and ROOT. Since meta has two column families (historian and info) the total should be 3.

Test Plan: here is a proof: https://phabricator.fb.com/P9319302 listing all possible files

Reviewers: daviddeng, liyintang, manukranthk, elliott

Reviewed By: daviddeng

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1290838

Task ID: 4195255

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589481 13f79535-47bb-0310-9956-ffa450edef68
[Master] Make TestRegionChecker more stable.

Author: elliott

Summary:
TestRegionChecker was unstable because region movement could take a
while and could be sporadic in number. This had all been dealt with
in TestRegionPlacement.  So I extracted the needed parts into a new
testing util.

Test Plan: bin/test/loop_tests.sh -t TestRegionChecker

Reviewers: liyintang, daviddeng, rshroff

Reviewed By: daviddeng

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1285388

Task ID: 3297398

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589482 13f79535-47bb-0310-9956-ffa450edef68
[Master] Make TestSplitLogManager more stable

Author: liyintang

Summary: The previous timeout is quite aggressive (100ms), which causes the test very unstable. The fix is relatively simple by increasing the timeout by one order of magnitude.

Test Plan: run through this test 10 times successfully

Reviewers: daviddeng, gauravm, rshroff

Reviewed By: rshroff

CC: hbase-dev@

Differential Revision: https://phabricator.fb.com/D1291647

Task ID: 3376834

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1589483 13f79535-47bb-0310-9956-ffa450edef68