morningman commented on a change in pull request #776: Add a cleaner bg thread
to clean idle data consumer
URL: https://github.com/apache/incubator-doris/pull/776#discussion_r266906031
##########
File path: be/src/runtime/routine_load/data_consumer.h
##########
@@ -35,7 +36,8 @@ class DataConsumer {
DataConsumer(StreamLoadContext* ctx):
_init(false),
_finished(false),
- _cancelled(false) {
+ _cancelled(false),
+ _last_visit_time(0) {
Review comment:
No. the last_visit_time will be set when calling consumer's start(). And the
clean thread can not see any active consumer, because active consumers are not
in the pool.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]