Open asfimport opened 2 years ago
Antoine Pitrou / @pitrou: cc @westonpace
Antoine Pitrou / @pitrou: Actually also occurred on CI here: https://github.com/ursacomputing/crossbow/runs/7405683806?check_suite_focus=true#step:5:5665
Antoine Pitrou / @pitrou:
It seems this always occurs in the context of ExecPlanImpl
destruction because of the EndTaskGroup
mess.
Antoine Pitrou / @pitrou: I tried this simple patch but this triggered spurious warning messages:
~ExecPlanImpl() override {
- if (started_ && !finished_.is_finished()) {
- ARROW_LOG(WARNING) << "Plan was destroyed before finishing";
- StopProducing();
- finished().Wait();
+ if (started_) {
+ if (!stopped_) {
+ ARROW_LOG(WARNING) << "Plan was destroyed before finishing";
+ StopProducing();
+ }
+ finished_.Wait();
}
}
This sporadic Thread Sanitizer error just occurred to me:
I think the fix is simply to signal the condition variable with the mutex locked (which might be a bit worse performance-wise).
Reporter: Antoine Pitrou / @pitrou
Note: This issue was originally created as ARROW-17124. Please see the migration documentation for further details.