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

complie stuck #472

Open
frg01 opened this issue Feb 21, 2024 · 2 comments
Open

complie stuck #472

frg01 opened this issue Feb 21, 2024 · 2 comments

Comments

@frg01
Copy link

frg01 commented Feb 21, 2024

Compilation is in progress, and the thread pool created after tests is stuck.
I have been stuck on the bold part and cannot continue.
Could you please tell me the reason for this?

console output
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.128 sec
Running com.oltpbenchmark.benchmarks.auctionmark.util.TestItemId
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.oltpbenchmark.benchmarks.auctionmark.util.TestUserId
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running com.oltpbenchmark.benchmarks.auctionmark.util.TestUserIdGenerator
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec
Running com.oltpbenchmark.benchmarks.auctionmark.TestAuctionMarkLoader
[INFO ] 2024-02-21 09:52:05,815 [main]  com.oltpbenchmark.benchmarks.auctionmark.TestAuctionMarkLoader setUp - starting HSQLDB server for test [testLoadProfilePerClient] on port [9012]
**[INFO ] 2024-02-21 09:52:06,269 [main]  com.oltpbenchmark.util.ThreadUtil runLoaderThreads - Creating a Thread Pool with a size of 50 to run 20 Loader Threads.  0 threads will be queued.**
@apavlo
Copy link
Member

apavlo commented Feb 22, 2024

This is weird. I haven't seen it before. Can you replicate it on another machine / install? What version of Java are you using?

@frg01
Copy link
Author

frg01 commented Feb 22, 2024

This is weird. I haven't seen it before. Can you replicate it on another machine / install? What version of Java are you using?
i use java version of 21.

(

final int loaderThreadSize = loaderThreads.size();
int poolSize = Math.max(1, Math.min(maxConcurrent, loaderThreadSize));
)

I found the reason why the compilation failed. It was because I modified util/ThreadUtil.java.

    final int loaderThreadSize = loaderThreads.size();

    int poolSize = Math.max(1, Math.min(maxConcurrent, loaderThreadSize));

change:

    final int loaderThreadSize = 20;//loaderThreads.size();

    int poolSize = Math.max(50, Math.min(maxConcurrent, loaderThreadSize));

My programming skills are limited, and I would like to ask you why the compilation fails by doing this. Hope you can guide me.

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

2 participants