aboutsummaryrefslogtreecommitdiffstats
path: root/orchestrator
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-24 13:12:46 +0200
committergjoranv <gv@verizonmedia.com>2020-04-25 02:22:55 +0200
commit25f832e613bb6087327c293b527d5445babb4319 (patch)
tree8197a5b331e845bfe91f006d9cfe8bec9a28170f /orchestrator
parent4e6825b47270804a36e7d76b873ca6c2fe360eac (diff)
LogLevel.DEBUG -> Level.FINE
Diffstat (limited to 'orchestrator')
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/model/StorageNodeImpl.java2
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostResource.java22
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java10
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosServiceImpl.java2
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java2
5 files changed, 19 insertions, 19 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/model/StorageNodeImpl.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/model/StorageNodeImpl.java
index d79accc5b36..72033e41192 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/model/StorageNodeImpl.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/model/StorageNodeImpl.java
@@ -62,7 +62,7 @@ public class StorageNodeImpl implements StorageNode {
ConfigId configId = storageService.configId();
int nodeIndex = VespaModelUtil.getStorageNodeIndex(configId);
- logger.log(LogLevel.DEBUG, () -> "Setting cluster controller state for " +
+ logger.log(Level.FINE, () -> "Setting cluster controller state for " +
"application " + applicationInstance.reference().asString() +
", host " + hostName() +
", cluster name " + clusterId +
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostResource.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostResource.java
index 5d4090fea30..9ed9e1b9063 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostResource.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostResource.java
@@ -78,10 +78,10 @@ public class HostResource implements HostApi {
applicationUri.toString(),
hostServices);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.DEBUG, "Failed to get host " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to get host " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("getHost", hostName, e);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.DEBUG, "Host not found: " + hostName);
+ log.log(Level.FINE, "Host not found: " + hostName);
throw new NotFoundException(e);
}
}
@@ -101,14 +101,14 @@ public class HostResource implements HostApi {
try {
orchestrator.setNodeStatus(hostName, state);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.DEBUG, "Host not found: " + hostName);
+ log.log(Level.FINE, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.DEBUG, "Failed to patch " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to patch " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("patch", hostName, e);
} catch (OrchestrationException e) {
String message = "Failed to set " + hostName + " to " + state + ": " + e.getMessage();
- log.log(LogLevel.DEBUG, message, e);
+ log.log(Level.FINE, message, e);
throw new InternalServerErrorException(message);
}
}
@@ -124,13 +124,13 @@ public class HostResource implements HostApi {
try {
orchestrator.suspend(hostName);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.DEBUG, "Host not found: " + hostName);
+ log.log(Level.FINE, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to suspend " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("suspend", hostName, e);
} catch (HostStateChangeDeniedException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to suspend " + hostName + ": " + e.getMessage());
throw webExceptionWithDenialReason("suspend", hostName, e);
}
return new UpdateHostResponse(hostName.s(), null);
@@ -142,13 +142,13 @@ public class HostResource implements HostApi {
try {
orchestrator.resume(hostName);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.DEBUG, "Host not found: " + hostName);
+ log.log(Level.FINE, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.DEBUG, "Failed to resume " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to resume " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("resume", hostName, e);
} catch (HostStateChangeDeniedException e) {
- log.log(LogLevel.DEBUG, "Failed to resume " + hostName + ": " + e.getMessage());
+ log.log(Level.FINE, "Failed to resume " + hostName + ": " + e.getMessage());
throw webExceptionWithDenialReason("resume", hostName, e);
}
return new UpdateHostResponse(hostName.s(), null);
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
index 11afb8a849c..3d60d40dfcf 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
@@ -43,21 +43,21 @@ public class HostSuspensionResource implements HostSuspensionApi {
try {
orchestrator.suspendAll(parentHostname, hostnames);
} catch (BatchHostStateChangeDeniedException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
+ log.log(Level.FINE, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
throw createWebApplicationException(e.getMessage(), Response.Status.CONFLICT);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
+ log.log(Level.FINE, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
throw createWebApplicationException(e.getMessage(), Response.Status.CONFLICT);
} catch (BatchHostNameNotFoundException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
+ log.log(Level.FINE, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
// Note that we're returning BAD_REQUEST instead of NOT_FOUND because the resource identified
// by the URL path was found. It's one of the hostnames in the request it failed to find.
throw createWebApplicationException(e.getMessage(), Response.Status.BAD_REQUEST);
} catch (BatchInternalErrorException e) {
- log.log(LogLevel.DEBUG, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
+ log.log(Level.FINE, "Failed to suspend nodes " + hostnames + " with parent host " + parentHostname, e);
throw createWebApplicationException(e.getMessage(), Response.Status.INTERNAL_SERVER_ERROR);
}
- log.log(LogLevel.DEBUG, "Suspended " + hostnames + " with parent " + parentHostname);
+ log.log(Level.FINE, "Suspended " + hostnames + " with parent " + parentHostname);
return BatchOperationResult.successResult();
}
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosServiceImpl.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosServiceImpl.java
index d50eb1c7e26..cbb6902066e 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosServiceImpl.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosServiceImpl.java
@@ -109,7 +109,7 @@ public class HostInfosServiceImpl implements HostInfosService {
curator.framework().delete().forPath(path);
return true;
} catch (NoNodeException e) {
- log.log(LogLevel.DEBUG, debugLogMessageIfNotExists, e);
+ log.log(Level.FINE, debugLogMessageIfNotExists, e);
return false;
} catch (Exception e) {
throw new RuntimeException(e);
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java
index 27eea7a685b..21c3c846385 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java
@@ -93,7 +93,7 @@ public class ZkStatusService implements StatusService {
return resultSet;
} catch (Exception e) {
- log.log(LogLevel.DEBUG, "Something went wrong while listing out applications in suspend.", e);
+ log.log(Level.FINE, "Something went wrong while listing out applications in suspend.", e);
throw new RuntimeException(e);
}
}