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
[Refactor] Synchronize OLAP external table metadata when loading data #24739
Merged
gengjun-git
merged 3 commits into
StarRocks:main
from
gengjun-git:sync_olap_external_table_when_load
Jun 12, 2023
Merged
[Refactor] Synchronize OLAP external table metadata when loading data #24739
gengjun-git
merged 3 commits into
StarRocks:main
from
gengjun-git:sync_olap_external_table_when_load
Jun 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nshangyiming
reviewed
Jun 6, 2023
Signed-off-by: gengjun-git <gengjun@starrocks.com>
nshangyiming
reviewed
Jun 6, 2023
Kudos, SonarCloud Quality Gate passed! |
[FE PR Coverage Check]😞 fail : 6 / 186 (03.23%) file detail
|
nshangyiming
approved these changes
Jun 8, 2023
Astralidea
approved these changes
Jun 12, 2023
@Mergifyio backport branch-3.1 branch-3.0 branch-2.5 branch-2.4 branch-2.3 |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Jun 12, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com> (cherry picked from commit ef1fc6a)
mergify bot
pushed a commit
that referenced
this pull request
Jun 12, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com> (cherry picked from commit ef1fc6a) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/ExternalOlapTable.java # fe/fe-core/src/main/java/com/starrocks/catalog/OlapTable.java # fe/fe-core/src/main/java/com/starrocks/external/starrocks/StarRocksRepository.java # fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java # fe/fe-core/src/main/java/com/starrocks/server/GlobalStateMgr.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AnalyzerUtils.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/InsertAnalyzer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/QueryAnalyzer.java
mergify bot
pushed a commit
that referenced
this pull request
Jun 12, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com> (cherry picked from commit ef1fc6a) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/ExternalOlapTable.java # fe/fe-core/src/main/java/com/starrocks/external/starrocks/StarRocksRepository.java # fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java # fe/fe-core/src/main/java/com/starrocks/server/GlobalStateMgr.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/InsertAnalyzer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/QueryAnalyzer.java
mergify bot
pushed a commit
that referenced
this pull request
Jun 12, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com> (cherry picked from commit ef1fc6a) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/ExternalOlapTable.java # fe/fe-core/src/main/java/com/starrocks/catalog/OlapTable.java # fe/fe-core/src/main/java/com/starrocks/external/starrocks/StarRocksRepository.java # fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java # fe/fe-core/src/main/java/com/starrocks/server/GlobalStateMgr.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AnalyzerUtils.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/InsertAnalyzer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/QueryAnalyzer.java
mergify bot
pushed a commit
that referenced
this pull request
Jun 12, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com> (cherry picked from commit ef1fc6a) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/ExternalOlapTable.java # fe/fe-core/src/main/java/com/starrocks/catalog/OlapTable.java # fe/fe-core/src/main/java/com/starrocks/external/starrocks/StarRocksRepository.java # fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java # fe/fe-core/src/main/java/com/starrocks/server/GlobalStateMgr.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AnalyzerUtils.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/InsertAnalyzer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/QueryAnalyzer.java
This was referenced Jun 12, 2023
Closed
Closed
Closed
Closed
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Jun 16, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Jun 16, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Jun 16, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Jun 16, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Jun 16, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
wanpengfei-git
pushed a commit
that referenced
this pull request
Jun 19, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
that referenced
this pull request
Jun 19, 2023
… loading data (#25496) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. backport #24739 Signed-off-by: gengjun-git <gengjun@starrocks.com>
wanpengfei-git
pushed a commit
that referenced
this pull request
Jun 19, 2023
…#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
gengjun-git
added a commit
to gengjun-git/starrocks
that referenced
this pull request
Sep 22, 2023
…StarRocks#24739) Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table. Since the synchronization is time costly, so we should release the database lock when synchronizing meta data. Signed-off-by: gengjun-git <gengjun@starrocks.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, StarRocks use StarRocksRepository to synchronize OLAP external table metadata every 10 seconds, which is
inefficient, because the meta data will never be used when there is no load job on that external table. Change the synchronization to be triggered when there is load job on that table.
Since the synchronization is time costly, so we should release the database lock when synchronizing meta data.
What type of PR is this:
Checklist:
Bugfix cherry-pick branch check: