Browse Source

Merge pull request #1391 from rewerma/master

fixed 1390
agapple 6 years ago
parent
commit
b845a67666

+ 3 - 2
deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalLauncher.java

@@ -77,8 +77,9 @@ public class CanalLauncher {
                 });
             }
 
-            while (running)
-                ;
+            while (running) {
+                Thread.sleep(1000);
+            }
 
             if (managerDbConfigMonitor != null) {
                 managerDbConfigMonitor.destroy();

+ 2 - 2
deployer/src/main/resources/example/instance.properties

@@ -45,8 +45,8 @@ canal.instance.filter.black.regex=
 
 # mq config
 canal.mq.topic=example
-# dynamic topic route by table regex
-#canal.mq.dynamicTopic=.*,mytest\\..*,mytest2.user
+# dynamic topic route by schema or table regex
+#canal.mq.dynamicTopic=.*,mytest,mytest\\..*,mytest2.user
 canal.mq.partition=0
 # hash partition config
 #canal.mq.partitionsNum=3