-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metamorphic: test shared storage including the secondary cache
This commit adds a standard option to the metamorphic tests that tests shared storage including the secondary cache. This commit fixes a buglet in the vfs stack involving incorrect OpenReadWrite implementations, which affect the secondary cache and were caught by the changes to the metamorphic tests. To test the test changes, I introduced a bug in the secondary cache like so: +++ b/objstorage/objstorageprovider/sharedcache/shared_cache.go @@ -127,6 +127,7 @@ func (c *Cache) ReadAt( // Note this. The below code does not need the original ofs, as with the earlier // reading from the cache done, the relevant offset is ofs + int64(n). Same with p. ofs += int64(n) + ofs += 3 p = p[n:] --- With this chnage, the test failed with the following error: backing file 000006 error: pebble/table: invalid table (bad magic number: ...)
- Loading branch information
1 parent
fa85ec4
commit 168079a
Showing
8 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters