You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2013/04/16 20:27:36 UTC
svn commit: r1468545 -
/accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
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);