Added thread interrupt flag 61/78661/2
authorJegadeesh Babu <jegabab1@in.ibm.com>
Mon, 18 Feb 2019 13:51:27 +0000 (19:21 +0530)
committerJegadeesh Babu <jegabab1@in.ibm.com>
Mon, 18 Feb 2019 13:58:18 +0000 (13:58 +0000)
Handled Interrupted exception

Issue-ID: APPC-1452
Change-Id: Ide8f4b37db52937932d08db7ce429a52b1bfe433
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java

index c320f49..7a66887 100644 (file)
@@ -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(),