-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[refactor](catalog) set "use_meta_cache" default to true #38244
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 40290 ms |
TPC-DS: Total hot run time: 174555 ms |
ClickBench: Total hot run time: 30.57 s |
|
run buildall |
TPC-H: Total hot run time: 40184 ms |
TPC-DS: Total hot run time: 173428 ms |
ClickBench: Total hot run time: 30.68 s |
zy-kkk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Jibing-Li
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is PR #33610 introduce a new feature of `use_meta_cache=true`. Now I will set this property default to true. For all newly created catalog, is this property is not specified, it will be true. For all previously created catalog, this property is still false.
This is PR apache#33610 introduce a new feature of `use_meta_cache=true`. Now I will set this property default to true. For all newly created catalog, is this property is not specified, it will be true. For all previously created catalog, this property is still false.
Followup #38244 fix some unstable fe ut after set `use_meta_cache` as true
Brought by: #38244 how to reproduce: create a hms catalog named hive with property use_meta_cache = false, after that restart fe, and run sql `switch hive; show databases;`, will get error: ```sql ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.metacache.MetaCache.listNames()" because "this.metaCache" is null ``` reason, property use_meta_cache of newly created hms catalog after pr #38244 was force convert to true, but field `useMetaCache` of class ExternalCatalog is not converted at the same time.
This is PR apache#33610 introduce a new feature of `use_meta_cache=true`. Now I will set this property default to true. For all newly created catalog, is this property is not specified, it will be true. For all previously created catalog, this property is still false.
…#38619) Brought by: apache#38244 how to reproduce: create a hms catalog named hive with property use_meta_cache = false, after that restart fe, and run sql `switch hive; show databases;`, will get error: ```sql ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.metacache.MetaCache.listNames()" because "this.metaCache" is null ``` reason, property use_meta_cache of newly created hms catalog after pr apache#38244 was force convert to true, but field `useMetaCache` of class ExternalCatalog is not converted at the same time.
…#38619) Brought by: apache#38244 how to reproduce: create a hms catalog named hive with property use_meta_cache = false, after that restart fe, and run sql `switch hive; show databases;`, will get error: ```sql ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.metacache.MetaCache.listNames()" because "this.metaCache" is null ``` reason, property use_meta_cache of newly created hms catalog after pr apache#38244 was force convert to true, but field `useMetaCache` of class ExternalCatalog is not converted at the same time.
Followup #38244 fix some unstable fe ut after set `use_meta_cache` as true
Brought by: #38244 how to reproduce: create a hms catalog named hive with property use_meta_cache = false, after that restart fe, and run sql `switch hive; show databases;`, will get error: ```sql ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.metacache.MetaCache.listNames()" because "this.metaCache" is null ``` reason, property use_meta_cache of newly created hms catalog after pr #38244 was force convert to true, but field `useMetaCache` of class ExternalCatalog is not converted at the same time.
Followup #38244 fix some unstable fe ut after set `use_meta_cache` as true
Brought by: #38244 how to reproduce: create a hms catalog named hive with property use_meta_cache = false, after that restart fe, and run sql `switch hive; show databases;`, will get error: ```sql ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.metacache.MetaCache.listNames()" because "this.metaCache" is null ``` reason, property use_meta_cache of newly created hms catalog after pr #38244 was force convert to true, but field `useMetaCache` of class ExternalCatalog is not converted at the same time.
…using meta cache and add parameters to the Hive catalog. (#39239) before #15401 and #38244 ## Proposed changes 1. Add the parameter `hive.enable_hms_events_incremental_sync` to the hive catalog, which is used to switch the catalog to read hive notification events (default is false). The default value is `enable_hms_events_incremental_sync` in fe.conf 2. Add the parameter `hive.hms_events_batch_size_per_rpc` to the hive catalog, which is used to set the size of notification events read by the catalog each time. The default value is `hms_events_batch_size_per_rpc` in fe.conf (default is 500) 3. append hms event notification case . 4. Remove the `use_meta_cache` setting in catalog that is forced to true. Example : ``` create catalog if not exists catalog_name properties ( "type"="hms", 'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port', "hive.enable_hms_events_incremental_sync" ="true", "hive.hms_events_batch_size_per_rpc" = "1000" ); ```
…using meta cache and add parameters to the Hive catalog. (apache#39239) before apache#15401 and apache#38244 1. Add the parameter `hive.enable_hms_events_incremental_sync` to the hive catalog, which is used to switch the catalog to read hive notification events (default is false). The default value is `enable_hms_events_incremental_sync` in fe.conf 2. Add the parameter `hive.hms_events_batch_size_per_rpc` to the hive catalog, which is used to set the size of notification events read by the catalog each time. The default value is `hms_events_batch_size_per_rpc` in fe.conf (default is 500) 3. append hms event notification case . 4. Remove the `use_meta_cache` setting in catalog that is forced to true. Example : ``` create catalog if not exists catalog_name properties ( "type"="hms", 'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port', "hive.enable_hms_events_incremental_sync" ="true", "hive.hms_events_batch_size_per_rpc" = "1000" ); ```
…using meta cache and add parameters to the Hive catalog. (#39239) before #15401 and #38244 ## Proposed changes 1. Add the parameter `hive.enable_hms_events_incremental_sync` to the hive catalog, which is used to switch the catalog to read hive notification events (default is false). The default value is `enable_hms_events_incremental_sync` in fe.conf 2. Add the parameter `hive.hms_events_batch_size_per_rpc` to the hive catalog, which is used to set the size of notification events read by the catalog each time. The default value is `hms_events_batch_size_per_rpc` in fe.conf (default is 500) 3. append hms event notification case . 4. Remove the `use_meta_cache` setting in catalog that is forced to true. Example : ``` create catalog if not exists catalog_name properties ( "type"="hms", 'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port', "hive.enable_hms_events_incremental_sync" ="true", "hive.hms_events_batch_size_per_rpc" = "1000" ); ```
Followup #38244 When setting `use_meta_cache=true`, the `include_database_list` and `exclude_database_list` will have no effect. This PR fix it. Also fix a bug, related to #40479. if `include_database_list` and `exclude_database_list` is set, and `use` a database which is excluded, Doris should return "database not found" error
…#41939) Followup apache#38244 When setting `use_meta_cache=true`, the `include_database_list` and `exclude_database_list` will have no effect. This PR fix it. Also fix a bug, related to apache#40479. if `include_database_list` and `exclude_database_list` is set, and `use` a database which is excluded, Doris should return "database not found" error
…#41939) Followup apache#38244 When setting `use_meta_cache=true`, the `include_database_list` and `exclude_database_list` will have no effect. This PR fix it. Also fix a bug, related to apache#40479. if `include_database_list` and `exclude_database_list` is set, and `use` a database which is excluded, Doris should return "database not found" error
This is PR #33610 introduce a new feature of
use_meta_cache=true.Now I will set this property default to true.
For all newly created catalog, is this property is not specified, it will be true.
For all previously created catalog, this property is still false.