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/11/07 07:24:35 UTC

[GitHub] [dubbo] zrlw opened a new issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   
   ### Environment
   
   * Dubbo version: 3.0
   * Operating System version: win7
   
   自从测试使用全局ZK注册中心之后,github构建有时失败,而我本地win7单元测试SpringAnnotationBeanTest和SpringXmlConfigTest就没有成功过。
   1. 从下载的zk执行过程中缺少jar包:
   ```
   java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyInputStream
   	at org.apache.zookeeper.server.persistence.Util.makeSnapshotName(Util.java:97)
   	at org.apache.zookeeper.server.persistence.FileTxnSnapLog.save(FileTxnSnapLog.java:469)
   	at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:291)
   	at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:285)
   	at org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:484)
   	at org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.java:655)
   	at org.apache.zookeeper.server.NIOServerCnxnFactory.startup(NIOServerCnxnFactory.java:758)
   	at org.apache.zookeeper.server.ServerCnxnFactory.startup(ServerCnxnFactory.java:130)
   	at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:159)
   	at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:112)
   	at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:67)
   	at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:140)
   	at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)
   Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.SnappyInputStream
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   ```
   2. 下载zk的过程没有考虑mvn test并行测试,同时下载的文件是解不开的,同时下载半途失败后会一直使用这个解不开的文件,也没有考虑下载文件意外损坏的情况。
   3. 众所周知的原因,下载的速度奇慢无比,花费几分钟时间等待是否合适,对于封闭无互联网环境,还要自己debug跟踪确认需要拷贝进来的文件版本,很不方便。
   
   建议:
   直接把使用的zk及执行过程中依赖的文件放到dubbo测试目录,pull的时候直接下载到本地。


-- 
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] pinxiong commented on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   @kylixs @zrlw I tried to solve this issue, you can see #9274 
   
   Hope to get more suggestions.


-- 
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 closed issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

Posted by GitBox <gi...@apache.org>.
zrlw closed issue #9227:
URL: https://github.com/apache/dubbo/issues/9227


   


-- 
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 #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   > @kylixs @zrlw I tried to solve this issue, you can see #9274
   > 
   > Hope to get more suggestions.
   
   windows本机测试SpringAnnotationBeanTest和SpringXmlConfigTest已成功。


-- 
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] kylixs edited a comment on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   I think that `apache-zookeeper-bin.zip` should not be submitted to the dubbo repo to avoid submitting larger binary files to increase the size of the git submission history.   
   The zookeeper version may need to be updated, and there may be other registration centers in the future, such as nacos, which cannot all be placed in the git repository. 
   What about to cache to a directory in the dubbo project,  such as `mvnw`?


-- 
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] pinxiong commented on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   Thanks for your feedback, I'll fix this issue!


-- 
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] kylixs commented on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   @pinxiong You can improve the download processing:
   First download to a temporary file, if successful, rename/move to the official file name, if it fails, download again next time.


-- 
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] kylixs commented on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   User can download it manually from  [https://zookeeper.apache.org/releases.html#download](https://zookeeper.apache.org/releases.html#download), and copy it to dubbo project.


-- 
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] kylixs commented on issue #9227: [3.0] Zookeeper全局测试注册中心存在的问题

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


   I think that `apache-zookeeper-bin.zip` should not be submitted to the dubbo warehouse to avoid submitting larger binary files to increase the size of the git submission history.   
   The zookeeper version may need to be updated, and there may be other registration centers in the future, such as nacos, which cannot all be placed in the git repository. 
   What about to cache to a directory in the dubbo project,  such as `mvnw`?


-- 
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