buckyos / CYFS

CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP),is short for CYberFileSystem. https://www.cyfs.com/, cyfs://cyfs/index_en.html.
https://www.cyfs.com/
BSD 2-Clause "Simplified" License
2k stars 276 forks source link

Standby ood failed to sync chunk data #4

Closed justtwo2 closed 2 years ago

justtwo2 commented 2 years ago

Describe the bug

the standby ood just sync the object_map ,not sync chunk data To Reproduce

(1) use SharedCyfsStack ndn_service put a chunk to master ood (2)master ood's root_state add a ObjectMap of chunkId (3) waitting for standby ood sync data complete from master OOD (4) check standby ood can use SharedCyfsStack ndn_service get the chunk (5)the standby ood root_state revision is sync ,but get chunk data failed, ndn get_chunk from local but not found! Err(err: (4, ndn get_chunk from local but not found! id=7EYaFPU2ry4McmHUJtxz1iDKEyPfkSaoDz7AFuxiDFJv, undefined)) Expected behavior

(1) the standby ood root_state revision is sync , the standby ood should get chunk from NOC

lurenpluto commented 2 years ago

bug fixed at # fb5b7187e0de23ca742952269849a5351894cf99