File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
common/lib/plugins/bluegreen/routing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ import { BlueGreenStatus } from "../blue_green_status";
2828import { convertMsToNanos , convertNanosToMs , getTimeInNanos } from "../../../utils/utils" ;
2929import { WrapperProperties } from "../../../wrapper_property" ;
3030import { BlueGreenPhase } from "../blue_green_phase" ;
31- import { TimeoutError } from "@opentelemetry/sdk-metrics" ;
3231import { BlueGreenRole } from "../blue_green_role" ;
32+ import { AwsWrapperError } from "../../../utils/errors" ;
3333
3434export class SuspendConnectRouting extends BaseConnectRouting {
3535 private static readonly TELEMETRY_SWITCHOVER = "Blue/Green switchover" ;
@@ -71,7 +71,7 @@ export class SuspendConnectRouting extends BaseConnectRouting {
7171 }
7272
7373 if ( bgStatus != null && bgStatus . currentPhase === BlueGreenPhase . IN_PROGRESS ) {
74- throw new TimeoutError ( Messages . get ( "Bgd.inProgressTryConnectLater" , `${ WrapperProperties . BG_CONNECT_TIMEOUT_MS . get ( properties ) } ` ) ) ;
74+ throw new AwsWrapperError ( Messages . get ( "Bgd.inProgressTryConnectLater" , `${ WrapperProperties . BG_CONNECT_TIMEOUT_MS . get ( properties ) } ` ) ) ;
7575 }
7676
7777 logger . debug ( Messages . get ( "Bgd.switchoverCompleteContinueWithConnect" , `${ convertNanosToMs ( getTimeInNanos ( ) - suspendStartTime ) } ` ) ) ;
You can’t perform that action at this time.
0 commit comments