You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by dh...@apache.org on 2023/02/27 09:59:46 UTC

[arrow-ballista] branch expose_state created (now a95a0eef)

This is an automated email from the ASF dual-hosted git repository.

dheres pushed a change to branch expose_state
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git


      at a95a0eef Mark as pub

This branch includes the following new commits:

     new a95a0eef Mark as pub

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[arrow-ballista] 01/01: Mark as pub

Posted by dh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dheres pushed a commit to branch expose_state
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git

commit a95a0eef2ba27f27f3a5232d957a4a2d37a1e7cb
Author: Daniƫl Heres <da...@coralogix.com>
AuthorDate: Mon Feb 27 10:59:36 2023 +0100

    Mark as pub
---
 ballista/scheduler/src/scheduler_server/mod.rs   | 2 +-
 ballista/scheduler/src/state/executor_manager.rs | 2 +-
 ballista/scheduler/src/state/mod.rs              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ballista/scheduler/src/scheduler_server/mod.rs b/ballista/scheduler/src/scheduler_server/mod.rs
index fc40b017..d31d5031 100644
--- a/ballista/scheduler/src/scheduler_server/mod.rs
+++ b/ballista/scheduler/src/scheduler_server/mod.rs
@@ -63,7 +63,7 @@ pub(crate) type SessionBuilder = fn(SessionConfig) -> SessionState;
 pub struct SchedulerServer<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> {
     pub scheduler_name: String,
     pub start_time: u128,
-    pub(crate) state: Arc<SchedulerState<T, U>>,
+    pub state: Arc<SchedulerState<T, U>>,
     pub(crate) query_stage_event_loop: EventLoop<QueryStageSchedulerEvent>,
     query_stage_scheduler: Arc<QueryStageScheduler<T, U>>,
     executor_termination_grace_period: u64,
diff --git a/ballista/scheduler/src/state/executor_manager.rs b/ballista/scheduler/src/state/executor_manager.rs
index bec97c3b..d3a9468e 100644
--- a/ballista/scheduler/src/state/executor_manager.rs
+++ b/ballista/scheduler/src/state/executor_manager.rs
@@ -90,7 +90,7 @@ pub const DEFAULT_EXECUTOR_TIMEOUT_SECONDS: u64 = 180;
 pub const EXPIRE_DEAD_EXECUTOR_INTERVAL_SECS: u64 = 15;
 
 #[derive(Clone)]
-pub(crate) struct ExecutorManager {
+pub struct ExecutorManager {
     // executor slot policy
     slots_policy: SlotsPolicy,
     task_distribution: TaskDistribution,
diff --git a/ballista/scheduler/src/state/mod.rs b/ballista/scheduler/src/state/mod.rs
index 17b1a4fb..4105877d 100644
--- a/ballista/scheduler/src/state/mod.rs
+++ b/ballista/scheduler/src/state/mod.rs
@@ -85,7 +85,7 @@ pub fn encode_protobuf<T: Message + Default>(msg: &T) -> Result<Vec<u8>> {
 }
 
 #[derive(Clone)]
-pub(super) struct SchedulerState<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan>
+pub struct SchedulerState<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan>
 {
     pub executor_manager: ExecutorManager,
     pub task_manager: TaskManager<T, U>,