accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1468545 - /accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
Date Tue, 16 Apr 2013 18:27:36 GMT
Author: ecn
Date: Tue Apr 16 18:27:35 2013
New Revision: 1468545

URL: http://svn.apache.org/r1468545
Log:
ACCUMULO-1281 use the new authenticater api

Modified:
    accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java

Modified: accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java?rev=1468545&r1=1468544&r2=1468545&view=diff
==============================================================================
--- accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
(original)
+++ accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
Tue Apr 16 18:27:35 2013
@@ -310,8 +310,8 @@ public class SimpleGarbageCollector impl
       
       // we just made a lot of changes to the !METADATA table: flush them out
       try {
-        AuthInfo creds = SecurityConstants.getSystemCredentials();
-        Connector connector = instance.getConnector(creds.getUser(), creds.getPassword());
+        TCredentials creds = SecurityConstants.getSystemCredentials();
+        Connector connector = instance.getConnector(credentials.getPrincipal(), CredentialHelper.extractToken(credentials));
         connector.tableOperations().compact(Constants.METADATA_TABLE_NAME, null, null, true,
true);
       } catch (Exception e) {
         log.warn(e, e);



Mime
View raw message