You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "dlmarion (via GitHub)" <gi...@apache.org> on 2023/07/26 21:27:27 UTC
[GitHub] [accumulo] dlmarion commented on a diff in pull request #3661: Improvements and cleanup to ExternalCompaction ITs and related code
dlmarion commented on code in PR #3661:
URL: https://github.com/apache/accumulo/pull/3661#discussion_r1275497909
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -1593,11 +1593,8 @@ private ServiceLockData getManagerLock(final ServiceLockPath zManagerLoc)
UUID zooLockUUID = UUID.randomUUID();
ServiceDescriptors descriptors = new ServiceDescriptors();
- for (ThriftService svc : new ThriftService[] {ThriftService.MANAGER,
- ThriftService.COORDINATOR}) {
- descriptors.addService(
- new ServiceDescriptor(zooLockUUID, svc, managerClientAddress, this.getResourceGroup()));
- }
+ descriptors.addService(new ServiceDescriptor(zooLockUUID, ThriftService.MANAGER,
+ managerClientAddress, this.getResourceGroup()));
Review Comment:
Only advertise the Manager service while starting up, clients can't connect until the Manager is fully up anyway.
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -1362,8 +1362,8 @@ boolean canSuspendTablets() {
String address = sa.address.toString();
UUID uuid = sld.getServerUUID(ThriftService.MANAGER);
ServiceDescriptors descriptors = new ServiceDescriptors();
- for (ThriftService svc : new ThriftService[] {ThriftService.MANAGER,
- ThriftService.COORDINATOR}) {
+ for (ThriftService svc : new ThriftService[] {ThriftService.MANAGER, ThriftService.COORDINATOR,
Review Comment:
This updates the lock data with the services that the Manager handles after the Manager is fully up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org