-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-22853] - Be robust against delayed EOF command when unexporting streams #97
[JENKINS-22853] - Be robust against delayed EOF command when unexporting streams #97
Conversation
…like other streams do)
…ectId and Execution issues
…mand check passes
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
PR Builder fails with "[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: Invalid object ID 7 iota=14", lol . Just another issue to tackle |
* Exception for Invalid object processing in {@link ExportTable} | ||
* @author Oleg Nenashev | ||
*/ | ||
public class InvalidObjectIdException extends ExecutionException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use RemotingSystemException, but it's Runtime one
🐝 |
I'll likely have to replace InvalidObjectIdException by just ExecutionException. I nest the exception in particular cases, and it gets serialized over the channel from agent to master. Classloading in this direction does not work, hence we get a ClassNotFound exception if agent remoting version is greater than the core's one Self-:bug: |
…erialized back to Jenkins masters with older remoting version
@stephenc need re-bee |
🐝 |
@reviewbybees done |
Changes are listed below: Fixed issues: * [JENKINS-22853](https://issues.jenkins-ci.org/browse/JENKINS-22853) - Be robust against the delayed EOF command when unexporting input and output streams. (jenkinsci/remoting#97) * Fixed ~20 minor issues reported by FindBugs. More fixes to be delivered in future versions. (jenkinsci/remoting#96) Enhancements: * [JENKINS-37218](https://issues.jenkins-ci.org/browse/JENKINS-37218) - Performance: <code>ClassFilter</code> does not use Regular Expressions anymore to match <code>String.startsWith</code> patterns. (jenkinsci/remoting#92) * [JENKINS-37031](https://issues.jenkins-ci.org/browse/JENKINS-37031) <code>TcpSlaveAgentListener</code> now publishes a list of supported agent protocols to speed up connection setup. (jenkinsci/remoting#93)
(Cherry Pick of 06be933) Changes are listed below: Fixed issues: * [JENKINS-22853](https://issues.jenkins-ci.org/browse/JENKINS-22853) - Be robust against the delayed EOF command when unexporting input and output streams. (jenkinsci/remoting#97) * Fixed ~20 minor issues reported by FindBugs. More fixes to be delivered in future versions. (jenkinsci/remoting#96) Enhancements: * [JENKINS-37218](https://issues.jenkins-ci.org/browse/JENKINS-37218) - Performance: <code>ClassFilter</code> does not use Regular Expressions anymore to match <code>String.startsWith</code> patterns. (jenkinsci/remoting#92) * [JENKINS-37031](https://issues.jenkins-ci.org/browse/JENKINS-37031) <code>TcpSlaveAgentListener</code> now publishes a list of supported agent protocols to speed up connection setup. (jenkinsci/remoting#93)
In particular cases the objects can be unexported before the EOF command arrives from another channel side. In my case it happens, because
UserRequest#releaseExports
already does it. In such case remoting prints horrible exceptions to the log. So we actually want not to unexport items in EOF Command if we're late.Changes:
ExportTable
https://issues.jenkins-ci.org/browse/JENKINS-22853
@reviewbybees (esp. @stephenc)