[HBASE-10865] Store per table server assignment preference

Author: elliott

Summary:
* Allow user to add server perference in HTableDescriptor
* Honor that preference when creating the table.
* Add tests for ser/deser of server lists in HTD.

Test Plan:
* Wrote unit tests for HTD ser/deser
* Changed previous test that creates table on servers

iloveunittests

Reviewers: adela

Reviewed By: adela

CC: hbase-eng@

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

Task ID: 4023938

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584180 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-10776] Extract location cache function out as MetaCache

Author: daviddeng

Summary: Add `MetaCache` class

Test Plan: Testcase

Reviewers: manukranthk, fan, liyintang, gauravm

Reviewed By: liyintang

CC: hbase-eng@

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

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584181 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-10869] Add FS_TYPE in HBaseTestingUtility configuration

Author: daviddeng

Summary:
Motivation of doing this is two-folded:

1. local file system is more stable than `MiniDFSCluster`, so for cases only testing on HBase logic, using this may avoid unstable problems caused by DFS unstable problem.
1. Starting of local file systme is much faster.

Currently only a few of the testcases is switch to LFS mode for testing. Some other diff may switch more.

Implementaiton

For `FS_TYPE_DFS`, same as before.
For `FS_TYPE_LFS`, use `LocalFileSystem`

Test Plan:
`TestHBCpp`
`TestHTableClientScanner`

Reviewers: liyintang, manukranthk, fan, aaiyer, gauravm

Reviewed By: gauravm

CC: hbase-eng@

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

Task ID: 3789093

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584182 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-9930] Fixing RegionServer OOM Bug.

Author: manukranthk

Summary: Serialization/Deserialization in the Get object missed the setFilter() function in the readFields.

Test Plan: Unit tests

Reviewers: gauravm, rshroff, elliott

Reviewed By: gauravm

CC: hbase-eng@, elliott

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

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584183 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-10865] Fix TestHTableDescriptor unit test failure

Author: elliott

Summary: Fix the TestHTableDescriptor test failure due to added sanity checks.

Test Plan:
mvn test -Dtest=TestHTableDescriptor
Running org.apache.hadoop.hbase.TestHTableDescriptor
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.29 sec - in org.apache.hadoop.hbase.TestHTableDescriptor

Results :

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

Reviewers: adela

Reviewed By: adela

CC: hbase-eng@, adela

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

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584184 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-10865] Fix test TestSwiftSerDe

Author: elliott

Summary: Fix TestSwiftSerDe after HTD changes

Test Plan:  mvn clean test -Dtest=TestSwiftSerDe

Reviewers: adela

Reviewed By: adela

CC: hbase-eng@, gauravm

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

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