Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1186

STATS_SAMPLE_PAGES config cannot be parsed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.9.3.Final
    • 0.9.2.Final
    • mysql-connector
    • None

      We upgraded debezium version for our mysql connectors from 0.7.5 to 0.9.2.Final.
      The following event streamed from MySQL binlog to 0.9.2.Final connector:

      alter table kazaam.__osc_new_performance_by_affcode STATS_AUTO_RECALC=DEFAULT STATS_SAMPLE_PAGES=DEFAULT
      

      And got the following error:

      [2019-03-18 13:45:57,054] ERROR WorkerSourceTask{id=connector-ks5066-0} Task threw an uncaught and unrecoverable exception (org.apache.kafka.connect.runtime.WorkerTask:177)
      org.apache.kafka.connect.errors.ConnectException: mismatched input 'STATS_SAMPLE_PAGES' expecting {<EOF>, '--'}
      	at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:230)
      	at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:208)
      	at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:477)
      	at com.github.shyiko.mysql.binlog.BinaryLogClient.notifyEventListeners(BinaryLogClient.java:1095)
      	at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:943)
      	at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:580)
      	at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:825)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: io.debezium.text.ParsingException: mismatched input 'STATS_SAMPLE_PAGES' expecting {<EOF>, '--'}
      	at io.debezium.antlr.ParsingErrorListener.syntaxError(ParsingErrorListener.java:40)
      	at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
      	at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544)
      	at org.antlr.v4.runtime.DefaultErrorStrategy.reportInputMismatch(DefaultErrorStrategy.java:299)
      	at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:124)
      	at io.debezium.ddl.parser.mysql.generated.MySqlParser.root(MySqlParser.java:829)
      	at io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser.parseTree(MySqlAntlrDdlParser.java:71)
      	at io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser.parseTree(MySqlAntlrDdlParser.java:44)
      	at io.debezium.antlr.AntlrDdlParser.parse(AntlrDdlParser.java:80)
      	at io.debezium.connector.mysql.MySqlSchema.applyDdl(MySqlSchema.java:304)
      	at io.debezium.connector.mysql.BinlogReader.handleQueryEvent(BinlogReader.java:663)
      	at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:461)
      	... 5 more
      Caused by: org.antlr.v4.runtime.InputMismatchException
      	at org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:242)
      	at io.debezium.ddl.parser.mysql.generated.MySqlParser.root(MySqlParser.java:814)
      	... 11 more
      

              jpechane Jiri Pechanec
              tomeraz Tomer Azoulay (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: