mingmwang commented on a change in pull request #1810:
URL: https://github.com/apache/arrow-datafusion/pull/1810#discussion_r804514701



##########
File path: ballista/rust/scheduler/src/state/mod.rs
##########
@@ -82,237 +85,639 @@ pub enum WatchEvent {
     Delete(String),
 }
 
+type JobTasks = HashMap<u32, HashMap<u32, TaskStatus>>;
+
 #[derive(Clone)]
-pub(super) struct SchedulerState {
+struct VolatileSchedulerState {
+    executors_heartbeat: Arc<std::sync::RwLock<HashMap<String, 
ExecutorHeartbeat>>>,

Review comment:
       Should we use RwLock from parking_lot ?




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to