morningman opened a new issue #323: util/core_local_test.cpp run failed URL: https://github.com/apache/incubator-doris/issues/323 **Describe the bug** `TEST_F(CoreLocalTest, CoreLocalValueNormal)` failed at `ASSERT_EQ(10000 + std::thread::hardware_concurrency(), sum);` **To Reproduce** if `std::thread::hardware_concurrency()` is not the power of 2 or is less than 8, this unit test will be failed. The reason is that `CoreLocalValueController` calculate the allocator size using: ``` int num_cpus = static_cast<int>(std::thread::hardware_concurrency()); _size = 8; while (_size < num_cpus) { _size << 1; } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
