Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.9k
[fix](be) Backpressure async group commit by table WAL count#65362
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -113,6 +113,12 @@ Status WalTable::_relay_wal_one_by_one() { | ||
| doris::wal_fail << 1; | ||
| LOG(WARNING) << "failed to replay wal=" << wal_info->get_wal_path() | ||
| << ", st=" << st.to_string(); | ||
| { | ||
| std::lock_guard<std::mutex> lock(_replay_wal_lock); | ||
| _last_replay_wal_failed_reason = | ||
| "failed to replay wal=" + wal_info->get_wal_path() + | ||
| ", st=" + st.to_string().substr(0, 100); | ||
| } | ||
| need_retry_wals.push_back(wal_info); | ||
mymeiyi marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| } | ||
| @@ -122,6 +128,9 @@ Status WalTable::_relay_wal_one_by_one() { | ||
| for (auto retry_wal_info : need_retry_wals) { | ||
| _replay_wal_map.emplace(retry_wal_info->get_wal_path(), retry_wal_info); | ||
| } | ||
| if (_replay_wal_map.empty()) { | ||
mymeiyi marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| _last_replay_wal_failed_reason.clear(); | ||
| } | ||
| } | ||
| return Status::OK(); | ||
| } | ||
| @@ -308,6 +317,11 @@ size_t WalTable::size() { | ||
| return _replay_wal_map.size() + _replaying_queue.size(); | ||
| } | ||
| std::string WalTable::get_last_replay_wal_failed_reason() const { | ||
| std::lock_guard<std::mutex> lock(_replay_wal_lock); | ||
| return _last_replay_wal_failed_reason; | ||
| } | ||
| Status WalTable::_get_column_info(int64_t db_id, int64_t tb_id, | ||
| std::map<int64_t, std::string>& column_info_map) { | ||
| TGetColumnInfoRequest request; | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.