You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing the steps below in the order indicated raises errors on fiftyone<0.22.
The root problem is multiple processes adding elements to DatasetDocument.sample_fields concurrently. Rather than both adding elements using array updates, they are both be $set-ing the entire field, as mongoengine does not support intelligent granular updates of array fields.
TERMINAL A
importfiftyoneasfoimportfiftyone.zooasfoz# step 1dataset=foz.load_zoo_dataset("quickstart", dataset_name="zzz")
dataset.persistent=True# step 3sample=dataset.first()
sample["foo"] ="bar"# step 5sample.save()
# step 7: ERRORdataset.reload()
# FieldDoesNotExist: The fields "{'spam'}" do not exist on the document "samples.XXXXXXXX"
TERMINAL B
importfiftyoneasfo# step 2dataset=fo.load_dataset("zzz")
# step 4sample=dataset.first()
sample["spam"] ="eggs"# step 6sample.save()
# step 8: ERRORdataset.reload()
# FieldDoesNotExist: The fields "{'foo'}" do not exist on the document "samples.XXXXXXXX"
The text was updated successfully, but these errors were encountered:
Executing the steps below in the order indicated raises errors on
fiftyone<0.22
.The root problem is multiple processes adding elements to
DatasetDocument.sample_fields
concurrently. Rather than both adding elements using array updates, they are both be$set
-ing the entire field, asmongoengine
does not support intelligent granular updates of array fields.TERMINAL A
TERMINAL B
The text was updated successfully, but these errors were encountered: