You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kbcli cluster expose mysql-cluster --auto-approve --force=true --type internet --enable true --components mysql
kubectl get secret mysql-cluster-mysql-account-root -ojsonpath='{.data.username}' | base64 -d
kubectl get secret mysql-cluster-mysql-account-root -ojsonpath='{.data.password}' | base64 -d
kbcli cluster list-instances mysql-cluster
NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME
mysql-cluster-mysql-0 default mysql-cluster mysql Running primary <none> 0 8 / 16 16Gi / 32Gi data:2Ti aks-backuplarge-28239716-vmss000003/10.224.0.7 Feb 14,2025 13:07 UTC+0800
mysql-cluster-mysql-1 default mysql-cluster mysql Running secondary <none> 0 8 / 16 16Gi / 32Gi data:2Ti aks-backuplarge-28239716-vmss000000/10.224.0.9 Feb 14,2025 13:07 UTC+0800
➜ ~
create tpch table
kbcli cluster connect mysql-cluster
create database backupdb;
use backupdb;
CREATE TABLE IF NOT EXISTS CUSTOMER ( C_CUSTKEY INTEGER NOT NULL,C_NAME VARCHAR(25) NOT NULL,C_ADDRESS VARCHAR(40) NOT NULL,C_NATIONKEY INTEGER NOT NULL,C_PHONE CHAR(15) NOT NULL,C_ACCTBAL DECIMAL(15,2) NOT NULL,C_MKTSEGMENT CHAR(10) NOT NULL,C_COMMENT VARCHAR(117) NOT NULL);
load data
echo "use backupdb;load data local INFILE './tpch/customer.tbl' INTO TABLE CUSTOMER FIELDS TERMINATED BY '|';" | mysql --local-infile=1 -h*** -uroot -P3306 -p'***' -A
See error
kbcli cluster list-instances mysql-cluster
NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME
mysql-cluster-mysql-0 default mysql-cluster mysql Running secondary <none> 0 8 / 16 16Gi / 32Gi data:2Ti aks-backuplarge-28239716-vmss000003/10.224.0.7 Feb 14,2025 13:07 UTC+0800
mysql-cluster-mysql-1 default mysql-cluster mysql Running primary <none> 0 8 / 16 16Gi / 32Gi data:2Ti aks-backuplarge-28239716-vmss000000/10.224.0.9 Feb 14,2025 13:07 UTC+0800
Describe the bug
mysql load large data local INFILE causes primary/secondary switch
To Reproduce
Steps to reproduce the behavior:
pod 0
pod 1
Expected behaviorA clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: