Stop background thread when closing MockZookeeper

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1593 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Fix unit test

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1595 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Fixes to coverity reported errors

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1600 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Improved code coverage on ML

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1601 3b44db21-3a6d-4d5f-afd4-25f0118656d7
[fix bug 6057250] A ledger is leaked when doing ManagedCursor recovery

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1606 3b44db21-3a6d-4d5f-afd4-25f0118656d7
[bug 6057250] Added unit tests

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1610 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Added more unit test to check failures in composite operations

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1682 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Fixed index problem in MockZookeeper

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/platform/cloud_messaging/trunk/managed-ledger@1709 3b44db21-3a6d-4d5f-afd4-25f0118656d7
Merge branch 'trunk'