You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Elek, Marton (JIRA)" <ji...@apache.org> on 2018/10/08 14:57:00 UTC

[jira] [Created] (HDDS-585) Handle common request identifiers in a transparent way

Elek, Marton created HDDS-585:
---------------------------------

             Summary: Handle common request identifiers in a transparent way
                 Key: HDDS-585
                 URL: https://issues.apache.org/jira/browse/HDDS-585
             Project: Hadoop Distributed Data Store
          Issue Type: Sub-task
            Reporter: Elek, Marton
            Assignee: Elek, Marton


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

{code}
    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();
{code}

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





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org