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

The schema statements execution returns ok but still insert failed saying no schema found #48

Closed
Winging opened this issue Aug 18, 2021 · 4 comments
Labels
type/question Type: question about the product

Comments

@Winging
Copy link
Contributor

Winging commented Aug 18, 2021

My application needs to create graph schema online everytime. The session.execute() function executes schema statments well and returns nebula::ErrorCode::SUCCEEDED. But I still fail when I invoke session.execute() to insert vertexes. If I add some delay time between the two actions , it works well. It seems that there is a delay for schema creatation, what should I do to tell when could I execute insertion commands after execution of schema statemetns?

@Shylock-Hg
Copy link
Contributor

You could check the error code, retry when get ErrorCode::ERR_TAG_NOT_FOUND, ErrorCode::ERR_EDGE_NOT_FOUDN

@Winging
Copy link
Contributor Author

Winging commented Aug 19, 2021

You could check the error code, retry when get ErrorCode::ERR_TAG_NOT_FOUND, ErrorCode::ERR_EDGE_NOT_FOUDN

Is there explicit method to check if schema creation is ok? There may be some other errors when I execute insert statements imedatelly after schema creation.
Errors found below:

1:
with error code: -8;Storage Error: Invalid space vid len.

2:
 error code: -12;SemanticError: No schema found for `Library'


@Shylock-Hg
Copy link
Contributor

You could check the error code, retry when get ErrorCode::ERR_TAG_NOT_FOUND, ErrorCode::ERR_EDGE_NOT_FOUDN

Is there explicit method to check if schema creation is ok? There may be some other errors when I execute insert statements imedatelly after schema creation.
Errors found below:

1:
with error code: -8;Storage Error: Invalid space vid len.

2:
 error code: -12;SemanticError: No schema found for `Library'

Or you could sleep heartbeat_interval_secs seconds.

@QingZ11
Copy link

QingZ11 commented Dec 26, 2022

We have noticed that the issue you created hasn’t been updated for nearly a month, so we have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime. Thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

4 participants