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: [email protected]
For additional commands, e-mail: [email protected]