We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
java-sdk:3.2.0、3.3.0版本(其他版本未实验)
现象: 在main方法中初始化client完成后,然后调用client的destroy方法,JVM并不能退出;
代码示例如下: public static void main(String[] args){ BcosSDK sdk = BcosSDK.build(configFile); Client client = sdk.getClient("group0"); client.destroy(); } 此时main方法无法结束,发现有线程在running中;
The text was updated successfully, but these errors were encountered:
查看cpp日志,发现client.destroy()后,仍在不停打印:[SDK][WS][STAT]connected nodes,count=1;;
Sorry, something went wrong.
感谢提出issue,应该是cpp sdk没有析构,我们会持续跟进这个问题。
此问题是在jni层中线程attach之后没有正常detach导致的,对应修改位于关联的FISCO-BCOS/bcos-c-sdk项目中
fix destruction problem of client
41b0de5
[issue]FISCO-BCOS/java-sdk#772
LucasLi1024
No branches or pull requests
java-sdk:3.2.0、3.3.0版本(其他版本未实验)
现象:
在main方法中初始化client完成后,然后调用client的destroy方法,JVM并不能退出;
代码示例如下:
public static void main(String[] args){
BcosSDK sdk = BcosSDK.build(configFile);
Client client = sdk.getClient("group0");
client.destroy();
}
此时main方法无法结束,发现有线程在running中;
The text was updated successfully, but these errors were encountered: