frocksdb icon indicating copy to clipboard operation
frocksdb copied to clipboard

[hotfix] fix log file create failed caused by name too long

Open zoltar9264 opened this issue 1 year ago • 6 comments

Fix log file create failed caused by name too long by keeping only the last 255 characters , discuss in FLINK-31743 .

zoltar9264 avatar May 09 '23 03:05 zoltar9264

Hi @Myasuka , can you help me review this pr ?

zoltar9264 avatar May 09 '23 15:05 zoltar9264

did you ever enable to run CI tests on circle?

Hi @Myasuka, I have not modified the configuration of circleCI. It seems that 32(23+9) tests have been executed, and the newst RocksDB have 39 tests, which test do you mean is not executed?

image

fredia avatar May 22 '23 12:05 fredia

@fredia Thanks for the clarification, I thought you disable some tests to save the billing on circle before.

I think this code change is trivial, @zoltar9264 could you check why so many tests failed after refactoring.

Myasuka avatar May 22 '23 13:05 Myasuka

Sorry for the late reply @Myasuka , I check the change and find the problem: size_t is unsigned, and "path.length() - (file_name_length_limit - sizeof(suffix))" will never be negative.

I added type cast.

zoltar9264 avatar Jun 01 '23 12:06 zoltar9264

Thanks to @Myasuka for helping to locate this problem. If it is true, should we use a specific gcc version, or should we fix the warnings reported in the higher version of gcc?

zoltar9264 avatar Jun 05 '23 12:06 zoltar9264

Thanks to @Myasuka for helping to locate this problem. If it is true, should we use a specific gcc version, or should we fix the warnings reported in the higher version of gcc?

From my point of view, I think we can fix the gcc docker image to a fixed version to avoid unnecessary code changes.

Myasuka avatar Jun 07 '23 03:06 Myasuka