File tree 1 file changed +5
-3
lines changed
parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .alibaba .otter .canal .parse .inbound .mysql ;
2
2
3
3
import java .nio .charset .Charset ;
4
+ import java .util .Properties ;
4
5
import java .util .concurrent .atomic .AtomicLong ;
5
6
6
7
import com .alibaba .otter .canal .filter .CanalEventFilter ;
@@ -185,9 +186,10 @@ protected synchronized void buildTableMetaTSDB(String tsdbSpringXml) {
185
186
throw new CanalParseException (e );
186
187
} finally {
187
188
// reset
188
- System .setProperty ("canal.instance.tsdb.url" , "" );
189
- System .setProperty ("canal.instance.tsdb.dbUsername" , "" );
190
- System .setProperty ("canal.instance.tsdb.dbPassword" , "" );
189
+ Properties props = System .getProperties ();
190
+ props .remove ("canal.instance.tsdb.url" );
191
+ props .remove ("canal.instance.tsdb.dbUsername" );
192
+ props .remove ("canal.instance.tsdb.dbPassword" );
191
193
}
192
194
}
193
195
You can’t perform that action at this time.
0 commit comments