diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2019-11-20 21:05:40 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-20 21:05:40 +0000 |
commit | b077212a48653b1668cee67f6888cd65b5d123f6 (patch) | |
tree | 7e507243ceec464674b7a9f58a9d0eb39af2c41c /src/mongo/s | |
parent | d86e8a5bf40f1c6edbab37bef38cd0f1d5dc062d (diff) | |
download | mongo-b077212a48653b1668cee67f6888cd65b5d123f6.tar.gz |
SERVER-44519: Label ExceededTimeLimit errors with RetryableWriteError label
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_test.cpp b/src/mongo/s/catalog/sharding_catalog_test.cpp index 0885054f185..3f6e0decf83 100644 --- a/src/mongo/s/catalog/sharding_catalog_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_test.cpp @@ -1129,7 +1129,7 @@ TEST_F(ShardingCatalogClientTest, UpdateDatabase) { future.default_timed_get(); } -TEST_F(ShardingCatalogClientTest, UpdateConfigDocumentExceededTimeLimit) { +TEST_F(ShardingCatalogClientTest, UpdateConfigDocumentNonRetryableError) { HostAndPort host1("TestHost1"); configTargeter()->setFindHostReturnValue(host1); @@ -1143,7 +1143,7 @@ TEST_F(ShardingCatalogClientTest, UpdateConfigDocumentExceededTimeLimit) { dbt.toBSON(), true, ShardingCatalogClient::kMajorityWriteConcern); - ASSERT_EQ(ErrorCodes::ExceededTimeLimit, status); + ASSERT_EQ(ErrorCodes::Interrupted, status); }); onCommand([host1](const RemoteCommandRequest& request) { @@ -1151,7 +1151,7 @@ TEST_F(ShardingCatalogClientTest, UpdateConfigDocumentExceededTimeLimit) { ASSERT_EQUALS(host1, request.target); BatchedCommandResponse response; - response.setStatus({ErrorCodes::ExceededTimeLimit, "operation timed out"}); + response.setStatus({ErrorCodes::Interrupted, "operation interrupted"}); return response.toBSON(); } catch (const DBException& ex) { |