Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1630

sendMsgProcMon will return success when module ping fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 1.1.5
    • Icebox
    • ?
    • None

    Description

      sendMsgProcMon receives a string for module id and looks up an ip address from the config file then pings the ip address. If this check of the module fails currently it returns API_SUCCESS

      		if ( IPAddr == oam::UnassignedIpAddr ) {
      			log.writeLog(__LINE__, "sendMsgProcMon ping failure " + module + " " + IPAddr, LOG_TYPE_ERROR);
      			return oam::API_SUCCESS;
      		}
      	
      		string cmdLine = "ping ";
      		string cmdOption = " -c 1 -w 5 >> /dev/null";
      		string cmd = cmdLine + IPAddr + cmdOption;
      		if ( system(cmd.c_str()) != 0) {
      			//ping failure
      			log.writeLog(__LINE__, "sendMsgProcMon ping failure " + module + " " + IPAddr, LOG_TYPE_ERROR);
      			return oam::API_SUCCESS;
      		}
      

      Changing this could break in unknown places based on the return success not triggering the immediate failure of a module. So while changing this is simple could require significant testing to verify failures are handled properly

      Attachments

        Activity

          People

            Unassigned Unassigned
            ben.thompson Ben Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.