Seamus Minogue
2014-09-09 19:09:08 UTC
I am having a problem with closing a plocal orient database properly when
using the tinkerpop graph factory api.
orientGraphFactory = new OrientGraphFactory("plocal:" + secureProperties.
getProperty("orientdb"), "admin", "admin");
orientGraphFactory.getDatabase().getStorage().getConfiguration().
dateTimeFormat = DATE_FORMAT;
orientGraphFactory.getDatabase().getStorage().getConfiguration().update();
orientGraphFactory.setTransactional(false);
orientGraphFactory.setupPool(1, 30);
orientGraphFactory.getDatabase().declareIntent(new OIntentMassiveInsert());
orientGraphFactory.getDatabase().setValidationEnabled(false);
orientGraphFactory.getDatabase().setRetainRecords(true);
OrientGraphNoTx graph = orientGraphFactory.getNoTx();
... Do Inserts of lots of stuff
graph.commit();
orientGraphFactory.getDatabase().declareIntent(null);
orientGraphFactory.getDatabase().close();
orientGraphFactory.close();
This all works and my database is populated properly. The problem is that
sometimes (not always) when I restart I get the messages:
WARNING: Storage harvest94 was not closed properly. Will try to restore
from write ahead log.
INFO: Data restore procedure from full checkpoint is started. Restore is
performed from LSN OLogSequenceNumber{segment=50, position=38487926}
This restore procedure can take as much as 4hrs to complete... The posts I
have seen about this problem seem to conclude that I should be using 1.7.4
so I updated to 1.7.8 and still see the problem. Other advice is to call
database.shutdown(). getDatabase from the graphfactory doesn't have a
shutdown method only close.
Is there something I am missing?
using the tinkerpop graph factory api.
orientGraphFactory = new OrientGraphFactory("plocal:" + secureProperties.
getProperty("orientdb"), "admin", "admin");
orientGraphFactory.getDatabase().getStorage().getConfiguration().
dateTimeFormat = DATE_FORMAT;
orientGraphFactory.getDatabase().getStorage().getConfiguration().update();
orientGraphFactory.setTransactional(false);
orientGraphFactory.setupPool(1, 30);
orientGraphFactory.getDatabase().declareIntent(new OIntentMassiveInsert());
orientGraphFactory.getDatabase().setValidationEnabled(false);
orientGraphFactory.getDatabase().setRetainRecords(true);
OrientGraphNoTx graph = orientGraphFactory.getNoTx();
... Do Inserts of lots of stuff
graph.commit();
orientGraphFactory.getDatabase().declareIntent(null);
orientGraphFactory.getDatabase().close();
orientGraphFactory.close();
This all works and my database is populated properly. The problem is that
sometimes (not always) when I restart I get the messages:
WARNING: Storage harvest94 was not closed properly. Will try to restore
from write ahead log.
INFO: Data restore procedure from full checkpoint is started. Restore is
performed from LSN OLogSequenceNumber{segment=50, position=38487926}
This restore procedure can take as much as 4hrs to complete... The posts I
have seen about this problem seem to conclude that I should be using 1.7.4
so I updated to 1.7.8 and still see the problem. Other advice is to call
database.shutdown(). getDatabase from the graphfactory doesn't have a
shutdown method only close.
Is there something I am missing?
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.