This is an automated email from the ASF dual-hosted git repository.
kharekartik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 834e85475a Fixes deleteSegmentsFromSequenceNum API (#15430)
834e85475a is described below
commit 834e85475abe527c85e12f439eec1e4a4eafdc01
Author: NOOB <[email protected]>
AuthorDate: Wed Apr 2 07:03:55 2025 +0530
Fixes deleteSegmentsFromSequenceNum API (#15430)
---
.../pinot/controller/api/resources/PinotSegmentRestletResource.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
index aff32d0ec4..4c3e1f23d1 100644
---
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
+++
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
@@ -1181,8 +1181,8 @@ public class PinotSegmentRestletResource {
@DELETE
@Produces(MediaType.APPLICATION_JSON)
- @Path("/deletePauselessSegments/{tableName}")
- @Authorize(targetType = TargetType.TABLE, paramName = "tableName", action =
Actions.Table.DELETE_SEGMENT)
+ @Path("/deleteSegmentsFromSequenceNum/{tableNameWithType}")
+ @Authorize(targetType = TargetType.TABLE, paramName = "tableNameWithType",
action = Actions.Table.DELETE_SEGMENT)
@Authenticate(AccessType.DELETE)
@ApiOperation(value = "Delete segments from a pauseless enabled table",
notes =
"Deletes segments from a pauseless-enabled table based on the provided
segment names. "
@@ -1192,7 +1192,7 @@ public class PinotSegmentRestletResource {
+ "The retention period controls how long deleted segments are
retained before permanent removal. "
+ "It follows this precedence: input parameter → table config →
cluster setting → 7d default. "
+ "Use 0d or -1d for immediate deletion without retention.")
- public SuccessResponse deletePauselessSegments(
+ public SuccessResponse deleteSegmentsFromSequenceNum(
@ApiParam(value = "Name of the table with type", required = true)
@PathParam("tableNameWithType")
String tableNameWithType,
@ApiParam(value = "List of segment names. For each segment, all segments
with higher sequence IDs in the same "
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]