forked from distributed-system-analysis/pbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle duplicate tarball names with distinct MD5 (distributed-system-…
…analysis#3552) * Handle duplicate tarball names with distinct MD5 PBENCH-1276 Automated testing can easily launch similar tests simultaneously, resulting in distinct tests with identical tarball names. Pbench Server has maintained result data using tarball names: in 0.69, a duplicate name quietly overwrote the earlier tarball, and recently 1.0 code has explicitly rejected this case. Because we're seeing this moderately commonly in cloud testing environments, this PR makes changes to gracefully accept these duplicate names, by storing the tarballs under an "isolation" directory layer using the MD5 (resource ID) to avoid duplicate names. The cache tree already has a resource ID layer. Add a functional test case, using a tarball manually unpacked and repacked with a `metadata.log` modified to resemble the likely actual differences (node name and fine-grained timestamp).
- Loading branch information
Showing
9 changed files
with
327 additions
and
136 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
Binary file added
BIN
+2.07 MB
lib/pbench/test/functional/server/tarballs/special/fio_rw_2018.02.01T22.40.57.tar.xz
Binary file not shown.
1 change: 1 addition & 0 deletions
1
lib/pbench/test/functional/server/tarballs/special/fio_rw_2018.02.01T22.40.57.tar.xz.md5
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
08516cc7448035be2cc502f0517783fa fio_rw_2018.02.01T22.40.57.tar.xz |
Oops, something went wrong.