Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26107

refreshMetadata should not be called when not sharded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.14
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2016-09-19, Sharding 2016-10-10

      Description

      Otherwise, you get this in your non-sharded log every time you step down:

      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.885-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.885-0400 d20013| 2016-09-14T09:28:48.884-0400 I -        [conn1] end connection 127.0.0.1:40044 (7 connections now open)
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:48.886-0400 d20013| 2016-09-14T09:28:48.884-0400 I SHARDING [conn2] Marking collection as not sharded.
      

      And every time you step up too!

      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I SHARDING [rsSync] Marking collection as not sharded.
      [js_test:linearizable_read_concern] 2016-09-14T09:28:17.412-0400 d20013| 2016-09-14T09:28:17.411-0400 I REPL     [rsSync] transition to primary complete; database writes are now permitted
      

      In addition, the utility of this log message is minimal, so it should not be getting logged at the default log level (0).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: