Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use the new test utilities to remove some duplicate code. | Chris Wilson | 2014-02-27 |
| | | | | Fix previous changes by waiting for forked bbstored process during termination. | ||
* | Move test utilities into a separate file, to share with testbbackupd. | Chris Wilson | 2014-02-27 |
| | |||
* | Fix memory leak in bbackupquery readline completion. | Chris Wilson | 2014-02-27 |
| | |||
* | Rename tests. Split up and refactor. | Chris Wilson | 2014-02-27 |
| | | | | | | Use SETUP macro and tearDown function in tests. Make tests return bool instead of int, and check it. | ||
* | Check that adding a new directory doesn't exceed store limits. | Chris Wilson | 2014-02-13 |
| | |||
* | Add a shortcut interface to uploading a new file. | Chris Wilson | 2014-02-13 |
| | | | | Useful in tests. | ||
* | Revert part of patch that caused compile errors. | Chris Wilson | 2014-02-13 |
| | | | | This reverts commit 59c3fdf8be1def3f237a4b51eb27773b4f42bbcd. | ||
* | Change some TEST_THAT assertions to TEST_EQUAL. | Chris Wilson | 2014-02-13 |
| | | | | | | Being able to see the actual and expected values helps with debugging. More cleanup of comments. | ||
* | White space and comment fixes. | Chris Wilson | 2014-02-13 |
| | |||
* | Compile fix. Remove redefinition of ExpectedRefCounts. | Chris Wilson | 2014-02-13 |
| | |||
* | Compile fix. | Chris Wilson | 2014-02-13 |
| | | | | Move ExpectedRefCounts definition to where it's needed. | ||
* | Add a convenience constructor to read a BackupStoreDirectory from a stream. | Chris Wilson | 2014-02-13 |
| | | | | Saves ~2 lines each time it's used. And we use it a lot in testbackupstore. | ||
* | Compile fix. | Chris Wilson | 2014-02-13 |
| | |||
* | Add some utility methods. | Chris Wilson | 2014-02-13 |
| | | | | Backported from new testbackupstore, to reduce diff. | ||
* | Overwrite existing files left by previous tests. | Chris Wilson | 2014-02-13 |
| | | | | | | Will help to ensure that individual test cases run properly, even if a previous test didn't clear up after itself. Splitting up testbackupstore into idempotent testcases is coming soon. | ||
* | The new backupstore check detects 4 errors instead of 3, adjust test to match. | Chris Wilson | 2014-02-11 |
| | |||
* | Re-enable the disabled test_dir_fixing | Chris Wilson | 2014-02-11 |
| | |||
* | Remove unnecessary import | Chris Wilson | 2014-02-11 |
| | |||
* | Don't consider it an error if LastObjectIDUsed changes during check. | Chris Wilson | 2014-02-11 |
| | | | | | There could be many reasons for this, including an invalid object being deleted during the previous check run. And it's definitely not serious. | ||
* | Fix accounting for old and deleted files, and dirs removed by housekeeping. | Chris Wilson | 2014-02-11 |
| | | | | | Also pass the actual reference count of an object to RaidFileWrite instead of assuming that it's zero, to avoid accidentally deleting a referenced object. | ||
* | Fix compile error in MemBlockStream. | Chris Wilson | 2014-02-11 |
| | | | | | | Fix test/common memory leak checks now that MemBlockStream allocates another block. | ||
* | Fix double parentheses, which llvm complains about. | Chris Wilson | 2014-02-11 |
| | |||
* | Simplify C++ name demangling code, and its memory allocation tracking. | Chris Wilson | 2014-02-11 |
| | |||
* | Add a TEST_THAT_THROWONFAIL macro that throws an AssertFailed exception. | Chris Wilson | 2014-02-11 |
| | | | | Allows aborting tests from any depth of function calls. | ||
* | Give tests access to the list of tests requested by the user. | Chris Wilson | 2014-02-11 |
| | |||
* | Add a MemBlockStream constructor from a simple string. | Chris Wilson | 2014-02-11 |
| | | | | | | Useful for sending simple string messages through Protocols or writing them to streams. Takes a copy of the string, so you don't need to worry about object lifetime. | ||
* | Record mallocs that happen while the memleak finder is disabled. | Chris Wilson | 2014-02-11 |
| | | | | | | | | Track them as not leaks, and suppress warnings about realloc() and free() on these blocks, because they are actually tracked. Add missing "throw (std::bad_alloc)" to "operator new" to silence warnings from the llvm compiler. | ||
* | Compile fixes. | Chris Wilson | 2014-02-11 |
| | | | | | Backport a few new functions to simplify tests. | ||
* | Fix accounting for old and deleted files and blocks during backup operations. | Chris Wilson | 2014-02-10 |
| | | | | Adding and deleting files was not always accounted properly before. | ||
* | Update copyright to 2014. | Chris Wilson | 2014-02-10 |
| | |||
* | Include the filename in NamedLock exception messages. | Chris Wilson | 2014-02-10 |
| | |||
* | Add a ClearDirectoryCache method to BackupStoreContext. | Chris Wilson | 2014-02-10 |
| | | | | It's used in several places, and about to be one more. | ||
* | Reformat for readability, add defensive comment. | Chris Wilson | 2014-02-10 |
| | |||
* | Fix unnecessarily verbose log message about SyncAllowScript. | Chris Wilson | 2014-02-10 |
| | |||
* | Fix wrong output of client store marker in bbstoraccounts info. | Chris Wilson | 2014-02-10 |
| | |||
* | Fix testbackupstore, apart from wrong accounting for old files. | Chris Wilson | 2014-02-10 |
| | |||
* | Fix use of wrong config file in bbstoreaccounts. | Chris Wilson | 2014-02-09 |
| | |||
* | Rename BackupStoreInfo variable NumFiles to NumCurrentFiles. | Chris Wilson | 2014-02-09 |
| | | | | | Will hopefully prevent future confusion about the meaning of this info variable. | ||
* | Revert "Get backup connection stats from BackupProtocolServer." | Chris Wilson | 2014-02-09 |
| | | | | | | | Until the groundwork is prepared by changing Protocol's use of IOStream to SocketStream. This reverts commit 78531354753f3ce9bb3ef1d906b2aeaac5b73d58. | ||
* | Fix wrong handling of objects with multiple references in housekeeping. | Chris Wilson | 2014-02-09 |
| | | | | | | We don't have a test for it yet, and won't until snapshots are implemented, but it's a bad idea to merge patches to remove an old version when another directory is still holding a reference to the patch. | ||
* | Fix accounting in bbstoreaccounts check. | Chris Wilson | 2014-02-09 |
| | | | | | | Fix accounting for current, old and deleted files and blocks. Previously there was confusion over the meaning of NumFiles, now it's defined to mean the number of current files (neither old nor deleted), similar to BlocksInCurrentFiles. | ||
* | The user asked us to fix errors, so it's not a very important notification ↵ | Chris Wilson | 2014-02-09 |
| | | | | that we're doing so. | ||
* | Get backup connection stats from BackupProtocolServer. | Chris Wilson | 2014-02-09 |
| | | | | One less reason to hang onto a Stream reference, that will go away soon. | ||
* | Fix some backupstore test failures caused by refcount db changes. | Chris Wilson | 2014-02-08 |
| | |||
* | Allow a logging tagger to temporarily replace the current tag. | Chris Wilson | 2014-02-08 |
| | | | | | | Sometimes useful to replace instead of appending to the current tag. The old tag will be reinstated when the tagger is destroyed. | ||
* | Add a logging guard that temporarily enables tagging on the console. | Chris Wilson | 2014-02-08 |
| | | | | | This is useful for disambiguating messages coming from different parts of the application when looking at console output. | ||
* | Allow checking whether console logging is currently tagged. | Chris Wilson | 2014-02-08 |
| | |||
* | Add new exception to denote a corrupt refcount db. | Chris Wilson | 2014-02-07 |
| | |||
* | Fix compile error. | Chris Wilson | 2014-02-07 |
| | | | | | | | | | | Caused by removal of BackupStoreRefCountDatabase::CreateForRegeneration. It's not safe to do this in housekeeping anyway, because it might not complete the scan, leaving an incomplete database, that might persuade BackupStoreContext that it's OK to delete an object that still really has references to it. If your refcount db disappears or is damaged, you need to run a check fix. | ||
* | Create new refcount database atomically during account check. | Chris Wilson | 2014-02-07 |
| | | | | | | | | | | | Use a temporary refcount db for check instead of an in-memory vector. This avoid the memory usage problems created by using the vector on large accounts, but may require us to improve the efficiency of the refcount database itself to avoid large numbers of small I/O operations. That is very doable now that we're using a class for it. Fix some inconsistencies and mistakes in handling reference counts and info counters during account checks (more to come). |