Skip to content
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

AutoJsonRpcServiceImplExporter not set parallelBatchProcessingTimeout to JsonServiceExporter #318

Open
anvt1 opened this issue Jul 18, 2023 · 1 comment

Comments

@anvt1
Copy link

anvt1 commented Jul 18, 2023

I'm using AutoJsonRpcServiceImplExporter to expose my service as rpc API, now I try to enable it runs in parallel, but It seems parallelBatchProcessingTimeout is not set to JsonServiceExporter via AutoJsonRpcServiceImplExporter configuration.
This my code:

@Bean
public AutoJsonRpcServiceImplExporter autoJsonRpcServiceImplExporter(HttpStatusCodeProvider httpStatusCodeProvider) {
AutoJsonRpcServiceImplExporter exporter = new AutoJsonRpcServiceImplExporter();

ThreadPoolTaskExecutor threadPoolTaskExecutor = new TaskExecutorBuilder()
	.corePoolSize(5)
	.maxPoolSize(15)
	.queueCapacity(50)
	.keepAlive(Duration.ofMillis(15000))
	.build();
threadPoolTaskExecutor.initialize();
exporter.setBatchExecutorService(threadPoolTaskExecutor.getThreadPoolExecutor());
exporter.setParallelBatchProcessingTimeout(10000);
return exporter;
}

Then I do debug but get parallelBatchProcessingTimeout is 0 in JsonRpcBasicServer#getSingleJsonResponse

If I configure wrong or It's a bug?
Thanks for any support.

@anvt1
Copy link
Author

anvt1 commented Jul 18, 2023

I had a look to AutoJsonRpcServiceImplExporter#registerServiceProxy, where we register a JsonServiceExporter bean, I don't see anything like builder.addPropertyValue("parallelBatchProcessingTimeout ", parallelBatchProcessingTimeout );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant