Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Jun 1, 2018

JENKINS-50597 continuing from #41.

Using jenkinsci/apache-httpcomponents-client-4-api-plugin#9:

  • errors/hangs/interruption from unarchive
  • errors/hangs/interruption from copyartifact

@jglick jglick requested review from carlossg and kuisathaverat June 1, 2018 22:07
jglick added 2 commits June 1, 2018 18:52
…al and remote loggers. Evidently StreamTaskListener does not guarantee line-level interleaving.
@jglick
Copy link
Member Author

jglick commented Jun 4, 2018

Hmm, errors look random, and I cannot reproduce locally, though I have seen something locally when not using a clean build. This suggests that it is specific to Guice 3; google/guice#1119 is unclear. See JENKINS-50520.

new FilePath(f).untarFrom(is, FilePath.TarCompression.GZIP);
// Note that this API currently offers no count of files in the tarball we could report.
}
client.connect("download", "download " + url.toString().replaceFirst("[?].+$", "?…") + " into " + f, c -> c.execute(new HttpGet(url.toString())), response -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

vs ... ?
should replace passwords in http://user:password@...
wouldn't be easier to parse into Url and pick the sections needed rather than regex?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, forgot to use sanitize here!

Date lastModified = sm.getLastModified();
saved.put(sm.getName().substring(prefixLength), new CachedMetadata(length, lastModified != null ? lastModified.getTime() : 0));
try {
Iterator<StorageMetadata> it = listStorageMetadata(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

why Iterator instead of Stream? curious

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted direct handling over exceptions, which is awkward using the Stream API.

@carlossg carlossg merged commit 0a012ef into master Jun 7, 2018
@carlossg carlossg deleted the network-JENKINS-50597 branch June 7, 2018 06:28
@jglick
Copy link
Member Author

jglick commented Jun 7, 2018

The upstream is still unmerged and needs a review.

@jglick jglick mentioned this pull request Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants