Closed waleedhammam closed 4 years ago
@despiegk I checked the history, and it seems you did some changes to export/import today. I can see that when the data is encrypted the extension you're exporting to is different from the extension you check on while importing.
Encountered bug:
1- Do j.data.bcdb.export()
then j.data.bcdb.import_()
gives namespace error key not found when namespace = sdb
in this example was myjobs db
Encountered bug 2:
If setting unknown namespace with none gives this error
Encountered bug 3:
on another machine I found this error
is the next_internal_id always available?
Yes, it was added in zdb 2 weeks ago or so that zdb knows the next_internal_id
@waleedhammam for bug 3 this simply means that this machine doesnt have the latest zdb. A reinstall would fix it.
@waleedhammam for bug 3 this simply means that this machine doesnt have the latest zdb. A reinstall would fix it.
Yes, Thanks
Updates
Currently if we are using zdb as backend namespace not found
error is encountered, this happens because only admin client can create namespace, in the import script it's normal client
After that there's a weird error occurs that there's a schema missing
there may be something missing from the export which is not exporting all related nested schemas
for the export bug.
I tried with explorer stress test, for urls like tfgrid.workloads.reservation.signing.request.1
:
exporting nested schemes, it should be recursive or something like graph, to evaluate each dependency in each level before getting the root schema
Branch: [development_importexport]
Related fixes: https://github.com/threefoldtech/jumpscaleX_core/commit/dc69592a21de86c3df871da0d00c23f84a319e32, https://github.com/threefoldtech/jumpscaleX_core/commit/afb959a7f48aa597c87a3762a36fb149d6ae8234
Branch: [development_importexport]
Related fixes https://github.com/threefoldtech/jumpscaleX_core/commit/bf7f194217148622673c5464ff91786b93306a27, https://github.com/threefoldtech/jumpscaleX_core/commit/66cc68d9fb880bf2b0565215b09dcb15ac281b2f
Changelog
to run the test kosmos -p -m 'j.data.bcdb.test(name="export")'
TODO: fix encrypted import export
TODO: fix encrypted import export
Fixed at: https://github.com/threefoldtech/jumpscaleX_core/commit/d5bdf16112ad39c7ace9333d21c7f5256f5c61cf
Testing on one bcdb instance
@url = world.ship.window sn = 1 (I)"""
h = j.data.bcdb.get("hellobcdb") m = h.model_get(schema=s) o = h.models.world__ship.new()
o.n = 1 o.sub.sn = 4 o.save()