github-code-scanning[bot] commented on code in PR #14616:
URL: https://github.com/apache/druid/pull/14616#discussion_r1270881046
##########
server/src/main/java/org/apache/druid/server/coordination/SegmentLoadDropHandler.java:
##########
@@ -522,27 +562,56 @@
}
}
+ /**
+ * Drops the given segment synchronously.
+ */
+ private void dropSegment(DataSegment segment)
+ {
+ try {
+ synchronized (segmentDropLock) {
+ if (segmentsToDrop.remove(segment)) {
+ segmentManager.dropSegment(segment);
+
+ File segmentInfoCacheFile = new File(config.getInfoDir(),
segment.getId().toString());
Review Comment:
## Uncontrolled data used in path expression
This path depends on a [user-provided value](1).
[Show more
details](https://github.com/apache/druid/security/code-scanning/5289)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]