From 740301e3f453100ef5fc9555ca32b7d577163850 Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Mon, 18 Feb 2019 19:21:27 +0530 Subject: Added thread interrupt flag Handled Interrupted exception Issue-ID: APPC-1452 Change-Id: Ide8f4b37db52937932d08db7ce429a52b1bfe433 Signed-off-by: Jegadeesh Babu --- .../onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'appc-adapters') diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java index c320f49b4..7a6688709 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java @@ -6,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= +* Modifications Copyright (C) 2019 IBM +* ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -125,6 +127,7 @@ public class RebuildServer extends ProviderServerOperation { } catch (InterruptedException e) { logger.trace("Sleep threw interrupted exception, should never occur"); metricsLogger.trace("Sleep threw interrupted exception, should never occur"); + Thread.currentThread().interrupt(); } } catch (ZoneException e) { msg = EELFResourceManager.format(Msg.REBUILD_SERVER_FAILED, server.getName(), server.getId(), -- cgit 1.2.3-korg