File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
integration-tests/src/test
java/oracle/kubernetes/operator/utils
resources/domain-home-on-pv Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ private static int makeOperatorRestCall(
348
348
349
349
Response response = null ;
350
350
int i = 0 ;
351
- while (i < BaseTest .getMaxIterationsPod () / 2 ) {
351
+ while (i < BaseTest .getMaxIterationsPod ()) {
352
352
try {
353
353
// Post scaling request to Operator
354
354
if (jsonObjStr != null ) {
@@ -357,9 +357,12 @@ private static int makeOperatorRestCall(
357
357
response = request .get ();
358
358
}
359
359
} catch (Exception ex ) {
360
- logger .info ("Got exception " + ex .getMessage ());
360
+ logger .info ("Got exception, iteration " + i + " " + ex .getMessage ());
361
361
i ++;
362
362
if (ex .getMessage ().contains ("java.net.ConnectException: Connection refused" )) {
363
+ if (i == (BaseTest .getMaxIterationsPod () - 1 )) {
364
+ throw ex ;
365
+ }
363
366
logger .info ("Sleeping 5 more seconds and try again" );
364
367
Thread .sleep (5 * 1000 );
365
368
continue ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def getEnvVar(var):
49
49
# ===================================
50
50
cd ('/Servers/AdminServer' )
51
51
# Give incorrect listenaddress, introspector overrides with sit-config
52
- set ('ListenAddress' , '' )
52
+ # set('ListenAddress', '')
53
53
set ('ListenPort' , admin_port )
54
54
set ('Name' , admin_server_name )
55
55
@@ -58,7 +58,7 @@ def getEnvVar(var):
58
58
set ('PublicPort' , t3_channel_port )
59
59
set ('PublicAddress' , t3_public_address )
60
60
# Give incorrect listenaddress, introspector overrides with sit-config
61
- set ('ListenAddress' , '' )
61
+ # set('ListenAddress', '')
62
62
set ('ListenPort' , t3_channel_port )
63
63
64
64
cd ('/Servers/%s' % admin_server_name )
You can’t perform that action at this time.
0 commit comments