[GitHub] [hadoop-ozone] bharatviswa504 commented on pull request #1110: HDDS-3843. Throw the specific exception other than NPE.
bharatviswa504 commented on pull request #1110: URL: https://github.com/apache/hadoop-ozone/pull/1110#issuecomment-707979758 I see with injection, we see error in logs but we don't see proper error code at the S3 client. ![Screen Shot 2020-10-13 at 1 08 09 PM](https://user-images.githubusercontent.com/8586345/95910607-2ccdd400-0d55-11eb-9075-92a097f625fb.png) Not secure cluster, but tried with empty accesssKeyID and secret, still it is popping up with Bucket Not found. (Need to explore a bit how can we propagate this error) ``` s3g_1 | 2020-10-13 19:56:56,215 [qtp1296456465-16] ERROR s3.OzoneClientProducer: Error: s3g_1 | org.jboss.weld.exceptions.WeldException: WELD-49: Unable to invoke public void org.apache.hadoop.ozone.s3.AWSSignatureProcessor.init() throws java.lang.Exception on org.apache.hadoop.ozone.s3.AWSSignatureProcessor@32f12a54 s3g_1 |at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:99) s3g_1 |at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:80) s3g_1 |at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122) s3g_1 |at org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider$InjectionManagerInjectedCdiTarget.postConstruct(CdiComponentProvider.java:887) s3g_1 |at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162) s3g_1 |at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) s3g_1 |at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100) s3g_1 |at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.get(ContextualInstanceStrategy.java:177) s3g_1 |at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) s3g_1 |at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99) s3g_1 |at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125) s3g_1 |at org.apache.hadoop.ozone.s3.AWSSignatureProcessor$Proxy$_$$_WeldClientProxy.getAwsAccessId(Unknown Source) s3g_1 |at org.apache.hadoop.ozone.s3.OzoneClientProducer.getClient(OzoneClientProducer.java:79) s3g_1 |at org.apache.hadoop.ozone.s3.OzoneClientProducer.createClient(OzoneClientProducer.java:68) s3g_1 |at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) s3g_1 |at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) s3g_1 |at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) s3g_1 |at java.base/java.lang.reflect.Method.invoke(Method.java:566) s3g_1 |at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88) s3g_1 |at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78) s3g_1 |at org.jboss.weld.injection.producer.ProducerMethodProducer.produce(ProducerMethodProducer.java:100) s3g_1 |at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:161) s3g_1 |at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:180) s3g_1 |at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:70) s3g_1 |at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100) s3g_1 |at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) s3g_1 |at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:785) s3g_1 |at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:885) s3g_1 |at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92) s3g_1 |at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:358) s3g_1 |at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:369) s3g_1 |at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:70) s3g_1 |at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) s3g_1 |at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:72) s3g_1 |at org.jboss.w
[GitHub] [hadoop-ozone] bharatviswa504 commented on pull request #1110: HDDS-3843. Throw the specific exception other than NPE.
bharatviswa504 commented on pull request #1110: URL: https://github.com/apache/hadoop-ozone/pull/1110#issuecomment-707967571 @maobaolong Once we are in similar behavior with AWS S3 we can get this in. I agree that NPE does not look right here. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org
[GitHub] [hadoop-ozone] bharatviswa504 commented on pull request #1110: HDDS-3843. Throw the specific exception other than NPE.
bharatviswa504 commented on pull request #1110: URL: https://github.com/apache/hadoop-ozone/pull/1110#issuecomment-648405855 Thank You @maobaolong for the fix and @dineshchitlangia for tagging me. @maobaolong >Start a goofy without Authorization related setting. Can you elaborate this step what do you mean/how to set it up? I checked with the postman(curl tool), by empty access key/secret, the error I see from AWS S3 is as below. In the above step if you mean missing security access key/secret missing, then below is the error. (I have used postman, which generates auth header but missing access key ![Screen Shot 2020-06-23 at 1 40 37 PM](https://user-images.githubusercontent.com/8586345/85459546-21ad2900-b557-11ea-8c27-92a3115f2232.png) /secret) ``` AuthorizationHeaderMalformed The authorization header is malformed; a non-empty Access Key (AKID) must be provided in the credential. 64890549427133A8 rcJrOJhmw5P7JuDjs1wE/3GR7XlV7U54lSjtdxn7xBxdCX3wKyZ79ZIIJ30oF2R+CZ5PzOt90Rw= ``` If complete auth header missing, this is the error from AWS S3 ``` $ curl -X GET "https://b1-1990.s3.amazonaws.com/dir1/file1"; AccessDeniedAccess Denied484B292350637469WKd5J5ytp/GOcindJU+60LNXtbxupzTFj2hjlEQzhTiwZBS3wN86BxvjT5ZBn9uh1eFqGHNMzNo=$ ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org