[MDEV-10769] Incorrect time returned by now() in trigger, in replication Created: 2016-09-08 Updated: 2016-10-12 Resolved: 2016-10-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Time zones, Triggers |
| Affects Version/s: | 10.1.14 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Triton Ho | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Master DB: MySQL 5.6@Amazon EC2 |
||
| Description |
|
We have setup a replication from MySQL Master, to MariaDB. However, the now() in trigger is incorrect. ------------------------------------------------------------------------------------
|
| Comments |
| Comment by Elena Stepanova [ 2016-09-14 ] |
|
Are you using statement-based replication? When you're saying the timezone in Mariadb is "US/Eastern" or the timezone in MySQL is "America/New_York", what does it mean, exactly? That the timezones on the systems running the servers are configured this way, or that the timezones in MariaDB/MySQL servers themselves are set explicitly? In other words, what are the values of @@time_zone on these machines? If you are running statement-based replication and using system time zones, the behavior that you observe is expected. Otherwise please attach the output of show variables from both servers. |
| Comment by Elena Stepanova [ 2016-10-12 ] |
|
Please comment to re-open if you have further information on the issue. |