ehrenb / machina

A scalable and recursive binary analysis pipeline
https://machina.behren.me
2 stars 0 forks source link

prevent redundant OGM creation attempts #17

Closed ehrenb closed 1 year ago

ehrenb commented 1 year ago

Currently, each worker attempts to initialize the OGM. While no duplicate OGMs will be created, it does cause significant delay in start time. There should be one dedicated service to init the OGMs, or a check to see if the OGM exists before init.

OrientDB shows the following error:

2022-12-25 16:30:39:479 SEVER Exception `5EA22C9A` in storage `plocal:/orientdb/databases/machina`: 3.2.13 (build 1b0940491143c734d9f7338b321c2cde319a79ef, branch UNKNOWN) [OLocalPaginatedStorage]
com.orientechnologies.orient.core.exception.OCommandExecutionException: Property 'apk.md5' already exists. Remove it before to retry.
    DB name="machina"
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateProperty.execute(OCommandExecutorSQLCreateProperty.java:298)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:74)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:4205)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:4171)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63)
    at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeCommand(OConnectionBinaryExecutor.java:618)