Skip to content

Conversation

@zhifei92
Copy link
Contributor

fixes #363
The "sys_operator.status" table of the slave node does not appear to be clean, although --tables-exclude is added to the backup. Delete "sys_operator.status" before starting from the slave node, and it's working fine now.

  • I've made sure the Changelog.md will remain up-to-date after this PR is merged.

@zhifei92
Copy link
Contributor Author

fixes #363

The "sys_operator.status" table of the slave node does not appear to be clean, although --tables-exclude is added to the backup. Delete "sys_operator.status" before starting from the slave node, and it's working fine now.

  • I've made sure the Changelog.md will remain up-to-date after this PR is merged.

@zhifei92 zhifei92 closed this Sep 16, 2020
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
percona-toolkit percona-xtrabackup-24 unzip \
percona-toolkit percona-xtrabackup-80 unzip \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing should be done for the root Dockerfile.sidecar

// CSV engine for this table can't be used because we use REPLACE statement that requires PRIMARY KEY or
// UNIQUE KEY index
// nolint: gosec
if !strings.HasSuffix(cfg.Hostname, "-0") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires some comments explaining why this is needed. I'm curious why this works? 😄

Also, there is a function that checks the pod ordinal:

Suggested change
if !strings.HasSuffix(cfg.Hostname, "-0") {
if !cfg.IsFirstPodInSet() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MySQL 8.0] Init Container issue

2 participants