From 27c4c25165c03997820fde543a9d726df220826c Mon Sep 17 00:00:00 2001 From: David Percy Date: Fri, 1 Apr 2022 19:51:49 +0000 Subject: SERVER-61070 Update time-series mixed-schema data index failure error message --- src/mongo/db/catalog/multi_index_block.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp index 53ff0a71df2..d72cd64ead5 100644 --- a/src/mongo/db/catalog/multi_index_block.cpp +++ b/src/mongo/db/catalog/multi_index_block.cpp @@ -87,17 +87,15 @@ size_t getEachIndexBuildMaxMemoryUsageBytes(size_t numIndexSpecs) { } Status timeseriesMixedSchemaDataFailure(const Collection* collection) { - // TODO SERVER-61070: Re-word the error message below if necessary and add a URL for - // workarounds. return Status( ErrorCodes::CannotCreateIndex, - str::stream() << "Index build on collection '" << collection->ns() << "' (" - << collection->uuid() - << ") failed due to the detection of mixed-schema data in the " - << "time-series buckets collection. Starting as of v5.2, time-series " - << "measurement bucketing has been modified to ensure that newly created " - << "time-series buckets do not contain mixed-schema data. For workarounds, " - << "see: "); + str::stream() + << "Index build on collection '" << collection->ns() << "' (" << collection->uuid() + << ") failed due to the detection of mixed-schema data in the " + << "time-series buckets collection. Starting as of v5.2, time-series " + << "measurement bucketing has been modified to ensure that newly created " + << "time-series buckets do not contain mixed-schema data. For details, " + << "see: https://www.mongodb.com/docs/manual/core/timeseries/timeseries-limitations/"); } } // namespace -- cgit v1.2.1