sync against u1db-serve pegs the at 100% forever

Bug #1023117 reported by Lucio Torre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB
Fix Released
Critical
Eric Casteleijn

Bug Description

Get lai.py from: https://gist.github.com/3085488

(env)$ u1db-client init-db server.u1db
(env)$ u1db-serve --port=9000

On another terminal:
(env)$ python lai.py --add-for-test 50
(env)$ python lai.py --sync

u1db-sync will peg the cpu for a while (not enough patience to see if it finishes). (400 docs should be cheap)

normally, sync when done with less than 48 items takes less than a second. with 48 items it never finishes.

(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --add-for-test 46
(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --sync
(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --add-for-test 47
(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --sync
(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --add-for-test 48
(u1db)lucio@prometeo:~/canonical/tmp$ python lai.py --sync
<never finishes>

Changed in u1db:
assignee: nobody → Eric Casteleijn (thisfred)
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Lucio Torre (lucio.torre) wrote :

Works with trunk, tried up to 5k docs.

This is the lai.py version updated to with with the new apis:
https://gist.github.com/3085870

Changed in u1db:
status: Triaged → Fix Committed
Changed in u1db:
milestone: none → 0.0.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.