Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
flaming-archer committed Apr 7, 2024
1 parent b2638c3 commit 277b818
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ class FederatedHMSHandler extends FacebookBase implements CloseableIHMSHandler {
private final NotifyingFederationService notifyingFederationService;
private final WaggleDanceConfiguration waggleDanceConfiguration;
private Configuration conf;

FederatedHMSHandler(
MappingEventListener databaseMappingService,
NotifyingFederationService notifyingFederationService,
Expand Down Expand Up @@ -1555,6 +1556,7 @@ public void setConf(Configuration conf) {
this.conf = conf;
}

@Override
public void init() throws MetaException {}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class MetaStoreProxyServer implements ApplicationRunner {

private final HiveConf hiveConf;
private final WaggleDanceConfiguration waggleDanceConfiguration;
private final TSetIpAddressProcessorFactory tProcessorFactory;
private final TProcessorFactory tProcessorFactory;
private final Lock startLock;
private final Condition startCondition;
private TServer tServer;
Expand All @@ -98,13 +98,12 @@ public class MetaStoreProxyServer implements ApplicationRunner {
public MetaStoreProxyServer(
HiveConf hiveConf,
WaggleDanceConfiguration waggleDanceConfiguration,
TSetIpAddressProcessorFactory tProcessorFactory) {
TProcessorFactory tProcessorFactory) {
this.hiveConf = hiveConf;
this.waggleDanceConfiguration = waggleDanceConfiguration;
this.tProcessorFactory = tProcessorFactory;
startLock = new ReentrantLock();
startCondition = startLock.newCondition();
tProcessorFactory.setMetaStoreProxyServer(this);
}

private boolean isRunning() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class TSetIpAddressProcessorFactory extends TProcessorFactory {
private final HiveConf hiveConf;
private final FederatedHMSHandlerFactory federatedHMSHandlerFactory;
private final TTransportMonitor transportMonitor;
private MetaStoreProxyServer metaStoreProxyServer;

@Autowired
public TSetIpAddressProcessorFactory(
Expand Down Expand Up @@ -73,8 +72,4 @@ private IHMSHandler newRetryingHMSHandler(IHMSHandler baseHandler, HiveConf hive
return RetryingHMSHandler.getProxy(hiveConf, baseHandler, local);
}

public void setMetaStoreProxyServer(
MetaStoreProxyServer metaStoreProxyServer) {
this.metaStoreProxyServer = metaStoreProxyServer;
}
}

0 comments on commit 277b818

Please sign in to comment.