File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 597597 <artifactId >grpc-api</artifactId >
598598 <groupId >io.grpc</groupId >
599599 </exclusion >
600+ <exclusion >
601+ <groupId >io.opencensus</groupId >
602+ <artifactId >opencensus-impl</artifactId >
603+ </exclusion >
600604 <exclusion >
601605 <artifactId >grpc-census</artifactId >
602606 <groupId >io.grpc</groupId >
962966 </execution >
963967 </executions >
964968 </plugin >
969+ <plugin >
970+ <groupId >org.apache.maven.plugins</groupId >
971+ <artifactId >maven-enforcer-plugin</artifactId >
972+ <version >3.4.1</version >
973+ <executions >
974+ <execution >
975+ <id >enforce-banned-dependencies</id >
976+ <goals >
977+ <goal >enforce</goal >
978+ </goals >
979+ <configuration >
980+ <rules >
981+ <bannedDependencies >
982+ <excludes >
983+ <exclude >io.opencensus:opencensus-impl</exclude >
984+ </excludes >
985+ <message >
986+ Exclude Open Census implementations to disable Open Census stats and tracing.
987+ They are not used by the plugins. For tracing, Open Census spawns a new thread
988+ and loads a single global instance of a TracingComponent. CDAP uses a separate
989+ class loader for each plugin. This leads to spawning a new thread for each plugin
990+ with the Open Census dependency. As this thread keeps a reference to the class
991+ loader, it prevents the class loader from being garbage collected leading
992+ to leaks. If no implementation of TracingComponent is found at runtime,
993+ Open Census uses a NoopTraceComponent.
994+ </message >
995+ </bannedDependencies >
996+ </rules >
997+ <fail >true</fail >
998+ </configuration >
999+ </execution >
1000+ </executions >
1001+ </plugin >
9651002 </plugins >
9661003 </build >
9671004
You can’t perform that action at this time.
0 commit comments