[SERVER-53963] Improve error message for unsupported operations on time-series collections Created: 21/Jan/21  Updated: 29/Oct/23  Resolved: 05/Feb/21

Status: Closed
Project: Core Server
Component/s: Catalog, Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-55075 Test that change streams don't includ... Closed
Related
related to SERVER-55075 Test that change streams don't includ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-02-08
Participants:

 Description   

Two cases that I've run into:

  • create the same time-series collection twice: "A view already exists. NS: w16b10000mdb.a" should be come "A collection already exists" or "a time-series collection already exists".
  • attempting to remove or update a measurement, yields: Namespace w16b10000mdb.a is a view, not a collection. It should instead mention that the operation is not supported on time-series collections.

This second case is handled in catalog_raii.cpp and will probably address a large number of different situations. Grepping "is a view, not a collection" also shows an occurrence in run_aggregate.cpp, so that should be changed as well.



 Comments   
Comment by Githook User [ 05/Feb/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-53963 Improve error message for unsupported operations on time-series collections
Branch: master
https://github.com/mongodb/mongo/commit/03954159a4260ec6132669b2e94c9d9cfd5628c0

Generated at Thu Feb 08 05:32:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.