Skip to content

Commit 057135b

Browse files
author
Andrew Or
committed
Reword comment
1 parent adf186d commit 057135b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ class ExecutorRunnable(
9898
val secretString = securityMgr.getSecretKey()
9999
val secretBytes =
100100
if (secretString != null) {
101-
// This uses a JavaUtils method because the reverse conversion takes
102-
// place in the Yarn shuffle service, which is implemented in Java
101+
// This conversion must match how the YarnShuffleService decodes our secret
103102
JavaUtils.stringToBytes(secretString)
104103
} else {
105104
// Authentication is not enabled, so just provide dummy metadata

yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ class ExecutorRunnable(
9797
val secretString = securityMgr.getSecretKey()
9898
val secretBytes =
9999
if (secretString != null) {
100-
// This uses a JavaUtils method because the reverse conversion takes
101-
// place in the Yarn shuffle service, which is implemented in Java
100+
// This conversion must match how the YarnShuffleService decodes our secret
102101
JavaUtils.stringToBytes(secretString)
103102
} else {
104103
// Authentication is not enabled, so just provide dummy metadata

0 commit comments

Comments
 (0)