Skip to content

Conversation

@kangkaisen
Copy link
Contributor

Fix #690

Add a config streaming_load_max_duration_time_sec , a thread _tablets_channel_clean_thread and a std::unordered_map<TabletsChannelKey, time_t,TabletsChannelKeyHasher> _key_time_map

If a tablets_channel alive time exceed the streaming_load_max_duration_time_sec, we will erase the tablets_channel.

This PR is testing because the test need a long time.

return Status::OK;
}

void* TabletWriterMgr::_tablets_channel_clean_thread_callback(void* arg) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove this function and put this logical to lambda in start_bg_worker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Co-Authored-By: kangkaisen <kangkaisen@apache.org>
@imay imay merged commit d67aeb8 into apache:master Mar 11, 2019
morningman pushed a commit to baidu-doris/incubator-doris that referenced this pull request Apr 24, 2019
platoneko pushed a commit to platoneko/doris that referenced this pull request Oct 27, 2022
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.

2 participants