You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/22 02:49:29 UTC

[GitHub] [dubbo] zrlw opened a new issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

zrlw opened a new issue #8868:
URL: https://github.com/apache/dubbo/issues/8868


   ### Environment
   
   * Dubbo version:  3.0 / master
   
   比如 https://github.com/apache/dubbo/runs/3665650264?check_suite_focus=true 
   ```
   Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project dubbo-common: Unable to generate classpath: org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact org.opentest4j:opentest4j:jar:1.1.1 from/to central (https://repo.maven.apache.org/maven2): Entry [id:2457][route:{s}->https://repo.maven.apache.org:443][state:null] has not been leased from this pool
   ```
   1. 看了一下workflow,发现windows构建有设置maven.wagon.http.pool=false,但是这个选项是wagon http2.0才支持的,dubbo-parent的pom.xml里面配置的maven-surefire-plugin版本是2.22.2,这个版本引用的wagon http版本是1.0-beta-6,所以配了maven.wagon.http.pool也没有效果。
   2. 搜了一下Could not transfer artifact ... has not been leased from this pool,其他开源软件也有出现,比如Pulsar,Flink,有篇帖子说问题在于wagon http使用的HttpClient组件版本太老,有HTTPCLIENT-1453线程安全缺陷(https://issues.apache.org/jira/plugins/servlet/mobile#issue/HTTPCLIENT-1453),解决办法要么把maven-surefire-plugin版本换成3.0.x,不用wagon了(升大版本存在兼容风险),要么把wagon http升到最新的3.4.3(使用了没有上述缺陷的新版HttpClient)。
   
   下面这个帖子讨论的很详细,很长,我还没看完,里面有句```The Alibaba machines are probably running in a somewhat unstable network environment```,感觉是阿里的同学或者和阿里的客户。
   https://issues.apache.org/jira/browse/FLINK-16947?focusedCommentId=17285028&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17285028


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924763052


   我看workflow里有配置maven.wagon.http.retryHandler.count这个参数,但是这个参数是3.2版本的wagon http才有的,实际上workflow配置的maven.wagon.http.*参数全部都是无效的,因为maven-surefire-plugin 2.22.2引用的wagon http是1.x,这些参数从2.0才开始有。
   相关参数对应的版本介绍:https://maven.apache.org/wagon/wagon-providers/wagon-http/
   也可以从github下载在本地搜搜: https://github.com/apache/maven-wagon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924696003


   网络的目前 GitHub Actions 是使用的 Microsoft Azure 的环境,会有连接数问题,这个在 GitHub 社区有过讨论,Azure 是用的 nat 连接的,如果同时跑得容器太多会超过上游限制,最终结论就是加上重试。升级 maven-surefire-plugin 这个的理论上风险是可控的,这个插件不会直接影响我们打的 release 版本。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924763052


   我看workflow里有配置maven.wagon.http.retryHandler.count这个参数,但是这个参数是3.2版本的wagon http才有的,实际上workflow配置的maven.wagon.http.*参数全部都是无效的,因为maven-surefire-plugin 2.22.2引用的wagon http是1.x,这些参数从2.0才开始有。
   相关参数对应的版本介绍:https://maven.apache.org/wagon/wagon-providers/wagon-http/
   也可以从github下载下列慢慢找: https://github.com/apache/maven-wagon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924763052


   我看workflow里有配置maven.wagon.http.retryHandler.count这个参数,但是这个参数是3.2版本的wagon http才有的,实际上workflow配置的maven.wagon.*参数全部都是无效的,因为maven-surefire-plugin 2.22.2引用的wagon http是1.x,这些参数从2.0才开始有。
   相关参数对应的版本介绍:https://maven.apache.org/wagon/wagon-providers/wagon-http/
   也可以从github下载在本地搜搜: https://github.com/apache/maven-wagon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924763052


   我看workflow里有配置maven.wagon.http.retryHandler.count这个参数,但是这个参数是3.2版本的wagon http才有的,实际上workflow配置的很多wagon参数都是无效的,因为使用的maven-surefire-plugin 2.22.2引用的wagon http是1.x。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #8868: github构建有时抛ArtifactResolutionException: Could not transfer artifact xxx has not been leased from this pool

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #8868:
URL: https://github.com/apache/dubbo/issues/8868#issuecomment-924763052


   我看workflow里有配置maven.wagon.http.retryHandler.count这个参数,但是这个参数是3.2版本的wagon http才有的,实际上workflow配置的maven.wagon.*参数全部都是无效的,因为maven-surefire-plugin 2.22.2引用的wagon http是1.x,这些参数从2.0版本才开始陆续添加的。
   相关参数对应的版本介绍:https://maven.apache.org/wagon/wagon-providers/wagon-http/
   也可以从github下载在本地搜搜: https://github.com/apache/maven-wagon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org