Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9444

S3SecretManager fails to revoke secret due to inconsistency between S3Cache and S3SecretTable.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • S3

    Description

      During a recent CI run, the TestSecureOzoneCluster test, specifically testGetSetRevokeS3Secret, failed. The issue encountered was that the S3 secret was not being revoked as expected. Upon examining the logs, it was determined that the discrepancy arose due to a mismatch between the value in the cache and the corresponding value in the database.

      *CI Run :- https://github.com/ArafatKhan2198/ozone/actions/runs/6468031778/job/17559261272*#step:5:3776

      Error Output :- 

      Error:  Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 120.823 s <<< FAILURE! - in org.apache.hadoop.ozone.TestSecureOzoneCluster
      Error:  org.apache.hadoop.ozone.TestSecureOzoneCluster.testGetSetRevokeS3Secret  Time elapsed: 10.03 s  <<< ERROR!
      S3_SECRET_ALREADY_EXISTS org.apache.hadoop.ozone.om.exceptions.OMException: Secret for 'om/fv-az484-290.bfj14xst0uxejdsadjltsbuuog.phxx.internal.cloudapp.net@EXAMPLE.COM' already exists
      	at org.apache.hadoop.ozone.om.protocolPB.OzoneManagerProtocolClientSideTranslatorPB.handleError(OzoneManagerProtocolClientSideTranslatorPB.java:729)
      	at org.apache.hadoop.ozone.om.protocolPB.OzoneManagerProtocolClientSideTranslatorPB.getS3Secret(OzoneManagerProtocolClientSideTranslatorPB.java:1017)
      	at org.apache.hadoop.ozone.TestSecureOzoneCluster.testGetSetRevokeS3Secret(TestSecureOzoneCluster.java:740)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
      	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
      	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
      	at org.junit.jupiter.engine.extension.TimeoutInvocation.proceed(TimeoutInvocation.java:46)
      	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
      	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) 

       
       

      Attachments

        Issue Links

          Activity

            People

              arafat2198 Arafat Khan
              arafat2198 Arafat Khan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: