Bug #98562 test case main.events_bugs failed with past time

Submitted: 12 Feb 2020 7:13 Modified: 13 Feb 2020 5:36
Reporter: ting du Email Updates:
Status: Duplicate Impact on me:
None 
Category:Tests Severity:S7 (Test Cases)
Version:8.0.18 OS:Ubuntu
Assigned to: CPU Architecture:Any

[12 Feb 2020 7:13] ting du
Description:
test case main.events_bugs failed.
==============================================================================
                  TEST NAME                       RESULT  TIME (ms) COMMENT
------------------------------------------------------------------------------
[100%] main.events_bugs                          [ fail ]
        Test ended at 2020-02-12 11:35:40

CURRENT_TEST: main.events_bugs
mysqltest: At line 1036: Query 'CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1' succeeded, should have failed with error '1290'

==============================================================================
                  TEST NAME                       RESULT  TIME (ms) COMMENT
------------------------------------------------------------------------------
[100%] main.events_bugs                          [ fail ]
        Test ended at 2020-02-12 11:35:40

CURRENT_TEST: main.events_bugs
mysqltest: At line 1036: Query 'CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1' succeeded, should have failed with error '1290'

If change events_bugs.test file like below, it will pass.
==============================================================================
                  TEST NAME                       RESULT  TIME (ms) COMMENT
------------------------------------------------------------------------------
[100%] main.events_bugs                          [ fail ]
        Test ended at 2020-02-12 11:42:06

CURRENT_TEST: main.events_bugs
--- /home/duting/mysql-server-mysql-8.0.18/mysql-test/r/events_bugs.result      2019-09-20 11:29:23.000000000 +0300
+++ /home/duting/mysql-server-mysql-8.0.18/bld/mysql-test/var/log/events_bugs.reject    2020-02-12 06:42:06.593970270 +0300
@@ -647,7 +647,7 @@
 # Connection: u1_con (mysqltest_u1@localhost/events_test).
 #

-CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
+CREATE EVENT e1 ON SCHEDULE AT '2021-01-01 00:00:00' DO SET @a = 1;
 ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement

 ALTER EVENT e1 COMMENT 'comment';
@@ -660,7 +660,7 @@
 # Connection: root_con (root@localhost/events_test).
 #

-CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
+CREATE EVENT e1 ON SCHEDULE AT '2021-01-01 00:00:00' DO SET @a = 1;

How to repeat:
see description.

Suggested fix:
8.0.17 works success. So I do not know if some features in 8.0.18 make it failed. If so, fix this test case. Or there maybe some bug in 8.0.18.
[12 Feb 2020 7:17] ting du
change events_bugs.test file like below:
CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
change to 
CREATE EVENT e1 ON SCHEDULE AT '2021-01-01 00:00:00' DO SET @a = 1;
[13 Feb 2020 5:36] MySQL Verification Team
Hello ting du,

Thank you for the report and feedback.
Imho this is duplicate of Bug #98107, which is fixed in 5.6.48, 5.7.30, 8.0.20.

regards,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.