matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: 订阅库创建失败&&订阅库use失败

Open xiaoshuwei opened this issue 1 year ago • 0 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch Name

1.2-dev

Commit ID

acc56f35d3098294466a6a3abc694dfb66a9dfa9

Other Environment Information

- Hardware parameters:
- OS type:
- Others:
阿里云,Dev环境

Actual Behavior

使用两个链接,顺序执行:

  1. 链接1创建订阅库 sub_xx; 。
  2. 链接2 use sub_xx; 第二步报错:
1049, 'invalid database sub_database1'

同时,对应订阅库创建失败,show databases;没有查询到。但链接1的SQL执行已成功。 基于statement_info的request_at和response_at时间确定是否是顺序执行。 截图如下: image 两条SQL statement_id为:

019228f0-71d4-770d-8263-f56689f9411f
019228f0-71f3-7bcb-b8f2-2875151f2683

两条SQL查询Statement_info表的request_at和response_at如下: image 顺序执行。

Expected Behavior

希望use sub_xx;成功

Steps to Reproduce

as Actual Behavior

Additional information

链接串:

mysql -h freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech -P 6001 -u 0191eb25-892a-7a5c-beef-ebe7e9c6646d:admin:accountadmin  -pAdmin123

测试脚本: https://github.com/matrixone-cloud/mocloud-test-tool/blob/main/mo-sql-test-cases/issue-4171/test.py

xiaoshuwei avatar Sep 25 '24 11:09 xiaoshuwei