[
https://issues.apache.org/jira/browse/CASSSIDECAR-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
n.v.harikrishna updated CASSSIDECAR-226:
----------------------------------------
Authors: n.v.harikrishna
Test and Documentation Plan: Added unit tests and tested changes in local
Status: Patch Available (was: Open)
|PR|[309|https://github.com/apache/cassandra-sidecar/pull/309]|
|CI|[Circle
CI|https://app.circleci.com/pipelines/github/nvharikrishna/cassandra-sidecar?branch=226-lm-file-digests-trunk]|
Here are the newly added endpoints:
Sample files verification task submission request:
{code:bash}
curl -X POST
http://dest-host.example.com:9043/api/v1/live-migration/files-verification-tasks
\
-H "Content-Type: application/json" \
-d '{
"maxConcurrency": 10,
"digestAlgorithm": "MD5"
}'
{code}
It supports XXHash32 algorithm too and seed as additional input in the payload.
Sample response:
{code:json}
{
"taskId": "b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g",
"statusUrl":
"/api/v1/live-migration/files-verification-tasks/b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g"
}
{code}
Fetching files verification task status
{code:bash}
curl -X GET
http://dest-host.example.com:9043/api/v1/live-migration/files-verification-tasks/b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g
{code}
Sample response:
{code:json}
{
"id": "b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g ",
"digestAlgorithm": "md5",
"seed": null,
"state": "COMPLETED",
"source": "localhost1",
"port": 9043,
"filesNotFoundAtSource": 0,
"filesNotFoundAtDestination": 0,
"metadataMatched": 379,
"metadataMismatches": 0,
"digestMismatches": 0,
"digestVerificationFailures": 0,
"filesMatched": 323
}
{code}
Also made additional changes to ensure that either data copy task or file
verification task can be executed at any point of time.
> Create API for calculating digests of given files
> -------------------------------------------------
>
> Key: CASSSIDECAR-226
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-226
> Project: Sidecar for Apache Cassandra
> Issue Type: Task
> Components: Rest API
> Reporter: n.v.harikrishna
> Assignee: n.v.harikrishna
> Priority: Normal
> Fix For: 0.3
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Create an API in Sidecar so that it can return the digest for a file which
> can be downloaded through live migration.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]