There is a synchronization issue where publishing an object a few seconds after deleting a different object from mms will cause the object undergoing deletion to not be deleted. Both objects will remain in the mms.
Note This problem occurs similarly in reverse order. Deleting an object a few seconds after publishing an object causes the object undergoing deletion to be deleted, but the object being published will not be published. Neither object will be in the mms. Essentially, calling mms publish and mms delete in either order with only a few seconds buffer will result in only the latter of the two commands being fully executed.
Reproducing the error:
Publish an object to mms using hzn mms object publish -m <object-metadata-1> -f <object-file-1>
Run hzn mms object ls -t <objectType-1> -i <objectID-1> to make sure object is stored in mms
Delete the object using hzn mms object del -t <objectType-1> -i <objectID-1>
Wait about 5 seconds
Publish a new object to mms using hzn mms object publish -m <object-metadata-2> -f <object-file-2>
Run hzn mms object ls -t <objectType-2> -i <objectID-2> to make sure object is stored in mms
At this point, any subsequent call to hzn mms object lsshould show only the first object
There is a synchronization issue where publishing an object a few seconds after deleting a different object from mms will cause the object undergoing deletion to not be deleted. Both objects will remain in the mms.
Note This problem occurs similarly in reverse order. Deleting an object a few seconds after publishing an object causes the object undergoing deletion to be deleted, but the object being published will not be published. Neither object will be in the mms. Essentially, calling
mms publish
andmms delete
in either order with only a few seconds buffer will result in only the latter of the two commands being fully executed.Reproducing the error:
hzn mms object publish -m <object-metadata-1> -f <object-file-1>
hzn mms object ls -t <objectType-1> -i <objectID-1>
to make sure object is stored in mmshzn mms object del -t <objectType-1> -i <objectID-1>
hzn mms object publish -m <object-metadata-2> -f <object-file-2>
hzn mms object ls -t <objectType-2> -i <objectID-2>
to make sure object is stored in mmshzn mms object ls
should show only the first object