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

refreshMetadata should not be called when not sharded

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-09-19, Sharding 2016-10-10

      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).

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: