提交 617bbb53 编写于 作者: R Raihaan Shouhell 提交者: Oleg Nenashev

Update the minimum required Remoting version to 3.14 (#4208)

* Let remoting handle missing channels

* Bump minimum remoting version to 3.14
上级 16145cca
...@@ -1327,11 +1327,7 @@ public abstract class Launcher { ...@@ -1327,11 +1327,7 @@ public abstract class Launcher {
Channel taskChannel = null; Channel taskChannel = null;
try { try {
// Sync IO will fail automatically if the channel is being closed, no need to use getOpenChannelOrFail() // Sync IO will fail automatically if the channel is being closed, no need to use getOpenChannelOrFail()
// TODOL Replace by Channel#currentOrFail() when Remoting version allows taskChannel = Channel.currentOrFail();
taskChannel = Channel.current();
if (taskChannel == null) {
throw new IOException("No Remoting channel associated with this thread");
}
taskChannel.syncIO(); taskChannel.syncIO();
} catch (Throwable t) { } catch (Throwable t) {
// this includes a failure to sync, agent.jar too old, etc // this includes a failure to sync, agent.jar too old, etc
......
...@@ -105,7 +105,7 @@ THE SOFTWARE. ...@@ -105,7 +105,7 @@ THE SOFTWARE.
<!-- Bundled Remoting version --> <!-- Bundled Remoting version -->
<remoting.version>3.35</remoting.version> <remoting.version>3.35</remoting.version>
<!-- Minimum Remoting version, which is tested for API compatibility --> <!-- Minimum Remoting version, which is tested for API compatibility -->
<remoting.minimum.supported.version>3.4</remoting.minimum.supported.version> <remoting.minimum.supported.version>3.14</remoting.minimum.supported.version>
<!-- TODO: JENKINS-36716 - Switch to Medium once FindBugs is cleaned up, 430 issues on Mar 10, 2018 --> <!-- TODO: JENKINS-36716 - Switch to Medium once FindBugs is cleaned up, 430 issues on Mar 10, 2018 -->
<findbugs.effort>Max</findbugs.effort> <findbugs.effort>Max</findbugs.effort>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册