nebula icon indicating copy to clipboard operation
nebula copied to clipboard

How do I know when an edge has been successfully created?

Open artemkorsakov opened this issue 1 year ago • 4 comments

General Question

Reproduction steps:

  • sending a request CREATE EDGE IF NOT EXISTS `MyEdge` (`id` string NOT NULL);
  • I receive a successful response
  • sending a request DESC EDGE `MyEdge`;
  • I receive a successful response

But when I try to add an edge of a given type (INSERT EDGE `MyEdge` (id) VALUES "1";), I get an error that the edge MyEdge does not exist. I need to wait 5-10 seconds for the request to add an edge to process successfully.

Could you tell me please what request to send to make sure that the edge has actually been created and that we can already add data for this edge?

artemkorsakov avatar Apr 17 '24 11:04 artemkorsakov

Good question. Currently, data synchronization is asynchronous, and you need to wait for two heartbeats (with the default heartbeat being 10 seconds) before you can insert data.

@MuYiYong , do you have any good suggestions for handling this issue?

QingZ11 avatar Apr 18 '24 03:04 QingZ11

After consulting with the product team, in the current version, there isn't an effective way to handle schema awareness, and data can only be inserted after waiting for two heartbeat intervals. However, in the new version scheduled for release at the end of this year, this issue has been properly addressed.

QingZ11 avatar Apr 18 '24 06:04 QingZ11

However, in the new version scheduled for release at the end of this year, this issue has been properly addressed.

This is great news! Thank you!

artemkorsakov avatar Apr 18 '24 07:04 artemkorsakov

Could you tell me please in which version of Nebula this error was fixed? In 3.8.0?

artemkorsakov avatar Apr 23 '25 12:04 artemkorsakov