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]: Online Restore graphql API has no interface to get status #8985

Open
darkn3rd opened this issue Aug 31, 2023 · 0 comments
Open

[BUG]: Online Restore graphql API has no interface to get status #8985

darkn3rd opened this issue Aug 31, 2023 · 0 comments
Assignees
Labels
kind/bug Something is broken.

Comments

@darkn3rd
Copy link
Contributor

What version of Dgraph are you using?

v23.1.0

Tell us a little more about your go-environment?

Dgraph Docker Image

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

n/a

What steps will reproduce the bug?

  1. Deploy Dgraph
    helm install dg dgraph/dgraph \
      --namespace dgraph \
      --create-namespace \
      --values -  <<EOF
    fullnameOverride: dgraph
    image:
      tag: v23.1.0
    zero:
      persistence:
        storageClass: $DGRAPH_STORAGE_CLASS
    alpha:
      persistence:
        storageClass: $DGRAPH_STORAGE_CLASS
      configFile:
        config.yaml: |
          security:
            whitelist: ${MY_CIDR}
    EOF
  2. Perform an online restore
    curl http://localhost:8080/admin --silent --request POST \
       --header "Content-Type: application/graphql" \
       --data "mutation 
    { 
      restore(input: { location: \"s3:\/\/\/$BUCKET_NAME/$BUCKET_PATH/\" }) 
      { message code } 
    }" | jq

Expected behavior and actual result.

The result from the API is just a job was submitted. However, there's no way to follow up and find out when that job is finished, as it is not apart of the API.

Additional information

No response

@darkn3rd darkn3rd added the kind/bug Something is broken. label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

2 participants