I'm trying to run a Gremlin schema creation script against our Datastax DSE Graph database, and the first line of the script is schema.drop()
, but the script seems to immediately go to the next line in the script and throws an error saying the new object it's trying to create is still there. Normally the schema.drop()
takes about a minute or so, so it looks like it isn't waiting for it to finish dropping the schema before running the next line of script.
Is there a way to force the script to wait after the schema.drop()
line and let it finish dropping the schema before trying to run the next line of script to create the new schema?