forked from percona/percona-xtradb-cluster-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8SPXC-1106: PITR not uploading files if corrupted binlog exists (per…
…cona#1423) * K8SPXC-1106: PITR not uploading files if corrupted binlog exists https://jira.percona.com/browse/K8SPXC-1106 * add test * improve test * optimize `pitr` test * fix tests * split `pitr` test * fix pitr2 test * rename test from pitr2 to pitr-gap-errors * Update e2e-tests/scaling/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update e2e-tests/scaling/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update e2e-tests/pitr-gap-errors/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * remove BACKUP_IMAGE --------- Co-authored-by: Viacheslav Sarzhan <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
545b2e0
commit 338f4cf
Showing
26 changed files
with
585 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
100500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
100500 | ||
100501 | ||
100502 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
100500 | ||
100501 | ||
100502 | ||
100503 | ||
100504 | ||
100505 | ||
100506 | ||
100507 | ||
100508 | ||
100509 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR 1146 (42S02) at line 1: Table 'test.invalid' doesn't exist | ||
command terminated with exit code 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tls-minio | ||
spec: | ||
commonName: minio-service | ||
secretName: tls-minio | ||
issuerRef: | ||
name: selfsigning-issuer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: selfsigning-issuer | ||
spec: | ||
selfSigned: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: pxc.percona.com/v1 | ||
kind: PerconaXtraDBClusterBackup | ||
metadata: | ||
name: on-pitr-minio | ||
spec: | ||
pxcCluster: pitr-gap-errors | ||
storageName: minio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
apiVersion: pxc.percona.com/v1-6-0 | ||
kind: PerconaXtraDBCluster | ||
metadata: | ||
name: pitr-gap-errors | ||
finalizers: | ||
- delete-pxc-pods-in-order | ||
# annotations: | ||
# percona.com/issue-vault-token: "true" | ||
spec: | ||
secretsName: my-cluster-secrets | ||
vaultSecretName: some-name-vault | ||
pause: false | ||
pxc: | ||
size: 3 | ||
image: -pxc | ||
configuration: | | ||
[sst] | ||
xbstream-opts=--decompress | ||
[xtrabackup] | ||
compress=lz4 | ||
resources: | ||
requests: | ||
memory: 0.1G | ||
cpu: 100m | ||
limits: | ||
memory: "1G" | ||
cpu: "1" | ||
volumeSpec: | ||
persistentVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
affinity: | ||
antiAffinityTopologyKey: "kubernetes.io/hostname" | ||
proxysql: | ||
enabled: true | ||
size: 2 | ||
image: -proxysql | ||
resources: | ||
requests: | ||
memory: 0.1G | ||
cpu: 100m | ||
limits: | ||
memory: 1G | ||
cpu: 700m | ||
volumeSpec: | ||
persistentVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
affinity: | ||
antiAffinityTopologyKey: "kubernetes.io/hostname" | ||
pmm: | ||
enabled: false | ||
image: perconalab/pmm-client:1.17.1 | ||
serverHost: monitoring-service | ||
serverUser: pmm | ||
backup: | ||
image: -backup | ||
imagePullPolicy: Always | ||
pitr: | ||
enabled: true | ||
storageName: minio-binlogs | ||
timeBetweenUploads: 55 | ||
storages: | ||
minio: | ||
type: s3 | ||
verifyTLS: false | ||
s3: | ||
credentialsSecret: minio-secret | ||
region: us-east-1 | ||
bucket: operator-testing | ||
endpointUrl: https://minio-service:9000 | ||
minio-binlogs: | ||
type: s3 | ||
verifyTLS: false | ||
s3: | ||
credentialsSecret: minio-secret | ||
region: us-east-1 | ||
bucket: operator-testing/binlogs | ||
endpointUrl: https://minio-service:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
e2e-tests/pitr-gap-errors/conf/restore-on-pitr-minio-invalid.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: pxc.percona.com/v1 | ||
kind: PerconaXtraDBClusterRestore | ||
metadata: | ||
annotations: | ||
percona.com/unsafe-pitr: "true" | ||
name: on-pitr-minio-invalid | ||
spec: | ||
pxcCluster: pitr-gap-errors | ||
backupName: on-pitr-minio | ||
pitr: | ||
type: transaction | ||
gtid: <gtid> | ||
backupSource: | ||
storageName: "minio-binlogs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: pxc.percona.com/v1 | ||
kind: PerconaXtraDBClusterRestore | ||
metadata: | ||
name: on-pitr-minio | ||
spec: | ||
pxcCluster: pitr-gap-errors | ||
backupSource: | ||
verifyTLS: false | ||
destination: <destination> | ||
s3: | ||
bucket: operator-testing | ||
credentialsSecret: minio-secret | ||
endpointUrl: https://minio-service:9000 | ||
region: us-east-1 | ||
pitr: | ||
type: latest | ||
backupSource: | ||
verifyTLS: false | ||
s3: | ||
bucket: operator-testing/binlogs | ||
credentialsSecret: minio-secret | ||
endpointUrl: https://minio-service:9000 | ||
region: us-east-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.