symious opened a new pull request #3228:
URL: https://github.com/apache/ozone/pull/3228


   ## What changes were proposed in this pull request?
   
   When checking the JMX or Prometheus or other pages of S3g from browser, the 
following error was throw from S3g. (From docker container, might be different 
from local service)
   
   ```
   2022-03-23 15:32:57,281 [qtp124888672-18] INFO ozone.OmUtils: 
ozone.om.internal.service.id is not defined, falling back to 
ozone.om.service.ids to find serviceID for OzoneManager if it is HA enabled 
cluster
   2022-03-23 15:32:57,282 [qtp124888672-18] INFO ozone.OmUtils: No 
OzoneManager ServiceID configured.
   Mar 23, 2022 3:32:57 PM org.glassfish.jersey.internal.Errors logErrors
   WARNING: The following warnings have been detected: WARNING: Unknown HK2 
failure detected:
   MultiException stack 1 of 1
   javax.ws.rs.WebApplicationException: User doesn't have the right to access 
this resource.
   ```
   
   The reason for this issue is when trying to send request from browser, the 
browser will send another request like "http://localhost:9878/favicon.ico";, 
which would be treated as a request to bucket of "favicon.ico", as a result a 
new OzoneClient was to inject for this request.
   
   This ticket is to fix this issue.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6497
   
   ## How was this patch tested?
   
   Manually test: Error logs disappears when calling 
"http://localhost:9878/jmx";.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to