Update retirement expiry log message
@@ -11,6 +11,7 @@ import com.yahoo.vespa.hosted.provision.NodeRepository;
import com.yahoo.vespa.hosted.provision.node.History;
import com.yahoo.vespa.orchestrator.OrchestrationException;
import com.yahoo.vespa.orchestrator.Orchestrator;
+import com.yahoo.yolean.Exceptions;
import java.time.Duration;
import java.util.List;
@@ -95,7 +96,7 @@ public class RetiredExpirer extends NodeRepositoryMaintainer {
}
if (node.history().hasEventBefore(History.Event.Type.retired, clock().instant().minus(retiredExpiry))) {
- log.info("Node " + node + " has been retired longer than " + retiredExpiry);
+ log.warning("Node " + node + " has been retired longer than " + retiredExpiry + ": Allowing removal. This may cause data loss");
return true;
}
@@ -104,10 +105,10 @@ public class RetiredExpirer extends NodeRepositoryMaintainer {
log.info("Node " + node + " has been granted permission to be removed");
return true;
} catch (UncheckedTimeoutException e) {
- log.info("Timed out trying to acquire permission to remove " + node.hostname() + ": " + e.getMessage());
+ log.warning("Timed out trying to acquire permission to remove " + node.hostname() + ": " + Exceptions.toMessageString(e));
return false;
} catch (OrchestrationException e) {
- log.info("Did not get permission to remove retired " + node + ": " + e.getMessage());
+ log.info("Did not get permission to remove retired " + node + ": " + Exceptions.toMessageString(e));
return false;
}
}
