{"action":"opened","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5976","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5976/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5976/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5976/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5976","id":148130953,"number":5976,"title":"Error saving record - OSBTreeException: We reached max level of depth of SBTree but still found nothing, seems like tree is in corrupted state. You should rebuild index related to given query.","user":{"login":"mrboxie","id":3422201,"avatar_url":"https://avatars.githubusercontent.com/u/3422201?v=3","gravatar_id":"","url":"https://api.github.com/users/mrboxie","html_url":"https://github.com/mrboxie","followers_url":"https://api.github.com/users/mrboxie/followers","following_url":"https://api.github.com/users/mrboxie/following{/other_user}","gists_url":"https://api.github.com/users/mrboxie/gists{/gist_id}","starred_url":"https://api.github.com/users/mrboxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrboxie/subscriptions","organizations_url":"https://api.github.com/users/mrboxie/orgs","repos_url":"https://api.github.com/users/mrboxie/repos","events_url":"https://api.github.com/users/mrboxie/events{/privacy}","received_events_url":"https://api.github.com/users/mrboxie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T17:39:48Z","updated_at":"2016-04-13T17:39:48Z","closed_at":null,"body":"We are running Orientdb 2.0.9 in embedded mode. We are running into the following exception when trying to insert db record. Not sure if  it is related, the setup for this issue is the same as another issue #5920 we reported. Both cases we had issue with inserting FilePerfData records, not of other types. Please see attached file for classes and indexes used.\r\n[info_class_index.txt](https://github.com/orientechnologies/orientdb/files/217658/info_class_index.txt)\r\n\r\nBelow is the stacktrace. Let me know if I can provide any information without providing customer DB?\r\n\r\nSince we are running in embedded mode, do you suggest we rebuild the index as a workaround to this exception?\r\n\r\nThank you for your time!\r\n\r\n-Bo\r\n\r\n2016-04-13 16:36:00.837 [pool-7-thread-1] \r\ncom.orientechnologies.orient.core.index.OIndexException: Error during insertion of key in index\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:141) ~[OIndexMultiValues.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:52) ~[OIndexMultiValues.class:2.0.9]\r\n        at com.orientechnologies.orient.core.tx.OTransactionNoTx.addIndexEntry(OTransactionNoTx.java:198) ~[OTransactionNoTx.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:97) ~[OIndexTxAware.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:41) ~[OIndexTxAware.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OClassIndexManager.addIndexesEntries(OClassIndexManager.java:543) ~[OClassIndexManager.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OClassIndexManager.onRecordAfterCreate(OClassIndexManager.java:310) ~[OClassIndexManager.class:2.0.9]\r\n        at com.orientechnologies.orient.core.hook.ODocumentHookAbstract.onTrigger(ODocumentHookAbstract.java:221) ~[ODocumentHookAbstract.class:2.0.9]\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHooks(ODatabaseDocumentTx.java:980) ~[ODatabaseDocumentTx.class:2.0.9]\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHookSuccess(ODatabaseDocumentTx.java:2798) ~[ODatabaseDocumentTx.class:2.0.9]\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeSaveRecord(ODatabaseDocumentTx.java:1769) ~[ODatabaseDocumentTx.class:2.0.9]\r\n        at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:102) ~[OTransactionNoTx.class:2.0.9]\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2306) ~[ODatabaseDocumentTx.class:2.0.9]\r\n        at com.orientechnologies.orient.object.db.OObjectDatabaseTx.save(OObjectDatabaseTx.java:444) ~[OObjectDatabaseTx.class:2.0.9]\r\n        at com.orientechnologies.orient.object.db.OObjectDatabaseTx.save(OObjectDatabaseTx.java:379) ~[OObjectDatabaseTx.class:2.0.9]\r\n        at com.x.x.x.StatsDBObjectInstance.insertLogEvent(StatsDBObjectInstance.java:636) ~[StatsDBObjectInstance.class:3.1.4-172-g3b934cb]\r\n        at com.x.x.x.StatsDBService.gatherFilePerf(StatsDBService.java:636) ~[StatsDBService.class:3.1.4-172-g3b934cb]\r\n        at com.x.x.x.StatsDBService.gatherFilePerfStats(StatsDBService.java:778) ~[StatsDBService.class:3.1.4-172-g3b934cb]\r\n        at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) ~[na:na]\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_51]\r\n        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_51]\r\n        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) [ScheduledMethodRunnable.class:3.2.8.RELEASE]\r\n        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) [DelegatingErrorHandlingRunnable.class:3.2.8.RELEASE]\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_51]\r\n        at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.7.0_51]\r\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [na:1.7.0_51]\r\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.7.0_51]\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_51]\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_51]\r\n        at java.lang.Thread.run(Unknown Source) [na:1.7.0_51]\r\nCaused by: com.orientechnologies.orient.core.index.sbtree.local.OSBTreeException: We reached max level of depth of SBTree but still found nothing, seems like tree is in corrupted state. You should rebuild index related to given query.\r\n        at com.orientechnologies.orient.core.index.sbtree.local.OSBTree.findBucket(OSBTree.java:1543) ~[OSBTree.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.sbtree.local.OSBTree.get(OSBTree.java:193) ~[OSBTree.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.engine.OSBTreeIndexEngine.get(OSBTreeIndexEngine.java:225) ~[OSBTreeIndexEngine.class:2.0.9]\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:115) ~[OIndexMultiValues.class:2.0.9]\r\n        ... 29 common frames omitted\r\n"}}