Skip to content

Commit

Permalink
update some wrong spell (#326)
Browse files Browse the repository at this point in the history
Co-authored-by: 李鹏程 <[email protected]>
  • Loading branch information
jueshali and cs-lpc authored Jul 22, 2024
1 parent 1a2ad1b commit 3cd93da
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private void reconnectIfDisconnected() {

}

private static class SaslMetastoreClientHander implements InvocationHandler {
private static final Logger LOG = LoggerFactory.getLogger(SaslMetastoreClientHander.class);
private static class SaslMetastoreClientHandler implements InvocationHandler {
private static final Logger LOG = LoggerFactory.getLogger(SaslMetastoreClientHandler.class);

private final CloseableThriftHiveMetastoreIface baseHandler;
private final ThriftMetastoreClientManager clientManager;
Expand All @@ -151,11 +151,11 @@ private static class SaslMetastoreClientHander implements InvocationHandler {
public static CloseableThriftHiveMetastoreIface newProxyInstance(
CloseableThriftHiveMetastoreIface baseHandler,
ThriftMetastoreClientManager clientManager) {
return (CloseableThriftHiveMetastoreIface) Proxy.newProxyInstance(SaslMetastoreClientHander.class.getClassLoader(),
INTERFACES, new SaslMetastoreClientHander(baseHandler, clientManager));
return (CloseableThriftHiveMetastoreIface) Proxy.newProxyInstance(SaslMetastoreClientHandler.class.getClassLoader(),
INTERFACES, new SaslMetastoreClientHandler(baseHandler, clientManager));
}

private SaslMetastoreClientHander(
private SaslMetastoreClientHandler(
CloseableThriftHiveMetastoreIface handler,
ThriftMetastoreClientManager clientManager) {
this.baseHandler = handler;
Expand Down Expand Up @@ -233,8 +233,8 @@ CloseableThriftHiveMetastoreIface newInstance(
if (base.isSaslEnabled()) {
CloseableThriftHiveMetastoreIface ifaceReconnectingHandler = (CloseableThriftHiveMetastoreIface) Proxy
.newProxyInstance(getClass().getClassLoader(), INTERFACES, reconnectingHandler);
// wrapping the SaslMetastoreClientHander to handle delegation token if using sasl
return SaslMetastoreClientHander.newProxyInstance(ifaceReconnectingHandler, base);
// wrapping the SaslMetastoreClientHandler to handle delegation token if using sasl
return SaslMetastoreClientHandler.newProxyInstance(ifaceReconnectingHandler, base);
} else {
return (CloseableThriftHiveMetastoreIface) Proxy
.newProxyInstance(getClass().getClassLoader(), INTERFACES, reconnectingHandler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void startWaggleDance(
throws Throwable {
try {
// Server will create new threads up to max as necessary. After an idle
// period, it will destory threads to keep the number of threads in the
// period, it will destroy threads to keep the number of threads in the
// pool to min.
int minWorkerThreads = hiveConf.getIntVar(ConfVars.METASTORESERVERMINTHREADS);
int maxWorkerThreads = hiveConf.getIntVar(ConfVars.METASTORESERVERMAXTHREADS);
Expand Down Expand Up @@ -285,7 +285,7 @@ private void signalOtherThreadsToStart(
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
LOG.warn("Signalling thread was interuppted: " + e.getMessage());
LOG.warn("Signalling thread was interrupted: " + e.getMessage());
}
} while (!server.isServing());
startLock.lock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public AccessControlHandler newInstance(AbstractMetaStore metaStore) {
}

default:
throw new IllegalStateException("Cannot determine AcccessControlHandler type given type: '"
throw new IllegalStateException("Cannot determine AccessControlHandler type given type: '"
+ metaStore.getAccessControlType()
+ "'");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.hotels.bdp.waggledance.extensions.client.ratelimit.BucketService;

/**
* This class uses a Redis server as a the storage back-end for the rate limiter. This is useful if you have multiple
* This class uses a Redis server as the storage back-end for the rate limiter. This is useful if you have multiple
* Waggle Dance instances and you want to rate limit across all of them.
*/
public class RedisBucketService implements BucketService {
Expand Down

0 comments on commit 3cd93da

Please sign in to comment.