hku-mars/ikd-Tree

error msg

femust opened this issue · 3 comments

Hey,

can you explain to me what's the reason when this triggers?

@femust
Sorry for my late reply.
The error is resulted from the multi-thread implementation. When the second thread finishes performing all operations inside the operation logger into the newly built tree , it will move on to lock the thread and replace the original tree in the main thread. However, between the finishing time and the lock time, it is possible to have incremental operations inserted to the operation logger. Therefore there will be some incremental operations left in the logger. In the next rebuilding process in the second thread, this error msg will be triggered.
In my test, this error only appears at the beginning of the algorithm. It seldom happens and does not harm the performance.

@Ecstasy-EC ok thanks for the answer