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

fix(s3stream/wal): no need to create the file when checking dio #934

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

Chillax-0v0
Copy link
Contributor

No description provided.

@Chillax-0v0 Chillax-0v0 added bug Something isn't working s3stream wal the WAL of S3 stream labels Feb 20, 2024
@Chillax-0v0 Chillax-0v0 self-assigned this Feb 20, 2024
@Chillax-0v0 Chillax-0v0 requested a review from daniel-y February 20, 2024 03:13
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (717c58b) 55.92% compared to head (b2322e0) 55.90%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #934      +/-   ##
============================================
- Coverage     55.92%   55.90%   -0.03%     
+ Complexity     1267     1265       -2     
============================================
  Files           133      133              
  Lines          8534     8534              
  Branches        789      789              
============================================
- Hits           4773     4771       -2     
  Misses         3327     3327              
- Partials        434      436       +2     
Components Coverage Δ
RocketMQ Broker ∅ <ø> (∅)
RocketMQ Common 5.80% <ø> (ø)
RocketMQ Controller 57.39% <ø> (ø)
RocketMQ Proxy 37.18% <ø> (-0.11%) ⬇️
RocketMQ Store 73.60% <ø> (ø)
RocketMQ Stream ∅ <ø> (∅)
RocketMQ Metadata 35.44% <ø> (ø)

see 1 file with indirect coverage changes

@superhx superhx merged commit 1d1e0ff into main Feb 20, 2024
7 checks passed
@superhx superhx deleted the fix-s3stream-wal-dio-detection branch February 20, 2024 03:18
@@ -98,28 +98,28 @@ public static String checkAvailable(String path) {
return "java.nio.DirectByteBuffer.<init>(long, int) not available." +
" Add --add-opens=java.base/java.nio=ALL-UNNAMED and -Dio.netty.tryReflectionSetAccessible=true to JVM options may fix this.";
}
if (!path.startsWith(DEVICE_PREFIX) && !tryOpenFileWithDirectIO(String.format(CHECK_DIRECT_IO_AVAILABLE_FORMAT, path))) {
return "O_DIRECT not supported by the file system, path: " + path;
if (!path.startsWith(DEVICE_PREFIX)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议用 file 命令而不是目录来判断块设备

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do it in next PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working s3stream wal the WAL of S3 stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants