https://github.com/apache/spark
Revision 7a607b712720e9839bbb4220abc9792304a0090f authored by Dongjoon Hyun on 13 March 2022, 03:33:23 UTC, committed by Yuming Wang on 13 March 2022, 03:34:22 UTC
### What changes were proposed in this pull request?

This PR aims to fix the driver environment verification logic in `BasicDriverFeatureStepSuite`.

### Why are the changes needed?

When SPARK-25876 added a test logic at Apache Spark 3.0.0, it used `envs(v) === v` instead of `envs(k) === v`.
https://github.com/apache/spark/blob/c032928515e74367137c668ce692d8fd53696485/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/features/BasicDriverFeatureStepSuite.scala#L94-L96

This bug was hidden because the test key-value pairs have identical set. If we have different strings for keys and values, the test case fails.

https://github.com/apache/spark/blob/c032928515e74367137c668ce692d8fd53696485/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/features/BasicDriverFeatureStepSuite.scala#L42-L44

### Does this PR introduce _any_ user-facing change?

To have a correct test coverage.

### How was this patch tested?

Pass the CIs.

Closes #35828 from dongjoon-hyun/SPARK-38538.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Yuming Wang <yumwang@ebay.com>
(cherry picked from commit 6becf4e93e68e36fbcdc82768de497d86072abeb)
Signed-off-by: Yuming Wang <yumwang@ebay.com>
1 parent 968dd47
History
Tip revision: 7a607b712720e9839bbb4220abc9792304a0090f authored by Dongjoon Hyun on 13 March 2022, 03:33:23 UTC
[SPARK-38538][K8S][TESTS] Fix driver environment verification in BasicDriverFeatureStepSuite
Tip revision: 7a607b7

README.md

back to top