abstractdog commented on code in PR #512:
URL: https://github.com/apache/tez/pull/512#discussion_r3472463440
##########
tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java:
##########
@@ -528,6 +529,12 @@ protected void serviceInit(final Configuration conf)
throws Exception {
jobTokenSecretManager.addTokenForJob(
appAttemptID.getApplicationId().toString(), sessionToken);
+ // Create a JobTokenSecretManager initialized with the session token's
password
+ // for shuffle delete requests. The shuffle handler verifies requests
using the
+ // token password, so the MAC must be initialized with it (as tasks do).
+ shuffleJobTokenSecretManager = new JobTokenSecretManager(
Review Comment:
not sure if we need a separate secret manager, as the sessionToken is
provided for `jobTokenSecretManager` already:
https://github.com/apache/tez/blob/61cc636fdfffe871d3a52d9d739a668b0908995c/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java#L528
--
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]