You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2024/10/02 08:16:00 UTC
[jira] [Commented] (HDDS-10390) MiniOzoneCluster to support S3G
[ https://issues.apache.org/jira/browse/HDDS-10390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886312#comment-17886312 ]
Ivan Andika commented on HDDS-10390:
------------------------------------
h2. "NoInitialContextException" Root Cause Analysis
The issue can be identified by debugging the flow between running S3G from Intellij and integration test.
Both flows will call BeforeBeanDiscoveryImpl#fire in WeldStartup#startInitialization, but only the S3G called in integration test fails. Following the flow of the code, it will invoke Weld's ObserverNotifier#fireEvent method. This method calls resolveObserverMethods which returns the observers to invoke in response to the BeforeBeanDiscovery (using @Observes annotation). Only S3G ran from integration test will return CDIExtension as one of them which will throw the NotInitialContextException.
h2. Solution
The NoInitialContextException issue can be resolved by excluding jersey-servlet from hadoop-kms dependency in ozone-integration-test. This will cause CDIExtension to not be included as the observers for the BeforeBeanDiscovery.
> MiniOzoneCluster to support S3G
> -------------------------------
>
> Key: HDDS-10390
> URL: https://issues.apache.org/jira/browse/HDDS-10390
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Duong
> Assignee: Ivan Andika
> Priority: Major
> Labels: S3
>
> MiniOzoneCluster should support creating S3G instances and provide access to S3G via an AWS S3 client (AWS Java SDK).
> This will make it a lot easier to test and debug issues in S3G.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org