AbortImport()

Abort a 2PC import job created with options.auto_commit=false, discarding its staged imported data.

Request Syntax

static nlohmann::json AbortImport(const std::string& url, const std::string& job_id, const std::string& db_name = "default", const std::string& api_key = "")

RETURNS:

nlohmann::json

Returns the JSON response from the bulk-import endpoint.

ERROR HANDLING:

The call does not throw: when the HTTP request fails or the response cannot be parsed, it returns a null result. Check the return value for nullptr to detect failures.

Example

Demonstrates AbortImport() with the C++ SDK.

#include "milvus/BulkImport.h"
auto response = milvus::BulkImport::AbortImport(
    "http://localhost:19530", "import-job-id", "default", "root:Milvus");

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?