Menu

#477 Race condition between dbd and cnid_dbd

None
closed
nobody
None
1
2012-12-19
2012-12-05
No

There's a race condition between dbd and cnid_dbd:

  • remove CNID database of a large volume
  • start dbd -r VOLUMEPATH for rebuilding the database
  • connect with AFP to the same volue
  • try to copy a folder with lots of file to the AFP volume

Chances are high to hit the following race condition:

  • the last used CNID is stored in the db
  • both processes, afpd and cnid_dbd fetch the same last used CNID value from the database
  • both try to add their entry, the first wins

The second will get this error message:

Dec 04 11:17:27.059951 cnid_dbd[2920] {dbd_add.c:166} (E:CNID): dbd_add(DID: 391637/"SP13_NJC004_R3c.psd", dev/ino 0x19d000f/0x30c2a9): Cannot add CNID: 392025

Discussion

  • Ralph Böhme

    Ralph Böhme - 2012-12-19
    • status: open --> closed
    • milestone: -->
     

Log in to post a comment.