nvharikrishna opened a new pull request, #309: URL: https://github.com/apache/cassandra-sidecar/pull/309
CASSSIDECAR-226 Adding an endpoint for verifying files between source and destination post data copy. Here are the endpoint details: **Sample files verification task submission request:** ```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" }' ``` It supports XXHash32 algorithm too and `seed` as additional input in the payload. **Sample response:** ```bash { "taskId": "b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g", "statusUrl": "/api/v1/live-migration/files-verification-tasks/b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g" } ``` **Fetching files verification task status** ```bash curl -X GET http://dest-host.example.com:9043/api/v1/live-migration/files-verification-tasks/b8e4f3d2-5c6b-5d9e-0f2g-3b4c5d6e7f8g ``` **Sample response:** ```bash { "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 } ``` Also made additional changes to ensure that either data copy task or file verification task can be executed at any point of time. -- 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]

