You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Dimitry Andric (JIRA)" <ji...@apache.org> on 2015/05/28 22:29:20 UTC

[jira] [Updated] (TS-3645) After TS-3033, some traffic_line commands result in "requested command failed"

     [ https://issues.apache.org/jira/browse/TS-3645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimitry Andric updated TS-3645:
-------------------------------
    Summary: After TS-3033, some traffic_line commands result in "requested command failed"  (was: After TS-3033, some traffic_line command result in "requested command failed")

> After TS-3033, some traffic_line commands result in "requested command failed"
> ------------------------------------------------------------------------------
>
>                 Key: TS-3645
>                 URL: https://issues.apache.org/jira/browse/TS-3645
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Management API
>            Reporter: Dimitry Andric
>
> I recently upgraded from trafficserver 4.x to 5.3.0, and one thing that I noticed was that certain traffic_line commands started printing "requested command failed". For example:
> {noformat}
> # trafficserver start
> Starting Apache Traffic Server:                            [  OK  ]
> # traffic_line --status
> Proxy -- on
> # traffic_line --shutdown
> error: the requested command failed: [11] Invalid parameters passed into function call.
> # traffic_line --startup
> error: the requested command failed: [11] Invalid parameters passed into function call.
> {noformat}
> Interestingly, even if the --shutdown command gives such an error message, the diags.log file still shows that the server has shut down:
> {noformat}
> [May 28 22:03:03.539] Server {0x2abe4251d700} NOTE: [ProcessManager::processEventQueue] Shutdown msg received, exiting
> {noformat}
> and the --status command also finds the same:
> {noformat}
> # traffic_line  --status
> Proxy -- off
> {noformat}
> Similar for the --startup command: though it gives the same error message, the command seems to have actually worked.
> I did some bisecting to find where this was introduced, and ended up at [commit 355c165|https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=commit;h=355c165] (TS-3033: fix PROXY_STATE_GET).  Before this particular commit, both {{traffic_line --shutdown}} and {{traffic_line --startup}} work without printing any error; after the commit, they both start printing "requested command failed".
> If I look at all the work done in TS-3033, and the particular change in [commit 355c165|https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=commit;h=355c165], I would guess that some parts of the code are disagreeing about the number of parameters for the PROXY_STATE_GET message.
> Alternatively, there may be some sort of issue in the management API and/or marshalling code, where a PROXY_STATE_GET message with two parameters gets "cut off" in some way, possibly because the server is just shutting down at that point?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)