YARN-11642. Fix Flaky Test TestTimelineAuthFilterForV2#testPutTimelineEntities. (#6417) Contributed by Shilun Fan.

Reviewed-by: Ayush Saxena <ayushsaxena@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
slfan1989 2024-01-06 16:26:01 +08:00 committed by GitHub
parent 08713665c0
commit 60033fd581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,8 @@ public void initialize() throws Exception {
} }
UserGroupInformation.setConfiguration(conf); UserGroupInformation.setConfiguration(conf);
collectorManager = new DummyNodeTimelineCollectorManager(); collectorManager = new DummyNodeTimelineCollectorManager();
auxService = PerNodeTimelineCollectorsAuxService.launchServer( PerNodeTimelineCollectorsAuxService as = new PerNodeTimelineCollectorsAuxService();
auxService = as.launchServer(
new String[0], collectorManager, conf); new String[0], collectorManager, conf);
if (withKerberosLogin) { if (withKerberosLogin) {
SecurityUtil.login(conf, YarnConfiguration.TIMELINE_SERVICE_KEYTAB, SecurityUtil.login(conf, YarnConfiguration.TIMELINE_SERVICE_KEYTAB,