Skip to content

Commit

Permalink
Merge pull request #768 from tmmi/sysout_and_syserr_in_debug
Browse files Browse the repository at this point in the history
Show stderr and stdout links on debug tab under Mesos details
  • Loading branch information
aldipower committed Jul 25, 2016
2 parents aebf590 + 7f24971 commit a954d83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/js/components/AppDebugInfoComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import AppsActions from "../actions/AppsActions";
import AppsEvents from "../events/AppsEvents";
import AppTaskStatsListComponent from "../components/AppTaskStatsListComponent";
import TaskMesosUrlComponent from "../components/TaskMesosUrlComponent";
import TaskFileDownloadComponent from "../components/TaskFileDownloadComponent";
import UnspecifiedNodeComponent from "../components/UnspecifiedNodeComponent";

function invalidateValue(value, suffix) {
Expand Down Expand Up @@ -89,7 +90,10 @@ var AppDebugInfoComponent = React.createClass({
<span>{version}</span> ({new Moment(version).fromNow()})
</dd>
<dt>Mesos details</dt>
<dd><TaskMesosUrlComponent task={lastTaskFailure}/></dd>
<dd><TaskMesosUrlComponent task={lastTaskFailure}/>
<TaskFileDownloadComponent task={lastTaskFailure} fileName="stderr" />
<TaskFileDownloadComponent task={lastTaskFailure} fileName="stdout" />
</dd>
</dl>
);
},
Expand Down
4 changes: 3 additions & 1 deletion src/js/stores/MesosStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ function getExecutorDirectoryFromState(frameworkId, taskId, state) {

if (framework.executors != null) {
executor = framework.executors.find(matchExecutor);
} else if (framework.completed_executors != null) {
}

if (framework.completed_executors != null && executor == null) {
executor = framework.completed_executors.find(matchExecutor);
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/units/AppDebugInfoComponent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("App debug info component", function () {
var host = nodes.at(3).text().trim();
var timestamp = nodes.at(4).find("span").text().trim();
var version = nodes.at(5).find("span").text().trim();
var details = nodes.at(6).find("a").props().href;
var details = nodes.at(6).find("a").at(0).props().href;

expect(taskId)
.to.equal("python.83c0a69b-256a-11e5-aaed-fa163eaaa6b7");
Expand Down

0 comments on commit a954d83

Please sign in to comment.