Check for hashes earlier
Constructor isn't used
Fix minor regression in 4eaa9d0385d9b7818f4ae9a4fa4b1e288485319e breaking request restarting
Fix bogus onEncode error, recording encoded uri wrong
If no hashes, return null
Implement the wakeup optimisation for inserts. That is, avoid polling by returning a wakeup value of Long.MAX_VALUE when all our block inserts are running and we can't choose another one. We don't do the 3-and-then-wait-half-an-hour thing for inserts which is "cooldown" as it happens on requests, as it doesn't make sense for inserts.
Clearer
Don't send two lots of messages for each block for site uploads
Remove removePutHandlers(), not necessary any more.
Don't start ContainerInserter's. start() immediately transitions to an SFI, so onResume() shouldn't be called after starting.
Comments
Add shutdown callbacks
Logging
Resume the origMetadata, which actually contains the Bucket's until the ContainerInserter is started.
Turn notifyClients back on, it may be called explicitly
Remove BaseFileBucket.length evil hack to work around long-gone file.length() bug.