[
https://issues.apache.org/jira/browse/HDDS-7133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580906#comment-17580906
]
Ayush Saxena commented on HDDS-7133:
------------------------------------
I tried this workaround:
{code:java}
void registerUpgradeActions(String[] packageNames) {
Reflections reflections = new Reflections(packageNames);
Set<Class<?>> typesAnnotatedWith;
// Workaround due to bug in Reflection 0.9.12
if
(!reflections.getStore().keySet().contains(TypeAnnotationsScanner.class.getSimpleName()))
{
typesAnnotatedWith = Collections.emptySet();
} else {
typesAnnotatedWith =
reflections.getTypesAnnotatedWith(UpgradeActionHdds.class);
}
{code}
It gets the TestHDDSLayoutVersionManager happy.
[~erose] In case you have any pointers over here or we can explore
https://github.com/aschoerk/reflections8
> Upgrade reflections to 0.9.12 to avoid guava conflicts
> ------------------------------------------------------
>
> Key: HDDS-7133
> URL: https://issues.apache.org/jira/browse/HDDS-7133
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
>
> Upgrade Reflections to 0.9.12 from 0.9.11,
> We were on 0.9.12 in release 1.0.0 & we got downgraded to 0.9.11
> 0.9.12 solves the below problem:
> https://github.com/ronmamo/reflections/issues/194#issuecomment-573390884
> Rel: 1.0.0 with 0.9.12
> https://github.com/apache/ozone/blob/ozone-1.0.0/hadoop-ozone/ozone-manager/pom.xml#L108-L113
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]