From 10b13f54b624f6a75bc672f39f5e9a26fb8e19ee Mon Sep 17 00:00:00 2001 From: fwang12 Date: Fri, 24 Nov 2023 15:49:25 +0800 Subject: [PATCH] [KYUUBI #5711][FOLLOWUP] Fix typo for container states audit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description Fix typo for container states audit. ## Issue References ๐Ÿ”— This pull request fixes # ## Describe Your Solution ๐Ÿ”ง Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช #### Behavior Without This Pull Request :coffin: #### Behavior With This Pull Request :tada: #### Related Unit Tests --- # Checklists ## ๐Ÿ“ Author Self Checklist - [ ] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project - [ ] I have performed a self-review - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) ## ๐Ÿ“ Committer Pre-Merge Checklist - [ ] Pull request title is okay. - [ ] No license issues. - [ ] Milestone correctly set? - [ ] Test coverage is ok - [ ] Assignees are selected. - [ ] Minimum number of approvals - [ ] No changes are requested **Be nice. Be informative.** Closes #5770 from turboFei/fix_typo_copilot. Closes #5711 be5181a76 [fwang12] fix typo Authored-by: fwang12 Signed-off-by: fwang12 (cherry picked from commit 3ca4b8aecc7449fd4a894143ece1a47d2d293b1d) Signed-off-by: fwang12 --- .../apache/kyuubi/engine/KubernetesApplicationAuditLogger.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationAuditLogger.scala b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationAuditLogger.scala index 14c27bfb6fb..565c8a694e5 100644 --- a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationAuditLogger.scala +++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/KubernetesApplicationAuditLogger.scala @@ -44,7 +44,7 @@ object KubernetesApplicationAuditLogger extends Logging { sb.append(s"podState=${pod.getStatus.getPhase}").append("\t") val containerStatuses = pod.getStatus.getContainerStatuses.asScala.map { containerState => s"${containerState.getName}->${containerState.getState}" - }.mkString("[", ",", "]").foreach(sb.append(_).append("\t")) + }.mkString("[", ",", "]") sb.append(s"containers=$containerStatuses").append("\t") sb.append(s"appId=${pod.getMetadata.getLabels.get(SPARK_APP_ID_LABEL)}").append("\t") val (appState, appError) =