Skip to content

Commit 3622fa8

Browse files
committed
Address comments
1 parent fb1d62a commit 3622fa8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsPollingSnapshotSource.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import org.apache.spark.util.{ThreadUtils, Utils}
3434
* :: DeveloperApi ::
3535
*
3636
* A class used for polling K8s executor pods by ExternalClusterManagers.
37-
* @since 2.4.0
37+
* @since 3.1.3
3838
*/
3939
@Stable
4040
@DeveloperApi
@@ -48,15 +48,15 @@ class ExecutorPodsPollingSnapshotSource(
4848

4949
private var pollingFuture: Future[_] = _
5050

51-
@Since("2.4.0")
51+
@Since("3.1.3")
5252
def start(applicationId: String): Unit = {
5353
require(pollingFuture == null, "Cannot start polling more than once.")
5454
logDebug(s"Starting to check for executor pod state every $pollingInterval ms.")
5555
pollingFuture = pollingExecutor.scheduleWithFixedDelay(
5656
new PollRunnable(applicationId), pollingInterval, pollingInterval, TimeUnit.MILLISECONDS)
5757
}
5858

59-
@Since("2.4.0")
59+
@Since("3.1.3")
6060
def stop(): Unit = {
6161
if (pollingFuture != null) {
6262
pollingFuture.cancel(true)

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsWatchSnapshotSource.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import org.apache.spark.util.Utils
3232
*
3333
* A class used for watching K8s executor pods by ExternalClusterManagers.
3434
*
35-
* @since 2.4.0
35+
* @since 3.1.3
3636
*/
3737
@Stable
3838
@DeveloperApi
@@ -42,7 +42,7 @@ class ExecutorPodsWatchSnapshotSource(
4242

4343
private var watchConnection: Closeable = _
4444

45-
@Since("2.4.0")
45+
@Since("3.1.3")
4646
def start(applicationId: String): Unit = {
4747
require(watchConnection == null, "Cannot start the watcher twice.")
4848
logDebug(s"Starting watch for pods with labels $SPARK_APP_ID_LABEL=$applicationId," +
@@ -53,7 +53,7 @@ class ExecutorPodsWatchSnapshotSource(
5353
.watch(new ExecutorPodsWatcher())
5454
}
5555

56-
@Since("2.4.0")
56+
@Since("3.1.3")
5757
def stop(): Unit = {
5858
if (watchConnection != null) {
5959
Utils.tryLogNonFatalError {

0 commit comments

Comments
 (0)