-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] test suite test_table_options may cause NPE in FE #39457
Comments
I will check it |
Vallishp
added a commit
to Vallishp/doris
that referenced
this issue
Aug 16, 2024
Vallishp
added a commit
to Vallishp/doris
that referenced
this issue
Aug 16, 2024
Vallishp
added a commit
to Vallishp/doris
that referenced
this issue
Aug 16, 2024
Vallishp
added a commit
to Vallishp/doris
that referenced
this issue
Aug 17, 2024
yiguolei
pushed a commit
to Vallishp/doris
that referenced
this issue
Aug 18, 2024
yiguolei
pushed a commit
that referenced
this issue
Aug 19, 2024
## Proposed changes Issue Number: close #39457 If database is delete then FE should check and return OK with empty set to BE, so that BE can continue the scan other database id Unit testing: stubbed BE to add a invalid database id in the begin of the dbresult.dbids and reproduced this issue. mysql> select * from information_schema.table_options; ERROR 1105 (HY000): errCode = 2, detailMessage = (127.0.0.1)[INTERNAL_ERROR]TStatus: Cannot invoke "org.apache.doris.catalog.DatabaseIf.getTables()" because "database" is null mysql> select * from information_schema.table_properties; ERROR 1105 (HY000): errCode = 2, detailMessage = (127.0.0.1)[INTERNAL_ERROR]TStatus: Cannot invoke "org.apache.doris.catalog.DatabaseIf.getTables()" because "database" is null mysql> After fix in FE both table query success with invalid dbid from BE. *************************** 776. row *************************** TABLE_CATALOG: internal TABLE_SCHEMA: regression_test_tpch_unique_sql_zstd_bucket1_p0 TABLE_NAME: partsupp TABLE_MODEL: UNI TABLE_MODEL_KEY: PS_PARTKEY,PS_SUPPKEY DISTRIBUTE_KEY: PS_PARTKEY DISTRIBUTE_TYPE: HASH BUCKETS_NUM: 1 PARTITION_NUM: 1 776 rows in set (0.11 sec) mysql> Both table can query even if in the begining there is a invalid dbid in BE list.
Vallishp
added a commit
to Vallishp/doris
that referenced
this issue
Aug 21, 2024
wangbo
pushed a commit
to wangbo/incubator-doris
that referenced
this issue
Aug 28, 2024
yiguolei
pushed a commit
that referenced
this issue
Aug 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
Version
master
Problem
Test test_table_options.groovy failed because of NPE in FE.
catalog.getDbNullable(dbId);
may return null when DB is droppedSchemaTablePropertiesScanner
first fetch all DB in BE, then get data from FE by DB one by one, when DB is droppped, then NPE happens, so FE should deal the case that a DB name exits in BE but it's dropped already in FE.regression test link:
http://43.132.222.7:8111/buildConfiguration/Doris_DorisRegression_P0Regression/506268?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandPull+Request+Details=true&expandBuildTestsSection=true&expandBuildChangesSection=true
Code of Conduct
The text was updated successfully, but these errors were encountered: