yuxiqian opened a new pull request, #3669:
URL: https://github.com/apache/flink-cdc/pull/3669
When debugging & testing locally (with non-UTC timezone),
`testSourceMetrics` case will fail due to the following exception:
```
Caused by: org.apache.flink.table.api.ValidationException: The MySQL server
has a timezone offset (0 seconds ahead of UTC) which does not match the
configured timezone Asia/Shanghai. Specify the right server-time-zone to avoid
inconsistencies for time-related fields.
at
org.apache.flink.cdc.connectors.mysql.MySqlValidator.checkTimeZone(MySqlValidator.java:215)
at
org.apache.flink.cdc.connectors.mysql.MySqlValidator.validate(MySqlValidator.java:76)
at
org.apache.flink.cdc.connectors.mysql.source.MySqlSource.createEnumerator(MySqlSource.java:200)
at
org.apache.flink.runtime.source.coordinator.SourceCoordinator.start(SourceCoordinator.java:221)
... 33 more
```
Turns out timezone configuration was missing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]