Skip to content

IllegalStateException when import database configuration in Proxy #38640

@RaigorJiang

Description

@RaigorJiang

Bug Report

Which version of ShardingSphere did you use?

5.5.4-SNAPSHOT 1358c7b

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

Import database success

Actual behavior

Exception occurs

Reason analyze (If you can)

No

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

  1. Create logic database
create database sharding_db;

use sharding_db;
  1. Register storage unit
REGISTER STORAGE UNIT ds_0 (
    URL="jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true",
    USER="root",
    PASSWORD="123456",
    PROPERTIES("maximumPoolSize"=10)
);
  1. Load single table
show unloaded single tables;

load single table *.*;

show single tables;
  1. Export database configuration
export database configuration to file '/tmp/database-sharding-db.yaml';
  1. Import database configuration
  • Drop database first
use mysql;
drop database sharding_db;
  • Import
import database configuration from file '/tmp/database-sharding-db.yaml';
Image
  • Error log in Proxy
Image

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions