Skip to content

Commit

Permalink
[JENKINS-19004] set name for remoting threads
Browse files Browse the repository at this point in the history
  • Loading branch information
kutzi committed Aug 3, 2013
1 parent a567306 commit ae3ed91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/remoting/Request.java
Expand Up @@ -315,6 +315,8 @@ private int calcLastIoId() {
}

public void run() {
String oldThreadName = Thread.currentThread().getName();
Thread.currentThread().setName(oldThreadName+" for "+channel.getName());
try {
Command rsp;
CURRENT.set(Request.this);
Expand Down Expand Up @@ -345,6 +347,7 @@ public void run() {
logger.log(Level.SEVERE, "Failed to send back a reply",e);
} finally {
channel.executingCalls.remove(id);
Thread.currentThread().setName(oldThreadName);
}
}
});
Expand Down

2 comments on commit ae3ed91

@buildhive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jenkins » remoting #114 UNSTABLE
Looks like this commit caused a build failure
(what's this?)

@kutzi
Copy link
Member Author

@kutzi kutzi commented on ae3ed91 Aug 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot imagine how this should be related to the test failure

Please sign in to comment.