Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7670

Config replication apparently causes some changes of order of keys in config triggering useless config saves

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
      None

      Description

      I've spotted this when I was testing mnesia replacement stuff.

      Here's what I saw:

      root@beta:~/src/altoros/moxi/ns_server# rlwrap ../send-diag-eval lh:9000 -q

      {erlang:phash2(lists:sort(ns_config:get_kv_list())), erlang:phash2(ns_config:get_kv_list())}

      .

      {75190102,102377435}
      root@beta:~/src/altoros/moxi/ns_server# rlwrap ../send-diag-eval lh:9000 -q {erlang:phash2(lists:sort(ns_config:get_kv_list())), erlang:phash2(ns_config:get_kv_list())}.{75190102,102377435}

      root@beta:~/src/altoros/moxi/ns_server# rlwrap ../send-diag-eval lh:9000 -q

      {erlang:phash2(lists:sort(ns_config:get_kv_list())), erlang:phash2(ns_config:get_kv_list())}

      .

      {75190102,75190102}
      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-7670=message:MB-7670

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Fix merged already

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Fix merged already
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify on 2.0.2 build. thanks.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify on 2.0.2 build. thanks.
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        Verified with build 2.0.2-781-rel. Observed config.dat on idle box and verified that it's not being rewritten.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - Verified with build 2.0.2-781-rel. Observed config.dat on idle box and verified that it's not being rewritten.

          People

          • Assignee:
            deepkaran.salooja Deepkaran Salooja
            Reporter:
            alkondratenko Aleksey Kondratenko (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes