From 5219053a18f4c7aae11f9235b3a82c8f5b15c24c Mon Sep 17 00:00:00 2001 From: Xinyuan Lin Date: Thu, 3 Sep 2026 21:58:32 -0700 Subject: [PATCH] chore(amber): remove the never-registered MockKillWorkerResource --- .../texera/web/TexeraWebApplication.scala | 1 - .../web/resource/MockKillWorkerResource.scala | 39 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 amber/src/main/scala/org/apache/texera/web/resource/MockKillWorkerResource.scala 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 34531e8c6b4..96a1f8bf72f 100644 --- a/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala +++ b/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala @@ -125,7 +125,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 fda4a232965..00000000000 --- 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 -// }) -// } -// -//}