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



##########
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:
       Agree. Should be consistent with other parts. And the performance may 
also be better.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to