You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/sources/debezium/DebeziumOracleDbSourceTester.java
+41-10Lines changed: 41 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -146,18 +146,15 @@ public void prepareSource() {
146
146
// configure logminer
147
147
runSqlCmd("shutdown immediate");
148
148
149
-
// good first approximation but still not enough:
150
149
waitForOracleStatus("ORACLE not available");
151
150
Thread.sleep(SLEEP_AFTER_COMMAND_MS);
152
151
153
-
runSqlCmd("startup mount");
154
-
// good first approximation but still not enough:
155
-
waitForOracleStatus("MOUNTED");
152
+
// startup mount may need retries if Oracle is still shutting down
153
+
retryCommand("startup mount", "MOUNTED");
156
154
Thread.sleep(SLEEP_AFTER_COMMAND_MS);
157
155
158
156
runSqlCmd("alter database archivelog;");
159
157
runSqlCmd("alter database open;");
160
-
// good first approximation but still not enough:
161
158
waitForOracleStatus("OPEN");
162
159
Thread.sleep(SLEEP_AFTER_COMMAND_MS);
163
160
@@ -175,15 +172,49 @@ public void prepareSource() {
0 commit comments