Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [SnapshotV2] Create API respond with snapshot info details with wait_for_completion set to false #15516

Closed
anshu1106 opened this issue Aug 30, 2024 · 1 comment
Labels
bug Something isn't working Storage:Snapshots

Comments

@anshu1106
Copy link
Contributor

Describe the bug

With current implementation of shallow snapshot v2, the create api respond with snapshot info details irrespective of the value set for wait_for_completion in the request.

Expected Response

For shallow snapshots v2, if wait_for_completion=false, the api response should be

{
  "accepted" : true
}

if wait_for_completion=true, the api response should be

{
  "snapshot" : {
    "snapshot" : "my_snapshot_3",
    "uuid" : "URJArTYOTOmIFtbv6mbSXQ",
    "version_id" : 137217827,
    "version" : "3.0.0",
    "remote_store_index_shallow_copy" : true,
    "pinned_timestamp" : 1724855317025,
    "indices" : [
      "my-index-1"
    ],
    "data_streams" : [ ],
    "include_global_state" : true,
    "state" : "SUCCESS",
    "start_time" : "2024-08-28T14:28:37.025Z",
    "start_time_in_millis" : 1724855317025,
    "end_time" : "2024-08-28T14:28:37.026Z",
    "end_time_in_millis" : 1724855317026,
    "duration_in_millis" : 1,
    "failures" : [ ],
    "shards" : {
      "total" : 1,
      "failed" : 0,
      "successful" : 1
    }
  }
}

Related component

Storage:Snapshots

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

NA

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@anshu1106 anshu1106 added bug Something isn't working untriaged labels Aug 30, 2024
@anshu1106 anshu1106 changed the title [BUG] <SnapshotV2> Create API respond with snapshot info details with wait_for_completion set to false [BUG] [SnapshotV2] Create API respond with snapshot info details with wait_for_completion set to false Aug 30, 2024
@shourya035
Copy link
Member

@anshu1106 If this is fixed, can you add the corresponding PR and close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Storage:Snapshots
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants