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

mb_mnesia,ensure_schema timeout when restarting ns_server

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Incomplete
    • Affects Version/s: 1.7.0, 1.7.2
    • Fix Version/s: None
    • Component/s: ns_server
    • Security Level: Public
    • Environment:
      1.7 GA

      Description

      users are run into this issue too often which i suspect has sth to do with the uptime or maybe an unclean shutdown of the server can result in this behavior.

      asking customers to delete their statistics is not a very pleasent thing to do

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Let me explain "not really precious thing" better. Apparently it's too easily to misunderstand my original phrase as "we shouldn't save stats at all".

        Mnesia does it's own journalling and crash recovery and durable commits and stuff like that. Or supposedly does.

        My point was we don't need that level of durability. That means that instead of trying to commit supposedly durable transaction via mnesia after each stats sample we'll accumulate changes and save them once or twice per minute. Saving itself (because it's not much data) can be made durable and cheap.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Let me explain "not really precious thing" better. Apparently it's too easily to misunderstand my original phrase as "we shouldn't save stats at all". Mnesia does it's own journalling and crash recovery and durable commits and stuff like that. Or supposedly does. My point was we don't need that level of durability. That means that instead of trying to commit supposedly durable transaction via mnesia after each stats sample we'll accumulate changes and save them once or twice per minute. Saving itself (because it's not much data) can be made durable and cheap.
        Hide
        dc Daniel added a comment -

        Attaching the relevant logs.

        Show
        dc Daniel added a comment - Attaching the relevant logs.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Invalidated by removal of mnesia

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Invalidated by removal of mnesia
        Hide
        dipti Dipti Borkar added a comment -

        have you already removed mnesia?

        If so is there any impact in the upgrade process ?

        Show
        dipti Dipti Borkar added a comment - have you already removed mnesia? If so is there any impact in the upgrade process ?
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        The code was actually ready for 2.0.1 but sadly too late. So 2.0.2 got it early.

        Impact on upgrade process is simple. People will lose their stats archive. I.e. we don't bother converting stats from mnesia to new format. But note that rolling upgrade already causes them to lose historical stats.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - The code was actually ready for 2.0.1 but sadly too late. So 2.0.2 got it early. Impact on upgrade process is simple. People will lose their stats archive. I.e. we don't bother converting stats from mnesia to new format. But note that rolling upgrade already causes them to lose historical stats.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            farshid Farshid Ghods (Inactive)
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes