eZ Publish 3.10.1 believes ezurlalias_ml is inconsistent

Author Message

Martin Burger

Wednesday 05 August 2009 2:26:21 am

Hi,

I upgraded several eZ publish installations to version 3.10.1. The upgrade path was 3.8.0 -> 3.8.10 -> 3.9.5 -> 3.10.1. In all upgrades, I used the same set of commands to do the actual upgrade (according to the upgrade guides).

After upgrading, I checked the database consistency of all sites via Setup -> System Upgrade. While most of the sites don't show any warning, two sites show the same inconsistencies:

ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_act_org;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_act_org ( action, is_original );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_action;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_action ( action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_act_id_lnk;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_act_id_lnk ( parent, action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_lnk_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_lnk_txt ( parent, link, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_txt ( parent, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text ( text, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text_lang;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text_lang ( text, lang_mask, parent );

The server runs MySQL version 5.0.32-Debian_7etch10-log.

I compared table "ezurlalias_ml" in a consistent and in an inconsistent database, their structure is exactly the same:

CREATE TABLE IF NOT EXISTS `ezurlalias_ml` (
  `id` int(11) NOT NULL default '0',
  `link` int(11) NOT NULL default '0',
  `parent` int(11) NOT NULL default '0',
  `lang_mask` int(11) NOT NULL default '0',
  `text` longtext collate latin1_german2_ci NOT NULL,
  `text_md5` varchar(32) collate latin1_german2_ci NOT NULL default '',
  `action` longtext collate latin1_german2_ci NOT NULL,
  `action_type` varchar(32) collate latin1_german2_ci NOT NULL default '',
  `is_original` int(11) NOT NULL default '0',
  `is_alias` int(11) NOT NULL default '0',
  `alias_redirects` int(11) NOT NULL default '1',
  PRIMARY KEY  (`parent`,`text_md5`),
  KEY `ezurlalias_ml_text_lang` (`text`(32),`lang_mask`,`parent`),
  KEY `ezurlalias_ml_text` (`text`(32),`id`,`link`),
  KEY `ezurlalias_ml_action` (`action`(32),`id`,`link`),
  KEY `ezurlalias_ml_par_txt` (`parent`,`text`(32)),
  KEY `ezurlalias_ml_par_lnk_txt` (`parent`,`link`,`text`(32)),
  KEY `ezurlalias_ml_par_act_id_lnk` (`parent`,`action`(32),`id`,`link`),
  KEY `ezurlalias_ml_id` (`id`),
  KEY `ezurlalias_ml_act_org` (`action`(32),`is_original`),
  KEY `ezurlalias_ml_actt_org_al` (`action_type`,`is_original`,`is_alias`),
  KEY `ezurlalias_ml_actt` (`action_type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;

Interestingly, all the indexes actually exist in the database schema. However, if I run the queries against the database, MySQL will show an error:

#1170 - BLOB/TEXT column 'action' used in key specification without a key length

Thus, it is not possible to drop and add the indexes.

However, at least two question arise:

(1) Why do two eZ publish instances complain about the structure above, while the others don't? Although they use the very same structure.

(2) Why does eZ publish warn about these inconsistencies at all, although the indexes do exist?

I checked the kernel files etc., they are the same. Further, I emptied the inconsistent table "ezurlalias_ml" in one of the two inconsistent databases. However, eZ publish still complains about this table. Thus, the failure should be caused by the structure, and not by the table's content.

What could be the cause for these inconsistencies? Or, why does eZ publish believe table "ezurlalias_ml" is inconsistent?

Regards

Martin Burger

http://www.netbeyond.de/

Martin Burger

Wednesday 05 August 2009 3:20:00 am

I created the database from scratch:

1) I installed a fresh and clean instance of eZ Publish 3.10.1 via the setup wizard in order to have a new and error-free database.
2) I created a new, empty database.
3) I used the schema of database (1) to create all the required tables in database (2).
4) I copied all the data (but not the structure) from the "inconsistent" database to the new one (2).
5) I change the configuration of the "corrupt" instance so that it uses database (2) - new structure, old data - instead of the inconsistent one.

However, eZ Publish still believes that table ezurlalias_ml is inconsistent.

http://www.netbeyond.de/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:20:40
Script start
Timing: Jan 18 2025 15:20:40
Module start 'layout'
Timing: Jan 18 2025 15:20:40
Module start 'content'
Timing: Jan 18 2025 15:20:41
Module end 'content'
Timing: Jan 18 2025 15:20:41
Script end

Main resources:

Total runtime0.7405 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.6406152.6563
Module start 'layout' 0.00450.0022 742.296939.4922
Module start 'content' 0.00670.7321 781.7891510.0469
Module end 'content' 0.73890.0016 1,291.835912.0938
Script end 0.7405  1,303.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4496160.0002
Check MTime0.00120.1612160.0001
Mysql Total
Database connection0.00060.084310.0006
Mysqli_queries0.691193.3329520.0133
Looping result0.00050.0648500.0000
Template Total0.711496.120.3557
Template load0.00180.238420.0009
Template processing0.709695.823420.3548
Template load and register function0.00010.012410.0001
states
state_id_array0.00090.121510.0009
state_identifier_array0.00120.158120.0006
Override
Cache load0.00140.1954300.0000
Sytem overhead
Fetch class attribute can translate value0.00100.138210.0010
Fetch class attribute name0.00110.154330.0004
XML
Image XML parsing0.00050.065610.0005
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00090.1154160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs