[
https://issues.apache.org/jira/browse/AMBARI-20262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892568#comment-15892568
]
Hudson commented on AMBARI-20262:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1155 (See
[https://builds.apache.org/job/Ambari-branch-2.5/1155/])
AMBARI-20262 - Startup Annotation Scanning Takes Too Long (jhurley:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2a3ab2548c3b3dfedd7a1c63f973b2e23aa9f3e1])
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/orm/InMemoryDefaultTestModule.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/cleanup/CleanupModule.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/cleanup/ClasspathScannerUtils.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/WidgetResourceProviderTest.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderHDP22Test.java
> Startup Annotation Scanning Takes Too Long
> ------------------------------------------
>
> Key: AMBARI-20262
> URL: https://issues.apache.org/jira/browse/AMBARI-20262
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.5.0
>
> Attachments: AMBARI-20262.patch
>
>
> Currently, Ambari uses Spring's
> {{ClassPathScanningCandidateComponentProvider}} along with an
> {{AnnotationTypeFilter}} to find classes annotated in our classpath:
> {code}
> ClassPathScanningCandidateComponentProvider scanner =
> new ClassPathScanningCandidateComponentProvider(false);
> // match only singletons that are eager listeners
> for (Class<? extends Annotation> cls : classes) {
> scanner.addIncludeFilter(new AnnotationTypeFilter(cls));
> }
> beanDefinitions = scanner.findCandidateComponents(AMBARI_PACKAGE);
> {code}
> This takes roughly 19 seconds on normal deployments. We can reduce this time
> to roughly 8 seconds by switching over to Google's {{ClassPath}} via our
> internal {{ClasspathScannerUtils}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)