You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by gi...@apache.org on 2026/10/22 02:05:56 UTC
(texera) branch gh-readonly-queue/main/pr-8772-2e67fbc7d94e479a5371416783a6d3757c26fa07 created (now 41246ab576)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a change to branch gh-readonly-queue/main/pr-8772-2e67fbc7d94e479a5371416783a6d3757c26fa07
in repository https://gitbox.apache.org/repos/asf/texera.git
at 41246ab576 feat(computing-unit-managing-service): say how to free a slot when the CU quota is reached (#8772)
This branch includes the following new commits:
new 41246ab576 feat(computing-unit-managing-service): say how to free a slot when the CU quota is reached (#8772)
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(texera) 01/01: feat(computing-unit-managing-service): say how to free a slot when the CU quota is reached (#8772)
Posted by gi...@apache.org.
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-8772-2e67fbc7d94e479a5371416783a6d3757c26fa07
in repository https://gitbox.apache.org/repos/asf/texera.git
commit 41246ab5760c23baa394636b07645398bfb83b51
Author: Suryaa Charan <12...@users.noreply.github.com>
AuthorDate: Thu Oct 22 01:19:15 2026 +0000
feat(computing-unit-managing-service): say how to free a slot when the CU quota is reached (#8772)
### What changes were proposed in this PR?
When a user hits the computing unit limit, the error only said "You may
only have N computing-unit(s) running at the same time". It now adds
what to do: "Reuse a running computing unit, terminate a cloud unit, or
disconnect a local unit you no longer need." Local units count toward
the limit too, and the UI removes them with "Disconnect", which calls
the same terminate endpoint and frees the slot.
### Any related issues, documentation, discussions?
Part of #8736. Split out of #8737.
### How was this PR tested?
Updated `ComputingUnitManagingServiceExceptionSpec`.
```
sbt "ComputingUnitManagingService/testOnly org.apache.texera.service.util.ComputingUnitManagingServiceExceptionSpec" "ComputingUnitManagingService/scalafmtCheck" "ComputingUnitManagingService/Test/scalafmtCheck"
```
There's no screenshot because this error only appears on a Kubernetes
deployment, and I tested on a local install.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
---------
Co-authored-by: suryaacharan <su...@suryaacharans-MacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <no...@anthropic.com>
---
.../texera/service/util/ComputingUnitManagingServiceException.scala | 3 ++-
.../service/util/ComputingUnitManagingServiceExceptionSpec.scala | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/computing-unit-managing-service/src/main/scala/org/apache/texera/service/util/ComputingUnitManagingServiceException.scala b/computing-unit-managing-service/src/main/scala/org/apache/texera/service/util/ComputingUnitManagingServiceException.scala
index 22660113e9..2bcf60ed1c 100644
--- a/computing-unit-managing-service/src/main/scala/org/apache/texera/service/util/ComputingUnitManagingServiceException.scala
+++ b/computing-unit-managing-service/src/main/scala/org/apache/texera/service/util/ComputingUnitManagingServiceException.scala
@@ -37,7 +37,8 @@ final case class InsufficientComputingResource(resourceType: String)
// User has reached the per-user CU-quota (number of running units)
final case class InsufficientComputingUnitQuota(maxNumberOfComputingUnit: Int)
extends ComputingUnitManagingServiceException(
- s"You may only have $maxNumberOfComputingUnit computing-unit(s) running at the same time"
+ s"You may only have $maxNumberOfComputingUnit computing unit(s) running at the same time. " +
+ "Reuse a running computing unit, terminate a Kubernetes unit, or disconnect a local unit you no longer need."
)
// default exception fallback
diff --git a/computing-unit-managing-service/src/test/scala/org/apache/texera/service/util/ComputingUnitManagingServiceExceptionSpec.scala b/computing-unit-managing-service/src/test/scala/org/apache/texera/service/util/ComputingUnitManagingServiceExceptionSpec.scala
index 2e95eeece4..9a0c619b34 100644
--- a/computing-unit-managing-service/src/test/scala/org/apache/texera/service/util/ComputingUnitManagingServiceExceptionSpec.scala
+++ b/computing-unit-managing-service/src/test/scala/org/apache/texera/service/util/ComputingUnitManagingServiceExceptionSpec.scala
@@ -33,9 +33,10 @@ class ComputingUnitManagingServiceExceptionSpec extends AnyFlatSpec with Matcher
"Insufficient CPU available in the server. Please decrease the requested amount or try again later."
}
- "InsufficientComputingUnitQuota" should "render the quota message" in {
+ "InsufficientComputingUnitQuota" should "render the quota message and how to free a slot" in {
InsufficientComputingUnitQuota(3).getMessage shouldBe
- "You may only have 3 computing-unit(s) running at the same time"
+ "You may only have 3 computing unit(s) running at the same time. " +
+ "Reuse a running computing unit, terminate a Kubernetes unit, or disconnect a local unit you no longer need."
}
"InternalError" should "default to a generic message" in {