Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.1 5844cc48d -> cd9607064
PHOENIX-3726 Addendum to use modifiable list Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/cd960706 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/cd960706 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/cd960706 Branch: refs/heads/4.x-HBase-1.1 Commit: cd960706423c2ad7d57f54b05b6a2f04ce4fed0b Parents: 5844cc4 Author: Samarth <samarth.j...@salesforce.com> Authored: Thu Mar 9 13:58:51 2017 -0800 Committer: Samarth <samarth.j...@salesforce.com> Committed: Thu Mar 9 13:58:51 2017 -0800 ---------------------------------------------------------------------- .../org/apache/phoenix/query/ConnectionQueryServicesImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/cd960706/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java index 1155f7b..3e4f3b9 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java @@ -3085,8 +3085,7 @@ public class ConnectionQueryServicesImpl extends DelegateQueryServices implement try (HBaseAdmin admin = getAdmin()) { ensureNamespaceCreated(QueryConstants.SYSTEM_SCHEMA_NAME); - List<TableName> tableNames = Arrays - .asList(admin.listTableNames(QueryConstants.SYSTEM_SCHEMA_NAME + "\\..*")); + List<TableName> tableNames = Lists.newArrayList(admin.listTableNames(QueryConstants.SYSTEM_SCHEMA_NAME + "\\..*")); if (tableNames.size() == 0) { return; } if (tableNames.size() > 5) { logger.warn("Expected 5 system tables but found " + tableNames.size() + ":" + tableNames);