Skip to content

Conversation

@wuwenchi
Copy link
Contributor

Proposed changes

bp: #40729

## Proposed changes


1. Concurrency issues:
a. One thread is performing a refresh catalog action.
b. One thread is performing an insert table action, and after
completion, it executes a refresh table action.

The `partitionCache` will be refreshed only if the corresponding table
exists in the `partitionValuesCache`. However, the
`partitionValuesCache` may have been refreshed by the `refresh catalog`,
resulting in the inability to find the corresponding table through the
`partitionValuesCache`, resulting in the `partitionCache` not being
refreshed.
Similarly, the `fileCacheRef` may not be refreshed either.
Therefore, directly search for all keys to match to prevent them from
being refreshed.

2. No need to perform refreshAfterWriteSec operation on partitionCache.
3. Increase the thread pool size.
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@wuwenchi
Copy link
Contributor Author

run buildall

@morningman morningman merged commit f4b06e8 into apache:branch-2.1 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants