Closed serboctor closed 4 years ago
when you rum bcdb rebuild
it starts a new process and since bcdb models are lazy loaded, it will only be loaded when used, that's why I had to get all objects in order to enforce loading all models before rebuilding.
https://github.com/threefoldtech/jumpscaleX_core/commit/3a67d530e16766db7695d0e3288308b4e2be156d
verified
Steps:
j.servers.threebot.local_start_explorer(background=True)
JSX> farm_model = bcdb.model_get(url="tfgrid.directory.farm.1")
model:tfgrid.directory.farm.1
JSX> farm_model.find()
[## tfgrid.directory.farm.1 ID: 1
threebot_id : 1
iyo_organization :
name : stresstestknzo7
wallet_addresses :
tfgrid.directory.location.1
email : farm@tf.com
resource_prices : []
prefix_zero : ::/128 ]
bcdb.storclient.delete(farm_id)
bcdb rebuild
in the shell.It worked for me only when I deleted the sql index file and rebuild again. Also, @andrewayoub couldnt reproduce it with the
rebuild_index
function on the bcdb instance. It happens only with thebcdb rebuild
command.