public abstract class oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager extends oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager
{
private static final java.lang.String ZK_CONF_PREFIX;
public static final java.lang.String ZK_DTSM_ZK_NUM_RETRIES;
public static final java.lang.String ZK_DTSM_ZK_SESSION_TIMEOUT;
public static final java.lang.String ZK_DTSM_ZK_CONNECTION_TIMEOUT;
public static final java.lang.String ZK_DTSM_ZK_SHUTDOWN_TIMEOUT;
public static final java.lang.String ZK_DTSM_ZNODE_WORKING_PATH;
public static final java.lang.String ZK_DTSM_ZK_AUTH_TYPE;
public static final java.lang.String ZK_DTSM_ZK_CONNECTION_STRING;
public static final java.lang.String ZK_DTSM_ZK_KERBEROS_KEYTAB;
public static final java.lang.String ZK_DTSM_ZK_KERBEROS_PRINCIPAL;
public static final int ZK_DTSM_ZK_NUM_RETRIES_DEFAULT;
public static final int ZK_DTSM_ZK_SESSION_TIMEOUT_DEFAULT;
public static final int ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT;
public static final int ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT;
public static final java.lang.String ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT;
private static org.slf4j.Logger LOG;
private static final java.lang.String JAAS_LOGIN_ENTRY_NAME;
private static final java.lang.String ZK_DTSM_NAMESPACE;
private static final java.lang.String ZK_DTSM_SEQNUM_ROOT;
private static final java.lang.String ZK_DTSM_KEYID_ROOT;
private static final java.lang.String ZK_DTSM_TOKENS_ROOT;
private static final java.lang.String ZK_DTSM_MASTER_KEY_ROOT;
private static final java.lang.String DELEGATION_KEY_PREFIX;
private static final java.lang.String DELEGATION_TOKEN_PREFIX;
private static final java.lang.ThreadLocal CURATOR_TL;
private final boolean isExternalClient;
private final oadd.org.apache.curator.framework.CuratorFramework zkClient;
private oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter;
private oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter;
private oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache;
private oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache;
private java.util.concurrent.ExecutorService listenerThreadPool;
private final long shutdownTimeout;
public static void setCurator(oadd.org.apache.curator.framework.CuratorFramework)
{
java.lang.ThreadLocal v;
oadd.org.apache.curator.framework.CuratorFramework v;
v := @parameter: oadd.org.apache.curator.framework.CuratorFramework;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.ThreadLocal CURATOR_TL>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(v);
return;
}
public void <init>(oadd.org.apache.hadoop.conf.Configuration)
{
oadd.org.apache.hadoop.conf.Configuration v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$SASLOwnerACLProvider v;
boolean v, v, v, v;
java.lang.ThreadLocal v, v;
oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder v, v, v, v, v, v, v;
oadd.org.apache.curator.framework.CuratorFramework v, v;
java.lang.Exception v;
oadd.org.apache.curator.framework.api.ACLProvider v;
long v, v, v, v, v, v, v, v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v, v;
java.lang.String v, v, v, v, v, v, v, v;
oadd.org.apache.curator.retry.RetryNTimes v;
org.slf4j.Logger v, v;
oadd.org.apache.curator.ensemble.fixed.FixedEnsembleProvider v;
java.lang.RuntimeException v;
java.lang.Object v, v;
oadd.org.apache.curator.framework.imps.DefaultACLProvider v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.conf.Configuration;
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: long getLong(java.lang.String,long)>("delegation-token.update-interval.sec", 86400L);
v = v * 1000L;
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: long getLong(java.lang.String,long)>("delegation-token.max-lifetime.sec", 604800L);
v = v * 1000L;
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: long getLong(java.lang.String,long)>("delegation-token.renew-interval.sec", 86400L);
v = v * 1000L;
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: long getLong(java.lang.String,long)>("delegation-token.removal-scan-interval.sec", 3600L);
v = v * 1000L;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: void <init>(long,long,long,long)>(v, v, v, v);
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: long getLong(java.lang.String,long)>("zk-dt-secret-manager.zkShutdownTimeout", 10000L);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: long shutdownTimeout> = v;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.ThreadLocal CURATOR_TL>;
v = virtualinvoke v.<java.lang.ThreadLocal: java.lang.Object get()>();
if v == null goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.ThreadLocal CURATOR_TL>;
v = virtualinvoke v.<java.lang.ThreadLocal: java.lang.Object get()>();
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String,java.lang.String)>("zk-dt-secret-manager.znodeWorkingPath", "zkdtsm");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/ZKDTSMRoot");
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.CuratorFramework usingNamespace(java.lang.String)>(v);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient> = v;
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: boolean isExternalClient> = 1;
goto label;
label:
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String)>("zk-dt-secret-manager.zkConnectionString");
staticinvoke <oadd.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "Zookeeper connection string cannot be null");
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String)>("zk-dt-secret-manager.zkAuthType");
staticinvoke <oadd.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "Zookeeper authType cannot be null !!");
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("sasl");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("none");
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <oadd.com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.Object)>(v, "Zookeeper authType must be one of [none, sasl]");
label:
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("sasl");
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>("Connecting to ZooKeeper with SASL/Kerberosand using \'sasl\' ACLs");
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String setJaasConfiguration(oadd.org.apache.hadoop.conf.Configuration)>(v);
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>("zookeeper.sasl.clientconfig", "ZKDelegationTokenSecretManagerClient");
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>("zookeeper.authProvider.1", "oadd.org.apache.zookeeper.server.auth.SASLAuthenticationProvider");
v = new oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$SASLOwnerACLProvider;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$SASLOwnerACLProvider: void <init>(java.lang.String)>(v);
v = v;
goto label;
label:
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>("Connecting to ZooKeeper without authentication");
v = new oadd.org.apache.curator.framework.imps.DefaultACLProvider;
specialinvoke v.<oadd.org.apache.curator.framework.imps.DefaultACLProvider: void <init>()>();
v = v;
label:
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: int getInt(java.lang.String,int)>("zk-dt-secret-manager.zkSessionTimeout", 10000);
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: int getInt(java.lang.String,int)>("zk-dt-secret-manager.zkNumRetries", 3);
v = staticinvoke <oadd.org.apache.curator.framework.CuratorFrameworkFactory: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder builder()>();
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder aclProvider(oadd.org.apache.curator.framework.api.ACLProvider)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String,java.lang.String)>("zk-dt-secret-manager.znodeWorkingPath", "zkdtsm");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/ZKDTSMRoot");
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder namespace(java.lang.String)>(v);
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder sessionTimeoutMs(int)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: int getInt(java.lang.String,int)>("zk-dt-secret-manager.zkConnectionTimeout", 10000);
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder connectionTimeoutMs(int)>(v);
v = new oadd.org.apache.curator.retry.RetryNTimes;
v = v / v;
specialinvoke v.<oadd.org.apache.curator.retry.RetryNTimes: void <init>(int,int)>(v, v);
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder retryPolicy(oadd.org.apache.curator.RetryPolicy)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Exception)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Could not Load ZK acls or auth: \u0001");
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
v = new oadd.org.apache.curator.ensemble.fixed.FixedEnsembleProvider;
specialinvoke v.<oadd.org.apache.curator.ensemble.fixed.FixedEnsembleProvider: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder ensembleProvider(oadd.org.apache.curator.ensemble.EnsembleProvider)>(v);
v = virtualinvoke v.<oadd.org.apache.curator.framework.CuratorFrameworkFactory$Builder: oadd.org.apache.curator.framework.CuratorFramework build()>();
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient> = v;
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: boolean isExternalClient> = 0;
label:
return;
catch java.lang.Exception from label to label with label;
}
private java.lang.String setJaasConfiguration(oadd.org.apache.hadoop.conf.Configuration) throws java.lang.Exception
{
java.lang.String[] v;
java.lang.IllegalArgumentException v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$JaasConfiguration v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v;
oadd.org.apache.hadoop.conf.Configuration v;
java.lang.String v, v, v, v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.conf.Configuration;
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String,java.lang.String)>("zk-dt-secret-manager.kerberos.keytab", "");
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
if v == null goto label;
v = virtualinvoke v.<java.lang.String: int length()>();
if v != 0 goto label;
label:
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("zk-dt-secret-manager.kerberos.keytab must be specified");
throw v;
label:
v = virtualinvoke v.<oadd.org.apache.hadoop.conf.Configuration: java.lang.String get(java.lang.String,java.lang.String)>("zk-dt-secret-manager.kerberos.principal", "");
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = staticinvoke <oadd.org.apache.hadoop.security.SecurityUtil: java.lang.String getServerPrincipal(java.lang.String,java.lang.String)>(v, "");
if v == null goto label;
v = virtualinvoke v.<java.lang.String: int length()>();
if v != 0 goto label;
label:
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("zk-dt-secret-manager.kerberos.principal must be specified");
throw v;
label:
v = new oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$JaasConfiguration;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$JaasConfiguration: void <init>(java.lang.String,java.lang.String,java.lang.String)>("ZKDelegationTokenSecretManagerClient", v, v);
staticinvoke <javax.security.auth.login.Configuration: void setConfiguration(javax.security.auth.login.Configuration)>(v);
v = virtualinvoke v.<java.lang.String: java.lang.String[] split(java.lang.String)>("[/@]");
v = v[0];
return v;
}
public void startThreads() throws java.io.IOException
{
oadd.org.apache.curator.utils.EnsurePath v;
oadd.org.apache.curator.CuratorZookeeperClient v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$1 v;
boolean v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$2 v;
oadd.org.apache.curator.framework.recipes.shared.SharedCount v, v, v, v, v, v;
oadd.org.apache.curator.framework.CuratorFramework v, v, v, v, v, v, v, v;
java.lang.Exception v, v, v, v, v, v, v;
oadd.org.apache.curator.framework.listen.ListenerContainer v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.lang.String v, v;
java.util.concurrent.ExecutorService v, v, v;
java.io.IOException v, v, v, v, v, v;
java.lang.RuntimeException v;
oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache v, v, v, v, v, v, v, v;
oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: boolean isExternalClient>;
if v != 0 goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: void start()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not start Curator Framework", v);
throw v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.CuratorFramework usingNamespace(java.lang.String)>(null);
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: java.lang.String getNamespace()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("/\u0001");
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.utils.EnsurePath newNamespaceAwareEnsurePath(java.lang.String)>(v);
label:
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.CuratorZookeeperClient getZookeeperClient()>();
virtualinvoke v.<oadd.org.apache.curator.utils.EnsurePath: void ensure(oadd.org.apache.curator.CuratorZookeeperClient)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not create namespace", v);
throw v;
label:
v = staticinvoke <java.util.concurrent.Executors: java.util.concurrent.ExecutorService newSingleThreadExecutor()>();
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool> = v;
label:
v = new oadd.org.apache.curator.framework.recipes.shared.SharedCount;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
specialinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void <init>(oadd.org.apache.curator.framework.CuratorFramework,java.lang.String,int)>(v, "/ZKDTSMSeqNumRoot", 0);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter> = v;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void start()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not start Sequence Counter", v);
throw v;
label:
v = new oadd.org.apache.curator.framework.recipes.shared.SharedCount;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
specialinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void <init>(oadd.org.apache.curator.framework.CuratorFramework,java.lang.String,int)>(v, "/ZKDTSMKeyIdRoot", 0);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter> = v;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void start()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not start KeyId Counter", v);
throw v;
label:
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void createPersistentNode(java.lang.String)>("/ZKDTSMMasterKeyRoot");
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void createPersistentNode(java.lang.String)>("/ZKDTSMTokensRoot");
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>("Could not create ZK paths");
throw v;
label:
v = new oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
specialinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void <init>(oadd.org.apache.curator.framework.CuratorFramework,java.lang.String,boolean)>(v, "/ZKDTSMMasterKeyRoot", 1);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache> = v;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
v = <oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode BUILD_INITIAL_CACHE>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void start(oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode)>(v);
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: oadd.org.apache.curator.framework.listen.ListenerContainer getListenable()>();
v = new oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$1;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$1: void <init>(oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager)>(v);
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
virtualinvoke v.<oadd.org.apache.curator.framework.listen.ListenerContainer: void addListener(java.lang.Object,java.util.concurrent.Executor)>(v, v);
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void loadFromZKCache(boolean)>(0);
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not start PathChildrenCache for keys", v);
throw v;
label:
v = new oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
specialinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void <init>(oadd.org.apache.curator.framework.CuratorFramework,java.lang.String,boolean)>(v, "/ZKDTSMTokensRoot", 1);
v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache> = v;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
v = <oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode BUILD_INITIAL_CACHE>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void start(oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache$StartMode)>(v);
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: oadd.org.apache.curator.framework.listen.ListenerContainer getListenable()>();
v = new oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$2;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$2: void <init>(oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager)>(v);
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
virtualinvoke v.<oadd.org.apache.curator.framework.listen.ListenerContainer: void addListener(java.lang.Object,java.util.concurrent.Executor)>(v, v);
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void loadFromZKCache(boolean)>(1);
label:
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>("Could not start PathChildrenCache for tokens", v);
throw v;
label:
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: void startThreads()>();
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
}
private void loadFromZKCache(boolean)
{
byte[] v;
java.lang.Integer v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
java.lang.String v, v, v;
boolean v, v;
org.slf4j.Logger v, v, v, v, v;
java.util.Iterator v;
java.lang.Exception v;
java.util.List v;
oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache v, v;
java.lang.Object v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: boolean;
if v == 0 goto label;
v = "token";
goto label;
label:
v = "key";
label:
v = v;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String,java.lang.Object)>("Starting to load {} cache.", v);
if v == 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: java.util.List getCurrentData()>();
goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: java.util.List getCurrentData()>();
label:
v = 0;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
label:
if v == 0 goto label;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void processTokenAddOrUpdate(oadd.org.apache.curator.framework.recipes.cache.ChildData)>(v);
goto label;
label:
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.ChildData: byte[] getData()>();
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void processKeyAddOrUpdate(byte[])>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.ChildData: java.lang.String getPath()>();
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String,java.lang.Object)>("Ignoring node {} because it failed to load.", v);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Throwable)>("Failure exception:", v);
v = v + 1;
goto label;
label:
if v <= 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Object,java.lang.Object)>("Ignored {} nodes while loading {} cache.", v, v);
label:
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String,java.lang.Object)>("Loaded {} cache.", v);
return;
catch java.lang.Exception from label to label with label;
}
private void processKeyAddOrUpdate(byte[]) throws java.io.IOException
{
java.lang.Throwable v;
byte[] v;
java.io.DataInputStream v;
java.lang.Integer v;
java.io.ByteArrayInputStream v;
java.util.Map v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: byte[];
v = new java.io.ByteArrayInputStream;
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = new oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: void <init>()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: void readFields(java.io.DataInput)>(v);
entermonitor v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map allKeys>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: int getKeyId()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private void processKeyRemoved(java.lang.String)
{
java.lang.Throwable v;
java.lang.Integer v;
java.util.Map v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v, v, v;
java.lang.String v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: int lastIndexOf(int)>(47);
if v <= 0 goto label;
v = v + 1;
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
v = virtualinvoke v.<java.lang.String: int indexOf(int)>(95);
if v <= 0 goto label;
v = v + 1;
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
v = staticinvoke <java.lang.Integer: int parseInt(java.lang.String)>(v);
entermonitor v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map allKeys>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private void processTokenAddOrUpdate(oadd.org.apache.curator.framework.recipes.cache.ChildData) throws java.io.IOException
{
java.lang.Throwable v;
byte[] v, v;
java.io.DataInputStream v;
long v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
oadd.org.apache.curator.framework.recipes.cache.ChildData v;
oadd.org.apache.hadoop.security.token.TokenIdentifier v;
java.io.ByteArrayInputStream v;
java.util.Map v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.curator.framework.recipes.cache.ChildData;
v = new java.io.ByteArrayInputStream;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.ChildData: byte[] getData()>();
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.TokenIdentifier createIdentifier()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: void readFields(java.io.DataInput)>(v);
v = virtualinvoke v.<java.io.DataInputStream: long readLong()>();
v = virtualinvoke v.<java.io.DataInputStream: int readInt()>();
v = newarray (byte)[v];
v = virtualinvoke v.<java.io.DataInputStream: int read(byte[],int,int)>(v, 0, v);
v = (int) -1;
if v <= v goto label;
v = new oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation: void <init>(long,byte[])>(v, v);
entermonitor v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
virtualinvoke v.<java.lang.Object: void notifyAll()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private void processTokenRemoved(oadd.org.apache.curator.framework.recipes.cache.ChildData) throws java.io.IOException
{
java.lang.Throwable v;
byte[] v;
java.io.DataInputStream v;
oadd.org.apache.curator.framework.recipes.cache.ChildData v;
oadd.org.apache.hadoop.security.token.TokenIdentifier v;
java.io.ByteArrayInputStream v;
java.util.Map v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.curator.framework.recipes.cache.ChildData;
v = new java.io.ByteArrayInputStream;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.ChildData: byte[] getData()>();
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.TokenIdentifier createIdentifier()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: void readFields(java.io.DataInput)>(v);
entermonitor v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
virtualinvoke v.<java.lang.Object: void notifyAll()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void stopThreads()
{
java.lang.Thread v;
boolean v, v;
oadd.org.apache.curator.framework.recipes.shared.SharedCount v, v, v, v;
oadd.org.apache.curator.framework.CuratorFramework v, v;
java.lang.Exception v, v, v, v, v;
long v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.util.concurrent.ExecutorService v, v, v, v, v;
org.slf4j.Logger v, v, v, v, v, v;
java.util.concurrent.TimeUnit v;
java.lang.InterruptedException v;
oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache v, v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: void stopThreads()>();
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache tokenCache>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void close()>();
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Could not stop Delegation Token Cache", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void close()>();
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Could not stop Delegation Token Counter", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void close()>();
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Could not stop Key Id Counter", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache keyCache>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.cache.PathChildrenCache: void close()>();
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Could not stop KeyCache", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: boolean isExternalClient>;
if v != 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: void close()>();
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Could not stop Curator Framework", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
interfaceinvoke v.<java.util.concurrent.ExecutorService: void shutdown()>();
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: long shutdownTimeout>;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
v = interfaceinvoke v.<java.util.concurrent.ExecutorService: boolean awaitTermination(long,java.util.concurrent.TimeUnit)>(v, v);
if v != 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>("Forcing Listener threadPool to shutdown !!");
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
interfaceinvoke v.<java.util.concurrent.ExecutorService: java.util.List shutdownNow()>();
label:
goto label;
label:
v := @caughtexception;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
interfaceinvoke v.<java.util.concurrent.ExecutorService: java.util.List shutdownNow()>();
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
label:
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.InterruptedException from label to label with label;
}
private void createPersistentNode(java.lang.String) throws java.lang.Exception
{
oadd.org.apache.zookeeper.CreateMode v;
oadd.org.apache.zookeeper.KeeperException$NodeExistsException v;
org.slf4j.Logger v;
java.io.IOException v;
oadd.org.apache.curator.framework.CuratorFramework v;
java.lang.Exception v;
oadd.org.apache.curator.framework.api.CreateBuilder v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.lang.Object v;
java.lang.String v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: java.lang.String;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.CreateBuilder create()>();
v = <oadd.org.apache.zookeeper.CreateMode: oadd.org.apache.zookeeper.CreateMode PERSISTENT>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.CreateBuilder: java.lang.Object withMode(oadd.org.apache.zookeeper.CreateMode)>(v);
interfaceinvoke v.<oadd.org.apache.curator.framework.api.ACLBackgroundPathAndBytesable: java.lang.Object forPath(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u znode already exists !!");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u znode could not be created !!");
specialinvoke v.<java.io.IOException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch oadd.org.apache.zookeeper.KeeperException$NodeExistsException from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected int getDelegationTokenSeqNum()
{
int v;
oadd.org.apache.curator.framework.recipes.shared.SharedCount v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: int getCount()>();
return v;
}
private void incrSharedCount(oadd.org.apache.curator.framework.recipes.shared.SharedCount) throws java.lang.Exception
{
oadd.org.apache.curator.framework.recipes.shared.SharedCount v;
oadd.org.apache.curator.framework.recipes.shared.VersionedValue v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v;
java.lang.Object v;
boolean v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.curator.framework.recipes.shared.SharedCount;
label:
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: oadd.org.apache.curator.framework.recipes.shared.VersionedValue getVersionedValue()>();
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.VersionedValue: java.lang.Object getValue()>();
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = v + 1;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: boolean trySetCount(oadd.org.apache.curator.framework.recipes.shared.VersionedValue,int)>(v, v);
if v == 0 goto label;
return;
}
protected int incrementDelegationTokenSeqNum()
{
oadd.org.apache.curator.framework.recipes.shared.SharedCount v, v;
org.slf4j.Logger v;
java.lang.RuntimeException v;
java.lang.Exception v;
java.lang.InterruptedException v;
java.lang.Thread v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void incrSharedCount(oadd.org.apache.curator.framework.recipes.shared.SharedCount)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Throwable)>("Thread interrupted while performing token counter increment", v);
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>("Could not increment shared counter !!", v);
throw v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: int getCount()>();
return v;
catch java.lang.InterruptedException from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected void setDelegationTokenSeqNum(int)
{
oadd.org.apache.curator.framework.recipes.shared.SharedCount v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
java.lang.RuntimeException v;
java.lang.Exception v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: int;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount delTokSeqCounter>;
virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: void setCount(int)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>("Could not set shared counter !!", v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
protected int getCurrentKeyId()
{
int v;
oadd.org.apache.curator.framework.recipes.shared.SharedCount v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: int getCount()>();
return v;
}
protected int incrementCurrentKeyId()
{
oadd.org.apache.curator.framework.recipes.shared.SharedCount v, v;
org.slf4j.Logger v;
java.lang.RuntimeException v;
java.lang.Exception v;
java.lang.InterruptedException v;
java.lang.Thread v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void incrSharedCount(oadd.org.apache.curator.framework.recipes.shared.SharedCount)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Throwable)>("Thread interrupted while performing keyId increment", v);
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>("Could not increment shared keyId counter !!", v);
throw v;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.recipes.shared.SharedCount keyIdSeqCounter>;
v = virtualinvoke v.<oadd.org.apache.curator.framework.recipes.shared.SharedCount: int getCount()>();
return v;
catch java.lang.InterruptedException from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected oadd.org.apache.hadoop.security.token.delegation.DelegationKey getDelegationKey(int)
{
org.slf4j.Logger v;
java.io.IOException v;
java.lang.Integer v, v;
java.util.Map v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
java.lang.Object v;
java.lang.String v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: int;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map allKeys>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
label:
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.delegation.DelegationKey getKeyFromZK(int)>(v);
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map allKeys>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Error retrieving key [\u] from ZK");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>(v, v);
label:
return v;
catch java.io.IOException from label to label with label;
}
private oadd.org.apache.hadoop.security.token.delegation.DelegationKey getKeyFromZK(int) throws java.io.IOException
{
java.io.DataInputStream v;
oadd.org.apache.curator.framework.api.GetDataBuilder v;
java.io.ByteArrayInputStream v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v;
java.lang.String v, v, v;
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
org.slf4j.Logger v;
java.io.IOException v;
oadd.org.apache.zookeeper.KeeperException$NoNodeException v;
oadd.org.apache.curator.framework.CuratorFramework v;
java.lang.Exception v;
java.lang.Object v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: int;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DK_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMMasterKeyRoot", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.GetDataBuilder getData()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.GetDataBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
v = lengthof v;
if v != 0 goto label;
label:
return null;
label:
v = new java.io.ByteArrayInputStream;
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = new oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: void <init>()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: void readFields(java.io.DataInput)>(v);
label:
return v;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No node in path [\u]");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>(v);
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return null;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfo(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)
{
org.slf4j.Logger v;
java.io.IOException v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
java.util.Map v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
java.lang.Object v;
java.lang.String v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
label:
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromZK(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)>(v);
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Error retrieving tokenInfo [\u] from ZK");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>(v, v);
label:
return v;
catch java.io.IOException from label to label with label;
}
private synchronized void syncLocalCacheWithZk(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)
{
org.slf4j.Logger v;
java.io.IOException v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
java.util.Map v, v, v, v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v;
java.lang.String v;
boolean v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
label:
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromZK(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)>(v);
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
v = interfaceinvoke v.<java.util.Map: boolean containsKey(java.lang.Object)>(v);
if v != 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
goto label;
label:
if v != null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
v = interfaceinvoke v.<java.util.Map: boolean containsKey(java.lang.Object)>(v);
if v == 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Error retrieving tokenInfo [\u] from ZK");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>(v, v);
label:
return;
catch java.io.IOException from label to label with label;
}
private oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromZK(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier) throws java.io.IOException
{
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromZK(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier,boolean)>(v, 0);
return v;
}
private oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromZK(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier, boolean) throws java.io.IOException
{
byte[] v;
java.io.DataInputStream v;
long v;
oadd.org.apache.curator.framework.api.GetDataBuilder v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
java.io.ByteArrayInputStream v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v, v, v;
java.lang.String v, v, v;
boolean v;
org.slf4j.Logger v;
java.io.IOException v;
oadd.org.apache.zookeeper.KeeperException$NoNodeException v;
oadd.org.apache.curator.framework.CuratorFramework v;
java.lang.Exception v;
oadd.org.apache.hadoop.security.token.TokenIdentifier v;
java.lang.Object v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v := @parameter: boolean;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DT_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMTokensRoot", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.GetDataBuilder getData()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.GetDataBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
v = lengthof v;
if v != 0 goto label;
label:
return null;
label:
v = new java.io.ByteArrayInputStream;
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.TokenIdentifier createIdentifier()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: void readFields(java.io.DataInput)>(v);
v = virtualinvoke v.<java.io.DataInputStream: long readLong()>();
v = virtualinvoke v.<java.io.DataInputStream: int readInt()>();
v = newarray (byte)[v];
v = virtualinvoke v.<java.io.DataInputStream: int read(byte[],int,int)>(v, 0, v);
v = (int) -1;
if v <= v goto label;
v = new oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation: void <init>(long,byte[])>(v, v);
label:
return v;
label:
v := @caughtexception;
if v != 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No node in path [\u]");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>(v);
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return null;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected void storeDelegationKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey) throws java.io.IOException
{
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void addOrUpdateDelegationKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey,boolean)>(v, 0);
return;
}
protected void updateDelegationKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey) throws java.io.IOException
{
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void addOrUpdateDelegationKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey,boolean)>(v, 1);
return;
}
private void addOrUpdateDelegationKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey, boolean) throws java.io.IOException
{
byte[] v, v;
oadd.org.apache.zookeeper.CreateMode v;
oadd.org.apache.curator.framework.api.SetDataBuilder v;
java.io.DataOutputStream v;
oadd.org.apache.curator.framework.api.CreateBuilder v;
boolean v, v;
oadd.org.apache.zookeeper.KeeperException$NodeExistsException v;
oadd.org.apache.curator.framework.CuratorFramework v, v, v;
java.lang.Exception v;
java.lang.Throwable v;
java.io.ByteArrayOutputStream v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v;
java.lang.String v, v, v, v, v, v;
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
org.slf4j.Logger v, v, v, v, v;
java.io.IOException v;
oadd.org.apache.curator.framework.api.ExistsBuilder v;
java.lang.Object v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
v := @parameter: boolean;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: int getKeyId()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DK_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMMasterKeyRoot", v);
v = new java.io.ByteArrayOutputStream;
specialinvoke v.<java.io.ByteArrayOutputStream: void <init>()>();
v = new java.io.DataOutputStream;
specialinvoke v.<java.io.DataOutputStream: void <init>(java.io.OutputStream)>(v);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: int getKeyId()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Storing ZKDTSMDelegationKey_\u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: void write(java.io.DataOutput)>(v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.SetDataBuilder setData()>();
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.SetDataBuilder: java.lang.Object forPath(java.lang.String,byte[])>(v, v);
v = (int) -1;
virtualinvoke v.<oadd.org.apache.zookeeper.data.Stat: void setVersion(int)>(v);
if v != 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Key with path [\u] already exists.. Updating !!");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.CreateBuilder create()>();
v = <oadd.org.apache.zookeeper.CreateMode: oadd.org.apache.zookeeper.CreateMode PERSISTENT>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.CreateBuilder: java.lang.Object withMode(oadd.org.apache.zookeeper.CreateMode)>(v);
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
interfaceinvoke v.<oadd.org.apache.curator.framework.api.ACLBackgroundPathAndBytesable: java.lang.Object forPath(java.lang.String,byte[])>(v, v);
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Updating non existent Key path [\u].. Adding new !!");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
virtualinvoke v.<java.io.ByteArrayOutputStream: void close()>();
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u znode already exists !!");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
virtualinvoke v.<java.io.ByteArrayOutputStream: void close()>();
goto label;
label:
v := @caughtexception;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
v := @caughtexception;
virtualinvoke v.<java.io.ByteArrayOutputStream: void close()>();
throw v;
label:
return;
catch oadd.org.apache.zookeeper.KeeperException$NodeExistsException from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
protected void removeStoredMasterKey(oadd.org.apache.hadoop.security.token.delegation.DelegationKey)
{
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v;
java.lang.String v, v, v, v, v, v;
oadd.org.apache.hadoop.security.token.delegation.DelegationKey v;
boolean v;
org.slf4j.Logger v, v, v, v, v;
oadd.org.apache.zookeeper.KeeperException$NoNodeException v;
oadd.org.apache.curator.framework.CuratorFramework v, v, v;
java.lang.Exception v;
oadd.org.apache.curator.framework.api.ExistsBuilder v, v;
oadd.org.apache.curator.framework.api.ChildrenDeletable v;
java.lang.Object v, v;
oadd.org.apache.curator.framework.api.DeleteBuilder v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.DelegationKey;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: int getKeyId()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DK_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMMasterKeyRoot", v);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.DelegationKey: int getKeyId()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Removing ZKDTSMDelegationKey_\u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.DeleteBuilder delete()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.DeleteBuilder: oadd.org.apache.curator.framework.api.ChildrenDeletable guaranteed()>();
interfaceinvoke v.<oadd.org.apache.curator.framework.api.ChildrenDeletable: java.lang.Object forPath(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Node already deleted by peer \u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
goto label;
label:
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Attempted to delete a non-existing znode \u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u znode could not be removed!!");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
return;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch java.lang.Exception from label to label with label;
}
protected void storeToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier, oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation) throws java.io.IOException
{
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.lang.RuntimeException v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
java.lang.Exception v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation;
label:
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void addOrUpdateToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier,oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation,boolean)>(v, v, 0);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
protected void updateToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier, oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation) throws java.io.IOException
{
org.slf4j.Logger v;
java.lang.RuntimeException v;
oadd.org.apache.curator.framework.CuratorFramework v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
java.lang.Exception v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
oadd.org.apache.curator.framework.api.ExistsBuilder v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v;
java.lang.Object v;
java.lang.String v, v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DT_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMTokensRoot", v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void addOrUpdateToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier,oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation,boolean)>(v, v, 1);
goto label;
label:
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void addOrUpdateToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier,oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation,boolean)>(v, v, 0);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Attempted to update a non-existing znode \u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Could not update Stored Token ZKDTSMDelegationToken_\u0001");
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
protected void removeStoredToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier) throws java.io.IOException
{
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v;
java.lang.String v, v, v, v, v, v;
boolean v;
org.slf4j.Logger v, v, v, v;
oadd.org.apache.zookeeper.KeeperException$NoNodeException v;
java.lang.RuntimeException v;
oadd.org.apache.curator.framework.CuratorFramework v, v, v;
java.lang.Exception v;
oadd.org.apache.curator.framework.api.ExistsBuilder v, v;
oadd.org.apache.curator.framework.api.ChildrenDeletable v;
java.lang.Object v, v;
oadd.org.apache.curator.framework.api.DeleteBuilder v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DT_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMTokensRoot", v);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Removing ZKDTSMDelegationToken_\u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.ExistsBuilder checkExists()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.ExistsBuilder: java.lang.Object forPath(java.lang.String)>(v);
if v == null goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.DeleteBuilder delete()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.DeleteBuilder: oadd.org.apache.curator.framework.api.ChildrenDeletable guaranteed()>();
interfaceinvoke v.<oadd.org.apache.curator.framework.api.ChildrenDeletable: java.lang.Object forPath(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Node already deleted by peer \u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
goto label;
label:
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Attempted to remove a non-existing znode \u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Could not remove Stored Token ZKDTSMDelegationToken_\u0001");
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label;
catch java.lang.Exception from label to label with label;
}
public synchronized oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier cancelToken(oadd.org.apache.hadoop.security.token.Token, java.lang.String) throws java.io.IOException
{
byte[] v;
java.io.DataInputStream v;
oadd.org.apache.hadoop.security.token.Token v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
oadd.org.apache.hadoop.security.token.TokenIdentifier v;
java.io.ByteArrayInputStream v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.lang.String v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.Token;
v := @parameter: java.lang.String;
v = new java.io.ByteArrayInputStream;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.Token: byte[] getIdentifier()>();
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
v = new java.io.DataInputStream;
specialinvoke v.<java.io.DataInputStream: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.TokenIdentifier createIdentifier()>();
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: void readFields(java.io.DataInput)>(v);
specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: void syncLocalCacheWithZk(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)>(v);
v = specialinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier cancelToken(oadd.org.apache.hadoop.security.token.Token,java.lang.String)>(v, v);
return v;
}
private void addOrUpdateToken(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier, oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation, boolean) throws java.lang.Exception
{
java.lang.Throwable v, v;
byte[] v, v, v, v;
oadd.org.apache.zookeeper.CreateMode v;
java.io.ByteArrayOutputStream v;
oadd.org.apache.curator.framework.api.SetDataBuilder v;
long v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation v;
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
java.io.DataOutputStream v;
oadd.org.apache.curator.framework.api.CreateBuilder v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
int v, v, v, v;
java.lang.String v, v, v, v;
boolean v, v;
org.slf4j.Logger v, v;
oadd.org.apache.curator.framework.CuratorFramework v, v;
java.lang.Object v, v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation;
v := @parameter: boolean;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("DT_\u0001");
v = staticinvoke <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.String getNodePath(java.lang.String,java.lang.String)>("/ZKDTSMTokensRoot", v);
v = new java.io.ByteArrayOutputStream;
specialinvoke v.<java.io.ByteArrayOutputStream: void <init>()>();
label:
v = new java.io.DataOutputStream;
specialinvoke v.<java.io.DataOutputStream: void <init>(java.io.OutputStream)>(v);
label:
virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: void write(java.io.DataOutput)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation: long getRenewDate()>();
virtualinvoke v.<java.io.DataOutputStream: void writeLong(long)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation: byte[] getPassword()>();
v = lengthof v;
virtualinvoke v.<java.io.DataOutputStream: void writeInt(int)>(v);
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation: byte[] getPassword()>();
virtualinvoke v.<java.io.DataOutputStream: void write(byte[])>(v);
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG>;
if v == 0 goto label;
v = "Updating ";
goto label;
label:
v = "Storing ";
label:
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier: int getSequenceNumber()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001ZKDTSMDelegationToken_\u0001");
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String)>(v);
label:
if v == 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.SetDataBuilder setData()>();
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.SetDataBuilder: java.lang.Object forPath(java.lang.String,byte[])>(v, v);
v = (int) -1;
virtualinvoke v.<oadd.org.apache.zookeeper.data.Stat: void setVersion(int)>(v);
goto label;
label:
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: oadd.org.apache.curator.framework.CuratorFramework zkClient>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.CuratorFramework: oadd.org.apache.curator.framework.api.CreateBuilder create()>();
v = <oadd.org.apache.zookeeper.CreateMode: oadd.org.apache.zookeeper.CreateMode PERSISTENT>;
v = interfaceinvoke v.<oadd.org.apache.curator.framework.api.CreateBuilder: java.lang.Object withMode(oadd.org.apache.zookeeper.CreateMode)>(v);
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
interfaceinvoke v.<oadd.org.apache.curator.framework.api.ACLBackgroundPathAndBytesable: java.lang.Object forPath(java.lang.String,byte[])>(v, v);
label:
virtualinvoke v.<java.io.DataOutputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
virtualinvoke v.<java.io.ByteArrayOutputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
static java.lang.String getNodePath(java.lang.String, java.lang.String)
{
java.lang.String v, v, v;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/\u0001");
return v;
}
public java.util.concurrent.ExecutorService getListenerThreadPool()
{
java.util.concurrent.ExecutorService v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.concurrent.ExecutorService listenerThreadPool>;
return v;
}
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$DelegationTokenInformation getTokenInfoFromMemory(oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier)
{
oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier v;
java.util.Map v;
oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager v;
java.lang.Object v;
v := @this: oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager;
v := @parameter: oadd.org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier;
v = v.<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.util.Map currentTokens>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
return v;
}
static void <clinit>()
{
java.lang.ThreadLocal v;
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Loadd/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager;");
<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: org.slf4j.Logger LOG> = v;
v = new java.lang.ThreadLocal;
specialinvoke v.<java.lang.ThreadLocal: void <init>()>();
<oadd.org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager: java.lang.ThreadLocal CURATOR_TL> = v;
return;
}
}