Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-434 Provide an s3 compatible REST api for ozone objects
  3. HDDS-585

Handle common request identifiers in a transparent way

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0, 0.4.0
    • None
    • None

    Description

      As of now multiple endpoint contains the code to handle the amazon specific request id-s.

          setRequestId(OzoneUtils.getRequestID());
      ...
          return Response.ok().status(HttpStatus.SC_NO_CONTENT).header(
              "x-amz-request-id", getRequestId()).header("x-amz-id-2",
              RandomStringUtils.randomAlphanumeric(8, 16)).build();
      

      I propose to handle the request id generation + adding it to the headers in one location which is transparent for all the rest endpoints.

      Attachments

        1. HDDS-585.001.patch
          14 kB
          Marton Elek
        2. HDDS-585.003.patch
          15 kB
          Marton Elek
        3. HDDS-585.004.patch
          15 kB
          Marton Elek

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: