You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "platoneko (via GitHub)" <gi...@apache.org> on 2023/02/28 12:33:44 UTC
[GitHub] [doris] platoneko opened a new pull request, #17252: [fix](cooldown) Fix deadlock in tablet clone
platoneko opened a new pull request, #17252:
URL: https://github.com/apache/doris/pull/17252
# Proposed changes
Issue Number: close #xxx
## Problem summary
`Tablet::create_rowset` acquires shared `_meta_lock`, while caller already holds the exclusive `_meta_lock`.
## Checklist(Required)
* [ ] Does it affect the original behavior
* [ ] Has unit tests been added
* [ ] Has document been added or modified
* [ ] Does it need to update dependencies
* [ ] Is this PR support rollback (If NO, please explain WHY)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1451358822
run p0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1449652485
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1448109321
clang-tidy review says "All clean, LGTM! :+1:"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] dataroaring merged pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring merged PR #17252:
URL: https://github.com/apache/doris/pull/17252
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1449662538
clang-tidy review says "All clean, LGTM! :+1:"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] cambyzju commented on a diff in pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju commented on code in PR #17252:
URL: https://github.com/apache/doris/pull/17252#discussion_r1121232780
##########
be/src/olap/tablet.cpp:
##########
@@ -1642,7 +1642,7 @@ void Tablet::_init_context_common_fields(RowsetWriterContext& context) {
}
Status Tablet::create_rowset(const RowsetMetaSharedPtr& rowset_meta, RowsetSharedPtr* rowset) {
- return RowsetFactory::create_rowset(tablet_schema(), tablet_path(), rowset_meta, rowset);
+ return RowsetFactory::create_rowset(_schema, tablet_path(), rowset_meta, rowset);
Review Comment:
should use _max_version_schema?
```
TabletSchemaSPtr Tablet::tablet_schema() const {
std::shared_lock wrlock(_meta_lock);
return _max_version_schema;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1448407835
run p0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on a diff in pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on code in PR #17252:
URL: https://github.com/apache/doris/pull/17252#discussion_r1121271787
##########
be/src/olap/tablet.cpp:
##########
@@ -1642,7 +1642,7 @@ void Tablet::_init_context_common_fields(RowsetWriterContext& context) {
}
Status Tablet::create_rowset(const RowsetMetaSharedPtr& rowset_meta, RowsetSharedPtr* rowset) {
- return RowsetFactory::create_rowset(tablet_schema(), tablet_path(), rowset_meta, rowset);
+ return RowsetFactory::create_rowset(_schema, tablet_path(), rowset_meta, rowset);
Review Comment:
If `rowset_meta` has schema, new rowset will use tablet_schema in `rowset_meta`(after version 1.2), otherwise it MUST be old version before 1.2 which doesn't support light schema change and tablet only has one schema.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1448106490
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1451252868
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1449273704
run NereidsP0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] platoneko commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "platoneko (via GitHub)" <gi...@apache.org>.
platoneko commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1449329302
run p0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1449738209
clang-tidy review says "All clean, LGTM! :+1:"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1451519567
PR approved by at least one committer and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #17252: [fix](cooldown) Fix deadlock in tablet clone
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17252:
URL: https://github.com/apache/doris/pull/17252#issuecomment-1451519647
PR approved by anyone and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org