27
27
import io .debezium .connector .mysql .antlr .MySqlAntlrDdlParser ;
28
28
import io .debezium .relational .Tables ;
29
29
import io .debezium .relational .ddl .DdlParser ;
30
- import io .debezium .relational .history .DatabaseHistory ;
31
- import io .debezium .relational .history .DatabaseHistoryListener ;
30
+ import io .debezium .relational .history .SchemaHistory ;
31
+ import io .debezium .relational .history .SchemaHistoryListener ;
32
32
import io .debezium .text .ParsingException ;
33
33
import io .debezium .util .Collect ;
34
34
@@ -80,8 +80,8 @@ protected void cleanup() throws Exception {
80
80
private void testHistoryTopicContent (boolean skipUnparseableDDL , boolean testWithClientBuilder , boolean testWithReaderConfig ) throws Exception {
81
81
Configuration .Builder configBuidler = Configuration .create ()
82
82
.with (PulsarDatabaseHistory .TOPIC , topicName )
83
- .with (DatabaseHistory .NAME , "my-db-history" )
84
- .with (DatabaseHistory .SKIP_UNPARSEABLE_DDL_STATEMENTS , skipUnparseableDDL );
83
+ .with (SchemaHistory .NAME , "my-db-history" )
84
+ .with (SchemaHistory .SKIP_UNPARSEABLE_DDL_STATEMENTS , skipUnparseableDDL );
85
85
86
86
if (testWithClientBuilder ) {
87
87
ClientBuilder builder = PulsarClient .builder ().serviceUrl (brokerUrl .toString ());
@@ -101,7 +101,7 @@ private void testHistoryTopicContent(boolean skipUnparseableDDL, boolean testWit
101
101
}
102
102
103
103
// Start up the history ...
104
- history .configure (configBuidler .build (), null , DatabaseHistoryListener .NOOP , true );
104
+ history .configure (configBuidler .build (), null , SchemaHistoryListener .NOOP , true );
105
105
history .start ();
106
106
107
107
// Should be able to call start more than once ...
@@ -160,7 +160,7 @@ private void testHistoryTopicContent(boolean skipUnparseableDDL, boolean testWit
160
160
// Stop the history (which should stop the producer) ...
161
161
history .stop ();
162
162
history = new PulsarDatabaseHistory ();
163
- history .configure (configBuidler .build (), null , DatabaseHistoryListener .NOOP , true );
163
+ history .configure (configBuidler .build (), null , SchemaHistoryListener .NOOP , true );
164
164
// no need to start
165
165
166
166
// Recover from the very beginning to just past the first change ...
@@ -240,11 +240,11 @@ public void testExists() throws Exception {
240
240
Configuration config = Configuration .create ()
241
241
.with (PulsarDatabaseHistory .SERVICE_URL , brokerUrl .toString ())
242
242
.with (PulsarDatabaseHistory .TOPIC , "persistent://my-property/my-ns/dummytopic" )
243
- .with (DatabaseHistory .NAME , "my-db-history" )
244
- .with (DatabaseHistory .SKIP_UNPARSEABLE_DDL_STATEMENTS , true )
243
+ .with (SchemaHistory .NAME , "my-db-history" )
244
+ .with (SchemaHistory .SKIP_UNPARSEABLE_DDL_STATEMENTS , true )
245
245
.build ();
246
246
247
- history .configure (config , null , DatabaseHistoryListener .NOOP , true );
247
+ history .configure (config , null , SchemaHistoryListener .NOOP , true );
248
248
history .start ();
249
249
250
250
// dummytopic should not exist yet
0 commit comments