Graql migrate export broken in 1.3 and 1.4


#1

Hi

It appears that the graql migrate export functionality is broken in versions 1.3 and 1.4.

$  ~/src/grakn-core-1.4.0/grakn server start
...
Starting Storage......SUCCESS
Starting Engine.......SUCCESS
$ ~/src/grakn-core-1.4.0/graql console -k export_test -f model/model.gql
{}
$  ~/src/grakn-core-1.4.0/graql console -k export_test -e 'match $x sub thing; limit 10; get;'
{$x label thing;}
{$x label entity;}
{$x label relationship;}
{$x label attribute;}
{$x label Sample sub entity;}
{$x label Gene sub entity;}
{$x label Protein sub entity;}
{$x label "@has-attribute" sub relationship;}
{$x label ENCODES sub relationship;}
{$x label SampleBox sub attribute;}
$  ~/src/grakn-core-1.4.0/graql migrate export -k export_test -schema
Exception in thread "main" java.lang.RuntimeException: INTERNAL: http2 exception
	at ai.grakn.client.Grakn$Transaction.responseOrThrow(Grakn.java:218)
	at ai.grakn.client.Grakn$Transaction.<init>(Grakn.java:163)
	at ai.grakn.client.Grakn$Transaction.<init>(Grakn.java:152)
	at ai.grakn.client.Grakn$Session.transaction(Grakn.java:123)
	at ai.grakn.migration.export.Main.runExport(Main.java:49)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Collections$2.tryAdvance(Collections.java:4717)
	at java.util.Collections$2.forEachRemaining(Collections.java:4725)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at ai.grakn.migration.export.Main.main(Main.java:38)
	at ai.grakn.engine.bootup.Graql.migrate(Graql.java:108)
	at ai.grakn.engine.bootup.Graql.run(Graql.java:84)
	at ai.grakn.engine.bootup.Graql.main(Graql.java:64)

I get a very similar result after inserting an entity and using the -data option, and in v1.3.0.

The same set of commands work with v1.2.0.

In the interim, can you advise how I might go about replicating the export?

Thanks

Nathan


#2

We’re sorry about this, @nathan.johnson! The migration component is broken now. We’re deprecating it, and we’re replacing it with proper functionalities in Graql soon. Can you work with your source schema for now? Thank you!


#3

The schema export is less of a problem actually, but the data export we are use for generating some of our test case data. Rather than code around this I think it’s probably easier to juggle 1.2 and 1.4 during test development. Hopefully I won’t be bitten by 1.2 vs 1.4 graql syntax differences.

wrt a replacement for ‘export’, how soon is soon? 1.5.0?

Thanks

Nathan