|
81 | 81 | import org.apache.accumulo.core.manager.balancer.TServerStatusImpl; |
82 | 82 | import org.apache.accumulo.core.manager.balancer.TabletServerIdImpl; |
83 | 83 | import org.apache.accumulo.core.manager.state.tables.TableState; |
| 84 | +import org.apache.accumulo.core.manager.thrift.FateService; |
84 | 85 | import org.apache.accumulo.core.manager.thrift.ManagerClientService; |
85 | 86 | import org.apache.accumulo.core.manager.thrift.ManagerGoalState; |
86 | 87 | import org.apache.accumulo.core.manager.thrift.ManagerMonitorInfo; |
@@ -326,9 +327,6 @@ synchronized void setManagerState(final ManagerState newState) { |
326 | 327 |
|
327 | 328 | private Future<Void> upgradeMetadataFuture; |
328 | 329 |
|
329 | | - private FateServiceHandler fateServiceHandler; |
330 | | - private ManagerClientServiceHandler managerClientHandler; |
331 | | - |
332 | 330 | private int assignedOrHosted(TableId tableId) { |
333 | 331 | int result = 0; |
334 | 332 | for (TabletGroupWatcher watcher : watchers) { |
@@ -1241,17 +1239,16 @@ public void run() { |
1241 | 1239 | // ACCUMULO-4424 Put up the Thrift servers before getting the lock as a sign of process health |
1242 | 1240 | // when a hot-standby |
1243 | 1241 | // |
1244 | | - // Start the Manager's Fate Service |
1245 | | - fateServiceHandler = new FateServiceHandler(this); |
1246 | | - managerClientHandler = new ManagerClientServiceHandler(this); |
1247 | | - // Start the Manager's Client service |
1248 | | - // Ensure that calls before the manager gets the lock fail |
1249 | | - ManagerClientService.Iface haProxy = |
1250 | | - HighlyAvailableServiceWrapper.service(managerClientHandler, this); |
| 1242 | + // Start the Manager's Fate Service. Ensure that calls before the manager gets the lock fail |
| 1243 | + FateService.Iface fateServiceHandler = |
| 1244 | + HighlyAvailableServiceWrapper.service(new FateServiceHandler(this), this); |
| 1245 | + // Start the Manager's Client service. Ensure that calls before the manager gets the lock fail |
| 1246 | + ManagerClientService.Iface managerClientHandler = |
| 1247 | + HighlyAvailableServiceWrapper.service(new ManagerClientServiceHandler(this), this); |
1251 | 1248 |
|
1252 | 1249 | ServerAddress sa; |
1253 | | - var processor = |
1254 | | - ThriftProcessorTypes.getManagerTProcessor(this, fateServiceHandler, haProxy, getContext()); |
| 1250 | + var processor = ThriftProcessorTypes.getManagerTProcessor(this, fateServiceHandler, |
| 1251 | + managerClientHandler, getContext()); |
1255 | 1252 |
|
1256 | 1253 | try { |
1257 | 1254 | @SuppressWarnings("deprecation") |
|
0 commit comments