-
Notifications
You must be signed in to change notification settings - Fork 141
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
修复了python3.8及以上版本非windows系统不能监听配置的BUG #125
base: master
Are you sure you want to change the base?
Conversation
…mulitprocessing库的RLock. 同时,把callback_tread_pool和process_mgr标记为transient,因为没有序列化的必要)
…,RLock改用mulitprocessing库的RLock. 同时,把callback_tread_pool和process_mgr标记为transient,因为没有序列化的必要)" This reverts commit 05e30aa.
在非windows环境改用mp库中的RLock,同时将不需要序列话的process_mgr和callback_tread_pool标记为transient FIX TO ISSUE nacos-group#124
@runzhi214 用这个方式改了,似乎可以 ,我是MacOs的系统,但是报了一个新的错误,能辛苦解答下吗 Can't pickle local object 'MyTestCase.test_add_config_watch..test_cb' |
…t_list_naming_instance_online需要配合本地服务(实际已经成功) FIX TO ISSUE nacos-group#124 Info to nacos-group#125
这个问题是由于test_client.py中使用了nested class和nested function导致的(因为pickle不允许),把他们重命名并放在测试类外部就可以通过了. 本地全部通过。其中,test_list_naming_instance_online这个测试方法需要单独测试,因为没有发送heartbeat的方法会马上死掉,在心跳结束之前可以看到测试通过。
|
python一旦涉及到pickling和multiprocessing移植性就变得很差啊。。。 |
|
修复了ISSUE:#124
BUG在于:python3.8,3.9,3.10中,