[master] Archive old log files into hourly sub-directory

Author: fan

Summary: So we can do bulk deletion on expired logs.

Test Plan: Unit test TestOldLogsCleaner updated to test the scenario.

Reviewers: liyintang, mycnyc, jiqingt, aaiyer

Reviewed By: liyintang

CC: hbase-eng@

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

Task ID: 2851371

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1525273 13f79535-47bb-0310-9956-ffa450edef68
[master] Add one more verification step in testLogCleaningWithArchivingToHourlyDir()

Author: fan

Summary: Verify test legacy old file is not removed at a wrong time.

Test Plan: Unit test

Reviewers: liyintang

Reviewed By: liyintang

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

Task ID: 2851371

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1525274 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-9102] Added finally block to unlock preloader lock in case of error.

Author: mahmoudeariby

Summary:
This diff adds finally blocks where we can unlock the scan preload lock in case of unexpected failure.

Test Plan: Run unit tests.

Reviewers: liyintang, rshroff, manukranthk

Reviewed By: liyintang

CC: hbase-eng@

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

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