Project

General

Profile

Actions

Bug #20502

closed

MYSQL Replication breaks because of lack of AUTO_INCREMENT PK in cache_treesection

Added by Lukas Taferner over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2009-05-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Thank you for implementing auto_incrementing PK's in cache_pages and cache_pagesection in 4.3, the table cache_treelist however still has a md5 hash as primary key. This will break replication in a multimaster mysql setup.

Solution:
CREATE TABLE `cache_pages` (
`id` int(11) unsigned NOT NULL auto_increment,
PRIMARY KEY (`id`)
)

(issue imported from #M11184)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20065: MYSQL Replication breaks because of lack of AUTO_INCREMENT PK in cache_pagesectionClosedChristian Kuhn2009-02-20

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

Lukas, could you please send me your MySQL Server and Replication settings?
Are there two MySQL Masters running and replicating at the same time in your scenario?

Actions #2

Updated by Lukas Taferner over 15 years ago

Hi Oliver, we have a setup with multiple MySQL Masters with crossreplication i.e. every write operation is replicated to all the other DB hosts. We could have chosen to set caching to 5 min. and exclude cache* from replication, but it's better to be able to clear the cache on the livebackend (and replicate this to the other hosts) in realtime.

Actions #3

Updated by Lukas Taferner over 15 years ago

Oliver, can you please take care that the issue will be fixed :)
Please check my comment @ #0010508

Actions #4

Updated by Dmitry Dulepov over 14 years ago

Same for cache_imagesizes.

Actions #5

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #6

Updated by Chris topher over 11 years ago

  • Status changed from Needs Feedback to New

Alexander Opitz wrote:

does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Table "cache_treesection" does not exist anymore in current versions.

The problem however is still present for the table "cache_imagesizes".

Actions #7

Updated by Thorsten Kahler over 11 years ago

The problem exists for all MM relation tables, too.

Actions #8

Updated by Michiel Roos over 10 years ago

Problem still present in 4.5 too.

Actions #9

Updated by Riccardo De Contardi over 9 years ago

  • TYPO3 Version changed from 4.3 to 6.2
  • Is Regression set to No

Problem is still present in 6.2 (I mean, about cache_imagesizes)

Actions #10

Updated by Wouter Wolters over 9 years ago

In 7.x cache_imagesizes is ported to the caching framework.

Actions #11

Updated by Georg Ringer about 9 years ago

  • Status changed from New to Resolved

resolved as mentioned about the caching framework

Actions #12

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF