穿云 5 mēneši atpakaļ
vecāks
revīzija
b352af89a6

+ 4 - 5
dbsyncer-connector/dbsyncer-connector-oracle/src/main/java/org/dbsyncer/connector/oracle/logminer/LogMiner.java

@@ -140,15 +140,14 @@ public class LogMiner {
         } catch (Exception e) {
         } catch (Exception e) {
             if (e instanceof SQLRecoverableException) {
             if (e instanceof SQLRecoverableException) {
                 logger.error("Connection timed out, attempting to reconnect in 5 seconds");
                 logger.error("Connection timed out, attempting to reconnect in 5 seconds");
-                reConnection();
+                reConnect();
                 return;
                 return;
             }
             }
             logger.error(e.getMessage(), e);
             logger.error(e.getMessage(), e);
         }
         }
     }
     }
 
 
-
-    private void reConnection() throws SQLException {
+    private void reConnect() throws SQLException {
         connected = false;
         connected = false;
         sleepFiveSeconds();
         sleepFiveSeconds();
         start();
         start();
@@ -157,8 +156,8 @@ public class LogMiner {
     private void sleepFiveSeconds() {
     private void sleepFiveSeconds() {
         try {
         try {
             TimeUnit.SECONDS.sleep(5);
             TimeUnit.SECONDS.sleep(5);
-        } catch (InterruptedException interruptedException) {
-            logger.error(interruptedException.getMessage(), interruptedException);
+        } catch (InterruptedException e) {
+            logger.error(e.getMessage(), e);
         }
         }
     }
     }