github-advanced-security[bot] commented on code in PR #19950:
URL: https://github.com/apache/druid/pull/19950#discussion_r3752274079
##########
server/src/test/java/org/apache/druid/server/coordinator/DruidCoordinatorTest.java:
##########
@@ -868,6 +888,172 @@
};
}
+ /**
+ * End-to-end check via a real {@link DruidCoordinator} and {@link
LoadQueueTaskMaster}:
+ * a single server returning HTTP 503 on {@code loadCapabilities} must not
abort the
+ * {@code HistoricalManagementDuties} group. Asserts the group completes a
run, no
+ * capabilities-related failure alert is emitted, and the healthy servers
are still managed.
+ */
+ @Test(timeout = 60_000L)
+ public void testUnhealthyHistoricalDoesNotAbortDutyGroup() throws Exception
+ {
+ EmittingLogger.registerEmitter(serviceEmitter);
+
+
EasyMock.expect(metadataRuleManager.getRulesWithDefault(EasyMock.anyString()))
+ .andReturn(ImmutableList.of(new
ForeverLoadRule(ImmutableMap.of("tier1", 1), null)))
+ .anyTimes();
+ EasyMock.replay(metadataRuleManager);
+
+ final DruidDataSource dataSource = new DruidDataSource("ds",
Collections.emptyMap());
+ dataSource.addSegment(new DataSegment("ds",
Intervals.of("2010-01-01/P1D"), "v1", null, null, null, null, 0x9, 0));
Review Comment:
## CodeQL / Deprecated method or constructor invocation
Invoking [DataSegment.DataSegment](1) should be avoided because it has been
deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/11763)
--
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]