Skip to content

[Bug]: show tables; abnormal results #11319

Closed

Description

@tianyahui-python

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Reproducible Steps

client 1 execute:
create database db1;
use db1;

client 2 execute:
drop database db1;

client 1 execute:
show tables;

mysql> show tables;
ERROR: 
ExpectedEOB

Expected Behavior

mysql> show tables;
ERROR 1046 (HY000): not connect to a database

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added this to the 1.0.0 milestone on Aug 19, 2023
  2. added
    severity/s0
    on Aug 19, 2023
  3. aronchanisme commented on Aug 19, 2023

    @aronchanisme
    Contributor

    The issue is raised when client 2 drops a database which client 1 has already connected to, and then client 1 executes a show tables command in that database and it gets ExpectedEOB error instead of more a reasonable error like ERROR 1049 (HY000): invalid database db1 or db1 has already been dropped or something like that.

    @daviszhen Could you please kindly help take a look?

    Reproducible on this commit

    mo_ctl get_cid
    2023-08-19 14:52:46.359 UTC+0800    [INFO]    Try get mo commit id
    commit d7b67646f52d5ba5e2cf6634fc9dd9b7995f2be5
    Author: triump2020 <[email protected]>
    Date:   Fri Aug 18 23:25:32 2023 +0800
    
        fix bug for creating table with large number of attributes (#11308)
        
    2023-08-19 14:52:46.395 UTC+0800    [INFO]    Get commit id succeeded
    image
  4. daviszhen commented on Aug 19, 2023

    @daviszhen
    Contributor

    第一次执行show tables能出这个问题。
    第二次执行show tables出正常的报错。

    
    
    mysql> create database db1;
    Query OK, 1 row affected (0.10 sec)
    
    mysql> use db1;
    Database changed
    mysql> show tables;
    ERROR: 
    ExpectedEOB
    mysql> use db1;
    ERROR 1049 (HY000): invalid database db1
    
  5. daviszhen commented on Aug 19, 2023

    @daviszhen
    Contributor

    it was fixed.

  6. 18 remaining items

  7. daviszhen commented on Sep 27, 2023

    @daviszhen
    Contributor

    还没看

  8. daviszhen commented on Sep 28, 2023

    @daviszhen
    Contributor

    还没看

  9. daviszhen commented on Oct 7, 2023

    @daviszhen
    Contributor

    还没看

  10. daviszhen commented on Oct 9, 2023

    @daviszhen
    Contributor

    还没看

  11. daviszhen commented on Oct 11, 2023

    @daviszhen
    Contributor

    还没看

  12. daviszhen commented on Oct 13, 2023

    @daviszhen
    Contributor

    还没看

  13. daviszhen commented on Oct 16, 2023

    @daviszhen
    Contributor

    还没看

  14. daviszhen commented on Oct 18, 2023

    @daviszhen
    Contributor

    还没看

  15. daviszhen commented on Oct 23, 2023

    @daviszhen
    Contributor

    pr中

  16. daviszhen commented on Oct 24, 2023

    @daviszhen
    Contributor

    现在的报错.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql> create database db1;
    Query OK, 1 row affected (0.08 sec)
    
    mysql> use db1;
    Database changed
    mysql> show tables;
    ERROR 1046 (HY000): not connect to a database
    mysql> show tables from db1;
    ERROR 1049 (HY000): invalid database db1
    mysql>
    
    
  17. tianyahui-python commented on Oct 26, 2023

    @tianyahui-python
    ContributorAuthor

    testing

  18. tianyahui-python commented on Oct 31, 2023

    @tianyahui-python
    ContributorAuthor

    test done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions