hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharat Viswanadham (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-585) Handle common request identifiers in a transparent way
Date Tue, 09 Oct 2018 19:49:00 GMT

    [ https://issues.apache.org/jira/browse/HDDS-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16644008#comment-16644008
] 

Bharat Viswanadham commented on HDDS-585:
-----------------------------------------

I have committed this to the trunk and ozone-0.3 branch.

> 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
>            Priority: Major
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: HDDS-585.001.patch, HDDS-585.003.patch, HDDS-585.004.patch
>
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message