Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-733

MaxScale `list sessions` can report "Invalid State" for some sessions.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.4.3
    • 2.0.0
    • Core
    • None

    Description

      MaxScale command `list sessions` can report "Invalid State" which looking at the source code is a catch-all non-state:

         case SESSION_STATE_ALLOC:
              return "Session Allocated";
          case SESSION_STATE_DUMMY:
              return "Dummy Session";
          case SESSION_STATE_READY:
              return "Session Ready";
          case SESSION_STATE_ROUTER_READY:
              return "Session ready for routing";
          case SESSION_STATE_LISTENER:
              return "Listener Session";
          case SESSION_STATE_LISTENER_STOPPED:
              return "Stopped Listener Session";
      #ifdef SS_DEBUG
          case SESSION_STATE_STOPPING:
              return "Stopping session";
          case SESSION_STATE_TO_BE_FREED:
              return "Session to be freed";
          case SESSION_STATE_FREE:
              return "Freed session";
      #endif
          default:
              return "Invalid State";
      

      I think sessions should always have a meaningful state.

      Attachments

        Activity

          People

            markus makela markus makela
            claudio.nanni Claudio Nanni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.