diff options
author | 2017-03-17 13:46:10 -0800 | |
---|---|---|
committer | 2017-03-17 15:16:18 -0700 | |
commit | 6a9236e060f552cba5883e586d01c5edfa168b42 (patch) | |
tree | 9c5611fa5ae1ef0b0faae2e78b085bac5ae73111 /tensorflow/core/platform/cloud/gcs_file_system_test.cc | |
parent | 2f46b74c3a21cf340c19fab83f38e69bbb4f3b8f (diff) |
Explicilty retry failures of individual deletes in DeleteRecursively.
Otherwise these failuers aren't currently covered by any retry logic.
Change: 150486764
Diffstat (limited to 'tensorflow/core/platform/cloud/gcs_file_system_test.cc')
-rw-r--r-- | tensorflow/core/platform/cloud/gcs_file_system_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tensorflow/core/platform/cloud/gcs_file_system_test.cc b/tensorflow/core/platform/cloud/gcs_file_system_test.cc index 7fb70acf11..e84ec7cc66 100644 --- a/tensorflow/core/platform/cloud/gcs_file_system_test.cc +++ b/tensorflow/core/platform/cloud/gcs_file_system_test.cc @@ -1471,7 +1471,13 @@ TEST(GcsFileSystemTest, DeleteRecursively_Ok) { "Auth Token: fake_token\n" "Delete: yes\n", ""), - // Delete the object. + // Delete the object - fails and will be retried. + new FakeHttpRequest("Uri: https://www.googleapis.com/storage/v1/b" + "/bucket/o/path%2Ffile1.txt\n" + "Auth Token: fake_token\n" + "Delete: yes\n", + "", errors::Unavailable("500"), 500), + // Delete the object again. new FakeHttpRequest("Uri: https://www.googleapis.com/storage/v1/b" "/bucket/o/path%2Ffile1.txt\n" "Auth Token: fake_token\n" |