Open JashBook opened 3 months ago
rebuild instance inPlace: true ERROR 1064 (HY000): Build Exec OlapScanNode fail, scan info is invalid
apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
name: strsent-drhbqv
namespace: default
spec:
terminationPolicy: Delete
componentSpecs:
- name: be
componentDef: starrocks-be
serviceAccountName: kb-strsent-drhbqv
replicas: 2
resources:
requests:
cpu: 3000m
memory: 8Gi
limits:
cpu: 3000m
memory: 8Gi
volumeClaimTemplates:
- name: data
spec:
storageClassName:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
- name: fe
componentDef: starrocks-fe-sn
serviceAccountName: kb-strsent-drhbqv
replicas: 2
resources:
requests:
cpu: 3000m
memory: 8Gi
limits:
cpu: 3000m
memory: 8Gi
volumeClaimTemplates:
- name: data
spec:
storageClassName:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
kbcli cluster list-instances strsent-drhbqv --namespace default `
NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME
strsent-drhbqv-be-0 default strsent-drhbqv be Running
strsent-drhbqv-be-1 default strsent-drhbqv be Running
strsent-drhbqv-fe-0 default strsent-drhbqv fe Running
strsent-drhbqv-fe-1 default strsent-drhbqv fe Running
2. insert data
kubectl exec -it strsent-drhbqv-fe-0 -c fe --namespace default bash mysql -P9030 -hstrsent-drhbqv-fe-fe.default.svc -uroot -p'h55O8t1s9I' CREATE DATABASE IF NOT EXISTS mydb; use mydb; DROP TABLE IF EXISTS tmp_table; CREATE TABLE IF NOT EXISTS tmp_table (id INT, value STRING) PROPERTIES ( 'replication_num' = '1' ); INSERT INTO tmp_table (id, value) VALUES (1,'peyizhlofa');
3. rebuild instance
kind: OpsRequest metadata: generateName: strsent-drhbqv-rebuildinstance- namespace: default spec: type: RebuildInstance clusterRef: strsent-drhbqv force: true rebuildFrom:
kubectl get cluster strsent-drhbqv NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE strsent-drhbqv Delete Running 15m
➜ ~ kubectl get pod -l app.kubernetes.io/instance=strsent-drhbqv NAME READY STATUS RESTARTS AGE strsent-drhbqv-be-0 3/3 Running 0 8m4s strsent-drhbqv-be-1 3/3 Running 0 15m strsent-drhbqv-fe-0 3/3 Running 0 15m strsent-drhbqv-fe-1 3/3 Running 0 15m
kbcli cluster list-ops strsent-drhbqv --status all --namespace default `
NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME
strsent-drhbqv-rebuildinstance-fgs9n default RebuildInstance strsent-drhbqv be Succeed 1/1 Jul 23,2024 13:00 UTC+0800
4. see error
kubectl exec -it strsent-drhbqv-fe-0 -c fe --namespace default bash
mysql -P9030 -hstrsent-drhbqv-fe-fe.default.svc -uroot -p'h55O8t1s9I'
use mydb;
mysql> SELECT value FROM tmp_table WHERE id = 1; ERROR 1064 (HY000): Build Exec OlapScanNode fail, scan info is invalid
Describe the bug
ERROR 1064 (HY000): Backend node not found. Check if any backend node is down.backend: [strsent-lxdilk-be-0.strsent-lxdilk-be-headless.default.svc.cluster.local alive: false inBlacklist: false] [strsent-lxdilk-be-1.strsent-lxdilk-be-headless.default.svc.cluster.local alive: true inBlacklist: false] [strsent-lxdilk-be-2.strsent-lxdilk-be-headless.default.svc.cluster.local alive: true inBlacklist: false]
To Reproduce Steps to reproduce the behavior:
mysql -P9030 -hstrsent-lxdilk-fe-fe.default.svc -uroot -p'8ml3Sg3m97'
CREATE DATABASE IF NOT EXISTS mydb; use mydb; DROP TABLE IF EXISTS tmp_table; CREATE TABLE IF NOT EXISTS tmp_table (id INT, value STRING) PROPERTIES ( 'replication_num' = '1' ); INSERT INTO tmp_table (id, value) VALUES (1,'ljledwjjae');
apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: strsent-lxdilk-rebuildinstance- namespace: default spec: type: RebuildInstance clusterRef: strsent-lxdilk force: true rebuildFrom:
kbcli cluster list-ops strsent-lxdilk --status all --namespace default NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME
ops_status:strsent-lxdilk-rebuildinstance-57q92 default RebuildInstance strsent-lxdilk be Succeed 1/1 Jul 23,2024 12:10 UTC+0800
kubectl get cluster strsent-lxdilk NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE strsent-lxdilk Delete Running 16m
➜ ~ kubectl get pod -l app.kubernetes.io/instance=strsent-lxdilk NAME READY STATUS RESTARTS AGE strsent-lxdilk-be-1 3/3 Running 2 (14m ago) 17m strsent-lxdilk-be-2 3/3 Running 0 12m strsent-lxdilk-fe-0 3/3 Running 0 17m strsent-lxdilk-fe-1 3/3 Running 1 (14m ago) 17m
kubectl exec -it strsent-lxdilk-fe-0 -c fe --namespace default bash
mysql -P9030 -hstrsent-lxdilk-fe-fe.default.svc -uroot -p'8ml3Sg3m97'
use mydb;
SELECT value FROM tmp_table WHERE id = 1; ERROR 1064 (HY000): Backend node not found. Check if any backend node is down.backend: [strsent-lxdilk-be-0.strsent-lxdilk-be-headless.default.svc.cluster.local alive: false inBlacklist: false] [strsent-lxdilk-be-1.strsent-lxdilk-be-headless.default.svc.cluster.local alive: true inBlacklist: false] [strsent-lxdilk-be-2.strsent-lxdilk-be-headless.default.svc.cluster.local alive: true inBlacklist: false]