arjunashok commented on code in PR #139:
URL: https://github.com/apache/cassandra-sidecar/pull/139#discussion_r1831855064
##########
client-common/src/main/java/org/apache/cassandra/sidecar/common/http/SidecarHttpHeaderNames.java:
##########
@@ -31,4 +31,9 @@ public final class SidecarHttpHeaderNames
* {@code "cassandra-content-xxhash32-seed"}
*/
public static final String CONTENT_XXHASH32_SEED =
"cassandra-content-xxhash32-seed";
+
+ /**
+ * {@code "cassandra-sidecar-job-uuid"}
+ */
+ public static final String ASYNC_JOB_UUID = "cassandra-sidecar-job-uuid";
Review Comment:
As discussed offline, the responses for operation APIs will have a payload.
The UUID header, however is meant to provide a consistent interface for all
long running jobs, independent of whether it has a response or not (eg.
long-running GET operations).
So, for a client triggering a operation, the expectation is to use the
header value to poll for completion (using the job status API) without having
to parse the response when the status is 202.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]