From f49e980969bec9307b6af1508ef42f4b99747846 Mon Sep 17 00:00:00 2001 From: andf-mongodb Date: Tue, 20 Jul 2021 14:57:48 -0400 Subject: [PATCH] DOCSP-17695 update known issues 5.0.1 --- .../timeseries/timeseries-granularity.txt | 38 +++++++-------- .../timeseries/timeseries-limitations.txt | 23 ++------- source/release-notes/5.0.txt | 47 +++++++++---------- 3 files changed, 46 insertions(+), 62 deletions(-) diff --git a/source/core/timeseries/timeseries-granularity.txt b/source/core/timeseries/timeseries-granularity.txt index ab731b17b94..d577c0ba540 100644 --- a/source/core/timeseries/timeseries-granularity.txt +++ b/source/core/timeseries/timeseries-granularity.txt @@ -18,9 +18,10 @@ Set Granularity for Time Series Data .. note:: - Currently, you can only set a collection's ``granularity`` parameter - when creating the collection. After creation the parameter can't be - modified. See :ref:`known issues <5.0-known-issue-granularity>`. + You must be running MongoDB 5.0.1 or later in order to change a + time series collection's granularity after the collection has been + created. See :ref:`MongoDB 5.0 known issues + <5.0-known-issue-granularity>`. When you create a :ref:`time series collection `, set the granularity to the value that @@ -124,24 +125,21 @@ which contains the ``options.timeseries.granularity`` field. } } -.. TODO: uncomment once SERVER-58171 is fixed +Change the ``granularity`` of a Time Series Collection +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. Change the ``granularity`` of a Time Series Collection -.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +To change the ``granularity`` parameter value, issue the following +:dbcommand:`collMod` command: +.. code-block:: javascript -.. To change the ``granularity`` parameter value, issue the following -.. :dbcommand:`collMod` command: - -.. .. code-block:: javascript - -.. db.runCommand({ -.. collMod: "weather24h", -.. timeseries: { granularity: "hours" } -.. }) + db.runCommand({ + collMod: "weather24h", + timeseries: { granularity: "hours" } + }) -.. Once the ``granularity`` is set it can only be increased by one level at -.. a time. From ``"seconds"`` to ``"minutes"`` or from ``"minutes"`` to -.. ``"hours"``. Other changes are not allowed. If you need to change the -.. ``granularity`` from ``"seconds"`` to ``"hours"``, first increase the -.. ``granularity`` to ``"minutes"`` and then to ``"hours"``. +Once the ``granularity`` is set it can only be increased by one level at +a time. From ``"seconds"`` to ``"minutes"`` or from ``"minutes"`` to +``"hours"``. Other changes are not allowed. If you need to change the +``granularity`` from ``"seconds"`` to ``"hours"``, first increase the +``granularity`` to ``"minutes"`` and then to ``"hours"``. diff --git a/source/core/timeseries/timeseries-limitations.txt b/source/core/timeseries/timeseries-limitations.txt index 5b568d1ccda..6043661232a 100644 --- a/source/core/timeseries/timeseries-limitations.txt +++ b/source/core/timeseries/timeseries-limitations.txt @@ -94,24 +94,11 @@ can't be modified. Modification of ``granularity`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Currently, you can only set a collection's ``granularity`` parameter -when creating the collection. After creation the parameter can't be -modified. - -.. note:: - - See :ref:`known issues <5.0-known-issue-granularity>`. - -.. TODO: use below copy once SERVER-58171 is fixed - -.. Modification of ``granularity`` -.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. Once the ``granularity`` is set it can only be increased by one level at -.. a time. From ``"seconds"`` to ``"minutes"`` or from ``"minutes"`` to -.. ``"hours"``. Other changes are not allowed. If you need to change the -.. ``granularity`` from ``"seconds"`` to ``"hours"``, first increase the -.. ``granularity`` to ``"minutes"`` and then to ``"hours"``. +Once the ``granularity`` is set it can only be increased by one level at +a time. From ``"seconds"`` to ``"minutes"`` or from ``"minutes"`` to +``"hours"``. Other changes are not allowed. If you need to change the +``granularity`` from ``"seconds"`` to ``"hours"``, first increase the +``granularity`` to ``"minutes"`` and then to ``"hours"``. Schema Validation ~~~~~~~~~~~~~~~~~ diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index 7c03fe0bf14..6fe21ba8424 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -41,11 +41,11 @@ Issues fixed: Time Series Collections ----------------------- -MongoDB 5.0 introduces :term:`time series collections