cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
87 stars 14 forks source link

corto_declareChildRecursive resolves invalid object in multi-threaded applications #638

Closed hendrenja closed 6 years ago

hendrenja commented 6 years ago

corto_declareChildRecursive is returning invalid objects in multi-threaded applications.

Race conditions are exposed as multiple threads attempt to declare and define the same object (parent/id). FIND is returning invalid objects that were not declared by the thread reporting errors warning that the Object could not be defined as it had already been deleted.