This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-8396-7b1033b85799ddd3a65485bb895f4bf08429d999 in repository https://gitbox.apache.org/repos/asf/texera.git
commit 733ce6e046d4ead1aa90e2d2d6e47d449ab91993 Author: Xinyuan Lin <[email protected]> AuthorDate: Mon Nov 9 18:21:59 2026 +0000 chore(amber): remove the commented-out MockKillWorkerResource (#8396) ### What changes were proposed in this PR? Deletes `MockKillWorkerResource.scala`, a file whose every non-blank line after the ASF header is a comment — the commented-out remains of a JAX-RS `/kill/worker` endpoint — together with the commented-out Jersey registration line in `TexeraWebApplication` that pointed at it. Pure deletion, no behaviour change: **−40 lines**, none of them compiled. ### History | | | | --- | --- | | **Introduced by** | the initial amber import, commit `41a8a92017` (2020-08-20) — predates the PR workflow — which also registered it live with Jersey | | **Disabled by** | #1000 (`4a64935c35`, 2021-01-30) — "Migrate all control handling logics to AsyncRPC and cleanup Amber" commented out the registration line and the whole file body in the same diff. Nothing has compiled from the file since | Registered live for about five months, 2020-08-20 → 2021-01-30, then commented out for the five and a half years since. The commented registration line goes with the file. ### Any related issues, documentation, discussions? Closes #8393 ### How was this PR tested? Existing tests only — no spec referenced it. Locally, from the repo root with Java 17: - `sbt "WorkflowExecutionService/Test/compile"` — success. - `sbt scalafmtCheckAll "scalafixAll --check"` — clean. Verification, re-runnable by a reviewer: ``` git grep -n MockKillWorkerResource # nothing left on this branch; on main, two hits: the file and the commented registration line git grep -n "jersey.register" -- amber/src/main # the live registrations, untouched ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5, Claude Fable 5.1) --- .../apache/texera/web/TexeraWebApplication.scala | 1 - .../web/resource/MockKillWorkerResource.scala | 39 ---------------------- 2 files changed, 40 deletions(-) diff --git a/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala b/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala index 07e07856e9..1a0734cf3e 100644 --- a/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala +++ b/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala @@ -131,7 +131,6 @@ class TexeraWebApplication environment.servlets.setSessionHandler(new SessionHandler) environment.jersey.register(classOf[SystemMetadataResource]) - // environment.jersey().register(classOf[MockKillWorkerResource]) environment.jersey.register(classOf[HealthCheckResource]) diff --git a/amber/src/main/scala/org/apache/texera/web/resource/MockKillWorkerResource.scala b/amber/src/main/scala/org/apache/texera/web/resource/MockKillWorkerResource.scala deleted file mode 100644 index fda4a23296..0000000000 --- a/amber/src/main/scala/org/apache/texera/web/resource/MockKillWorkerResource.scala +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -//package org.apache.texera.web.resource -// -//import .KillAndRecover -//import javax.ws.rs.core.MediaType -//import javax.ws.rs.{POST, Path, Produces} -// -//@Path("/kill") -//@Produces(Array(MediaType.APPLICATION_JSON)) -//class MockKillWorkerResource() { -// -// @POST -// @Path("/worker") def mockKillWorker: Unit = { -// WorkflowWebsocketResource.sessionJobs.foreach(p => { -// val coordinator = p._2._2 -// Thread.sleep(1500) -// coordinator ! KillAndRecover -// }) -// } -// -//}
