diff --git a/vendor/github.com/hashicorp/raft/file_snapshot.go b/vendor/github.com/hashicorp/raft/file_snapshot.go index 17d080134a..7ec7b7a759 100644 --- a/vendor/github.com/hashicorp/raft/file_snapshot.go +++ b/vendor/github.com/hashicorp/raft/file_snapshot.go @@ -384,6 +384,10 @@ func (s *FileSnapshotSink) Close() error { // Close the open handles if err := s.finalize(); err != nil { s.logger.Printf("[ERR] snapshot: Failed to finalize snapshot: %v", err) + if delErr := os.RemoveAll(s.dir); delErr != nil { + s.logger.Printf("[ERR] snapshot: Failed to delete temporary snapshot directory at path %v: %v", s.dir, delErr) + return delErr + } return err } diff --git a/vendor/vendor.json b/vendor/vendor.json index a824fc6b36..809cc08d0c 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -660,10 +660,10 @@ "revisionTime": "2015-11-16T02:03:38Z" }, { - "checksumSHA1": "bYn+HDmt7YLFvEV6DagMup8mkZE=", + "checksumSHA1": "OCPP4JxnuSSmweEL9khCd6OdIts=", "path": "github.com/hashicorp/raft", - "revision": "e5e581e04af7c46974b99195347cc0c380c0d841", - "revisionTime": "2017-06-09T23:09:26Z", + "revision": "e45173826775c4b782961c7b5758ba484b91464b", + "revisionTime": "2017-07-10T17:20:01Z", "version": "library-v2-stage-one", "versionExact": "library-v2-stage-one" },