Open GoogleCodeExporter opened 9 years ago
From discussion with Stephane:
1.) Is the workaround to put the Replicator back online?
Yes, not sure the customer feels very comfortable with it though.
2.) How much time would the fix require?
I would go for 1 day (maybe more, but cannot say sure).
This requires a change of the parser for RENAME TABLE.
It would also require a change to handle the fact that a single statement could
update more than one table at a time.
This could probably be restricted to RENAME case for now.
3.) How encapsulated vs. destabilising the fix would be? Looks pretty safe.
Looks pretty safe to me as well (as long as we don’t change anything else
than RENAME parsing / handling).
Original comment by linas.vi...@continuent.com
on 9 Dec 2014 at 1:21
An auto-online cron job until this is fixed should be used.
Original comment by linas.vi...@continuent.com
on 11 Dec 2014 at 3:27
This issue was updated by revision r2714.
Fixed RENAME TABLE parsing : now all tables from the list will be invalidated
from the cache
Original comment by stephane...@continuent.com
on 12 Dec 2014 at 3:51
Partly done and committed.
This shows the problem :
CREATE TABLE `mytest` ( `id` int(10) NOT NULL AUTO_INCREMENT, `new_col`
int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx` (`new_col`) )
ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into mytest values (1,1),(2,2),(3,3);
set session binlog_format=row;
insert into mytest (id) values(100);
create table mytest2 as select * from mytest;
alter table mytest2 ADD COLUMN new_col2 INT(11) NULL;
rename table mytest to mytest_20141212, mytest2 to mytest;
insert into mytest(id,new_col2) values (8,800);
--> this should fail before the fix and works fine after
Still a few filters should be fixed
Original comment by stephane...@continuent.com
on 12 Dec 2014 at 5:31
Original comment by stephane...@continuent.com
on 13 Dec 2014 at 12:07
Original comment by stephane...@continuent.com
on 8 Jan 2015 at 7:35
Validated that the described test does indeed fail on earlier versions but now
succeeds as described
Original comment by eric.har...@continuent.com
on 13 Jan 2015 at 5:16
Original issue reported on code.google.com by
stephane...@continuent.com
on 9 Dec 2014 at 11:17