[jira] [Comment Edited] (FLINK-16947) ArtifactResolutionException: Could not transfer artifact. Entry [...] has not been leased from this pool

2021-02-15 Thread Lari Hotari (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-16947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285028#comment-17285028
 ] 

Lari Hotari edited comment on FLINK-16947 at 2/16/21, 4:38 AM:
---

I came across a similar issue in Apache Pulsar's build. The bug causing the 
failures where the error message is "Could not transfer artifact 
groupId:artifactId:1.2.3 from/to central ([https://repo1.maven.org/maven2]): 
Entry [id:1280][route:\\{s}->https://repo1.maven.org:443][state:null] has not 
been leased from this pool" is HTTPCORE-634 . It has been fixed in HttpCore 
4.4.14 . This fix isn't in a released version of Maven or the Maven Wagon Http 
library. I have created a PR [https://github.com/apache/maven-wagon/pull/76] to 
get the changes first in Maven Wagon.

The immediate workaround is to replace the existing 
MAVEN_HOME/lib/wagon-http-*-shaded.jar file with 
[https://jitpack.io/com/github/lhotari/maven-wagon/wagon-http/5ff79d284/wagon-http-5ff79d284-shaded.jar]
 (compiled version of maven-wagon PR 76). This seems to work at least in Maven 
3.6.3 .

Simple bash script to replace the Maven built-in wagon-http version with the 
patched one: 
{code:java}
#!/bin/bash
MAVEN_HOME=$(mvn -v |grep 'Maven home:' | awk '{ print $3 }')
if [ -d "$MAVEN_HOME" ]; then
  cd "$MAVEN_HOME/lib"
  rm wagon-http-*-shaded.jar
  curl -O 
https://jitpack.io/com/github/lhotari/maven-wagon/wagon-http/5ff79d284/wagon-http-5ff79d284-shaded.jar
fi {code}
I also tried to use the build / extensions / extension element to override the 
built-in wagon-http version, but in my quick experiment that didn't seem to 
work.

I hope this helps!
 


was (Author: lhotari):
I came across a similar issue in Apache Pulsar's build. The bug causing the 
failures where the error message is "Could not transfer artifact 
groupId:artifactId:1.2.3 from/to central ([https://repo1.maven.org/maven2]): 
Entry [id:1280][route:\{s}->https://repo1.maven.org:443][state:null] has not 
been leased from this pool" is HTTPCORE-634 . It has been fixed in HttpCore 
4.4.14 . This fix isn't in a released version of Maven or the Maven Wagon Http 
library. I have created a PR [https://github.com/apache/maven-wagon/pull/76] to 
get the changes first in Maven Wagon.

The immediate workaround is to replace the existing 
MAVEN_HOME/lib/wagon-http-*-shaded.jar file with 
[https://jitpack.io/com/github/lhotari/maven-wagon/wagon-http/5ff79d284/wagon-http-5ff79d284-shaded.jar]
 (compiled version of maven-wagon PR 76). This seems to work at least in Maven 
3.6.3 .

Simple bash script to replace the Maven built-in wagon-http version with the 
patched one: 
{code:java}
#!/bin/bash
MAVEN_HOME=$(mvn -v |grep 'Maven home:' | awk '{ print $3 }')
if [ -d "$MAVEN_HOME" ]; then
  cd "$MAVEN_HOME/lib"
  rm wagon-http-*-shaded.jar
  curl -O 
https://jitpack.io/com/github/lhotari/maven-wagon/wagon-http/5ff79d284/wagon-http-5ff79d284-shaded.jar
fi {code}
I also tried to use the build / extensions / extension tag to override the 
built-in wagon-http version, but in my quick experiment that didn't seem to 
work.

I hope this helps!

> ArtifactResolutionException: Could not transfer artifact.  Entry [...] has 
> not been leased from this pool
> -
>
> Key: FLINK-16947
> URL: https://issues.apache.org/jira/browse/FLINK-16947
> Project: Flink
>  Issue Type: Bug
>  Components: Build System / Azure Pipelines
>Reporter: Piotr Nowojski
>Priority: Critical
>  Labels: test-stability
>
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6982&view=logs&j=c88eea3b-64a0-564d-0031-9fdcd7b8abee&t=1e2bbe5b-4657-50be-1f07-d84bfce5b1f5
> Build of flink-metrics-availability-test failed with:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (end-to-end-tests) 
> on project flink-metrics-availability-test: Unable to generate classpath: 
> org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
> transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 
> from/to google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/): Entry 
> [id:13][route:{s}->https://maven-central-eu.storage-download.googleapis.com:443][state:null]
>  has not been leased from this pool
> [ERROR] org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR] google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/, 
> releases=true, snapshots=false),
> [ERROR] apache.snapshots (https://repository.apache.org/snapshots, 
> releases=false, snapshots=true)
> [ERROR] Path to dependency:
> [ERROR] 1) dummy:dummy:jar:1.0
>

[jira] [Comment Edited] (FLINK-16947) ArtifactResolutionException: Could not transfer artifact. Entry [...] has not been leased from this pool

2020-05-05 Thread Robert Metzger (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-16947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17099571#comment-17099571
 ] 

Robert Metzger edited comment on FLINK-16947 at 5/5/20, 9:42 AM:
-

We are getting an exception relating to connection pooling, even though we pass 
{{-Dmaven.wagon.http.pool=false}} to Maven. I have launched 12 builds 
overnight, with that flag removed. 

**{{-Dmaven.wagon.http.pool=false}} REMOVED:**
Out of the 132 jobs, I had the following issues:
- 2x "Read timed out"
- 4x "Premature end of Content-Length delimited message body"
- 1x unrelated: "MVN exited with EXIT CODE: 143." 

**{{-Dmaven.wagon.http.pool=false}} SET:**
Out of the 132 jobs, I had the following issues:
- 3x "Premature end of Content-Length delimited message body"
- 2x "has not been leased from this pool"
- 16x unrelated: "MVN exited with EXIT CODE: 143." (while having BUILD SUCCESS)
- 1x unrelated 
"ZooKeeperHighAvailabilityITCase#testRestoreBehaviourWithFaultyStateHandles"


I'm going to run 132 jobs with {{-Dmaven.wagon.http.pool=false}} set (our 
normal build), and I'm going to run 132 jobs with {{-Dhttp.keepAlive=false}}.


was (Author: rmetzger):
We are getting an exception relating to connection pooling, even though we pass 
{{-Dmaven.wagon.http.pool=false}} to Maven. I have launched 12 builds 
overnight, with that flag removed. Out of the 132 jobs, I had the following 
issues:
- 2x "Read timed out"
- 4x "Premature end of Content-Length delimited message body"
- 1x "MVN exited with EXIT CODE: 143." (probably not network related)

I'm going to run 132 jobs with {{-Dmaven.wagon.http.pool=false}} set (our 
normal build), and I'm going to run 132 jobs with {{-Dhttp.keepAlive=false}}.

> ArtifactResolutionException: Could not transfer artifact.  Entry [...] has 
> not been leased from this pool
> -
>
> Key: FLINK-16947
> URL: https://issues.apache.org/jira/browse/FLINK-16947
> Project: Flink
>  Issue Type: Bug
>  Components: Build System / Azure Pipelines
>Reporter: Piotr Nowojski
>Assignee: Robert Metzger
>Priority: Blocker
>  Labels: test-stability
> Fix For: 1.11.0
>
>
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6982&view=logs&j=c88eea3b-64a0-564d-0031-9fdcd7b8abee&t=1e2bbe5b-4657-50be-1f07-d84bfce5b1f5
> Build of flink-metrics-availability-test failed with:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (end-to-end-tests) 
> on project flink-metrics-availability-test: Unable to generate classpath: 
> org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
> transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 
> from/to google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/): Entry 
> [id:13][route:{s}->https://maven-central-eu.storage-download.googleapis.com:443][state:null]
>  has not been leased from this pool
> [ERROR] org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR] google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/, 
> releases=true, snapshots=false),
> [ERROR] apache.snapshots (https://repository.apache.org/snapshots, 
> releases=false, snapshots=true)
> [ERROR] Path to dependency:
> [ERROR] 1) dummy:dummy:jar:1.0
> [ERROR] 2) org.apache.maven.surefire:surefire-junit47:jar:2.22.1
> [ERROR] 3) org.apache.maven.surefire:common-junit48:jar:2.22.1
> [ERROR] 4) org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn  -rf :flink-metrics-availability-test
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (FLINK-16947) ArtifactResolutionException: Could not transfer artifact. Entry [...] has not been leased from this pool

2020-05-04 Thread Robert Metzger (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-16947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17099553#comment-17099553
 ] 

Robert Metzger edited comment on FLINK-16947 at 5/5/20, 6:10 AM:
-

https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=585&view=logs&j=ce8f3cc3-c1ea-5281-f5eb-df9ebd24947f&t=d4549d78-6fab-5c0c-bdb9-abaafb66ea8b
https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=585&view=logs&j=ac1ca734-b7f5-591e-e57d-c64fab7b62ae&t=809b7cd3-8495-55cd-c799-281d673c530f


was (Author: rmetzger):
https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=585&view=logs&j=ce8f3cc3-c1ea-5281-f5eb-df9ebd24947f&t=d4549d78-6fab-5c0c-bdb9-abaafb66ea8b

> ArtifactResolutionException: Could not transfer artifact.  Entry [...] has 
> not been leased from this pool
> -
>
> Key: FLINK-16947
> URL: https://issues.apache.org/jira/browse/FLINK-16947
> Project: Flink
>  Issue Type: Bug
>  Components: Build System / Azure Pipelines
>Reporter: Piotr Nowojski
>Assignee: Robert Metzger
>Priority: Blocker
>  Labels: test-stability
> Fix For: 1.11.0
>
>
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6982&view=logs&j=c88eea3b-64a0-564d-0031-9fdcd7b8abee&t=1e2bbe5b-4657-50be-1f07-d84bfce5b1f5
> Build of flink-metrics-availability-test failed with:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (end-to-end-tests) 
> on project flink-metrics-availability-test: Unable to generate classpath: 
> org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
> transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 
> from/to google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/): Entry 
> [id:13][route:{s}->https://maven-central-eu.storage-download.googleapis.com:443][state:null]
>  has not been leased from this pool
> [ERROR] org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR] google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/, 
> releases=true, snapshots=false),
> [ERROR] apache.snapshots (https://repository.apache.org/snapshots, 
> releases=false, snapshots=true)
> [ERROR] Path to dependency:
> [ERROR] 1) dummy:dummy:jar:1.0
> [ERROR] 2) org.apache.maven.surefire:surefire-junit47:jar:2.22.1
> [ERROR] 3) org.apache.maven.surefire:common-junit48:jar:2.22.1
> [ERROR] 4) org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn  -rf :flink-metrics-availability-test
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (FLINK-16947) ArtifactResolutionException: Could not transfer artifact. Entry [...] has not been leased from this pool

2020-04-19 Thread Robert Metzger (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-16947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087378#comment-17087378
 ] 

Robert Metzger edited comment on FLINK-16947 at 4/20/20, 5:44 AM:
--

This also happens with the maven mirror in the same data center:
"[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on 
project flink-metrics-core: Unable to generate classpath: 
org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 from/to 
alicloud-mvn-mirror 
(http://mavenmirror.alicloud.dak8s.net:/repository/maven-central/): Entry 
[id:11][route:{}->http://mavenmirror.alicloud.dak8s.net:][state:null] has 
not been leased from this pool"

It is probably a bug in the http wagon connector in maven.

https://dev.azure.com/rmetzger/Flink/_build/results?buildId=7739&view=logs&j=8f07b2a4-809b-5b4b-72cb-057a2a4800e5&t=94d9ac6d-1d28-5d1b-a2e7-5d8447626b00
https://dev.azure.com/rmetzger/Flink/_build/results?buildId=7739&view=logs&j=ac1ca734-b7f5-591e-e57d-c64fab7b62ae&t=809b7cd3-8495-55cd-c799-281d673c530f


was (Author: rmetzger):
This also happens with the maven mirror in the same data center:
"[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on 
project flink-metrics-core: Unable to generate classpath: 
org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 from/to 
alicloud-mvn-mirror 
(http://mavenmirror.alicloud.dak8s.net:/repository/maven-central/): Entry 
[id:11][route:{}->http://mavenmirror.alicloud.dak8s.net:][state:null] has 
not been leased from this pool"

It is probably a bug in the http wagon connector in maven.

https://dev.azure.com/rmetzger/Flink/_build/results?buildId=7739&view=logs&j=8f07b2a4-809b-5b4b-72cb-057a2a4800e5&t=94d9ac6d-1d28-5d1b-a2e7-5d8447626b00

> ArtifactResolutionException: Could not transfer artifact.  Entry [...] has 
> not been leased from this pool
> -
>
> Key: FLINK-16947
> URL: https://issues.apache.org/jira/browse/FLINK-16947
> Project: Flink
>  Issue Type: Bug
>  Components: Build System / Azure Pipelines
>Reporter: Piotr Nowojski
>Priority: Critical
>  Labels: test-stability
> Fix For: 1.11.0
>
>
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6982&view=logs&j=c88eea3b-64a0-564d-0031-9fdcd7b8abee&t=1e2bbe5b-4657-50be-1f07-d84bfce5b1f5
> Build of flink-metrics-availability-test failed with:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (end-to-end-tests) 
> on project flink-metrics-availability-test: Unable to generate classpath: 
> org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
> transfer artifact org.apache.maven.surefire:surefire-grouper:jar:2.22.1 
> from/to google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/): Entry 
> [id:13][route:{s}->https://maven-central-eu.storage-download.googleapis.com:443][state:null]
>  has not been leased from this pool
> [ERROR] org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR] google-maven-central 
> (https://maven-central-eu.storage-download.googleapis.com/maven2/, 
> releases=true, snapshots=false),
> [ERROR] apache.snapshots (https://repository.apache.org/snapshots, 
> releases=false, snapshots=true)
> [ERROR] Path to dependency:
> [ERROR] 1) dummy:dummy:jar:1.0
> [ERROR] 2) org.apache.maven.surefire:surefire-junit47:jar:2.22.1
> [ERROR] 3) org.apache.maven.surefire:common-junit48:jar:2.22.1
> [ERROR] 4) org.apache.maven.surefire:surefire-grouper:jar:2.22.1
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn  -rf :flink-metrics-availability-test
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)