accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1444996 - /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java
Date Mon, 11 Feb 2013 23:48:21 GMT
Author: vines
Date: Mon Feb 11 23:48:21 2013
New Revision: 1444996

URL: http://svn.apache.org/r1444996
Log:
ACCUMULO-1060 - bug found, explanation in comments of ticket


Modified:
    accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java

Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java?rev=1444996&r1=1444995&r2=1444996&view=diff
==============================================================================
--- accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java
(original)
+++ accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/MetadataTable.java
Mon Feb 11 23:48:21 2013
@@ -61,6 +61,7 @@ import org.apache.accumulo.core.data.Par
 import org.apache.accumulo.core.data.Range;
 import org.apache.accumulo.core.data.Value;
 import org.apache.accumulo.core.file.FileUtil;
+import org.apache.accumulo.core.security.CredentialHelper;
 import org.apache.accumulo.core.security.thrift.Credential;
 import org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException;
 import org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException;
@@ -916,7 +917,7 @@ public class MetadataTable extends org.a
     LogEntryIterator(Credential creds) throws IOException, KeeperException, InterruptedException
{
       rootTabletEntries = getLogEntries(creds, Constants.ROOT_TABLET_EXTENT).iterator();
       try {
-        Scanner scanner = HdfsZooInstance.getInstance().getConnector(creds.getPrincipal(),
creds.getToken())
+        Scanner scanner = HdfsZooInstance.getInstance().getConnector(creds.getPrincipal(),
CredentialHelper.extractToken(creds))
             .createScanner(Constants.METADATA_TABLE_NAME, Constants.NO_AUTHS);
         scanner.fetchColumnFamily(Constants.METADATA_LOG_COLUMN_FAMILY);
         metadataEntries = scanner.iterator();



Mime
View raw message