Skip to content

Flaky Test: Build with windows on JDK 11#4675

Closed
liangyepianzhou wants to merge 1 commit intoapache:masterfrom
liangyepianzhou:win_jdk11
Closed

Flaky Test: Build with windows on JDK 11#4675
liangyepianzhou wants to merge 1 commit intoapache:masterfrom
liangyepianzhou:win_jdk11

Conversation

@liangyepianzhou
Copy link
Contributor

@liangyepianzhou liangyepianzhou commented Oct 20, 2025

Motivation

Many PRs cannot be merged because of this test failure. Even after rerunning multiple times, they still fail due to the same error.

This doesn't seem to be a flaky test, but rather a blocking test that always fails!

Error: OUTPUT>native-io-jni/cpp/native_io_jni.c:168:21: error: passing argument 1 of 'fflush' makes pointer from integer without a cast [-Wint-conversion]

https://github.com/apache/bookkeeper/actions/runs/18648851159/job/53162582666?pr=4674
https://github.com/apache/bookkeeper/actions/runs/18552216345/job/53161739919?pr=4673
https://github.com/apache/bookkeeper/actions/runs/18526985175/job/52800716265?pr=4672
https://github.com/apache/bookkeeper/actions/runs/18526392532/job/52798756494?pr=4653

Changes

fflush requires a FILE*, but we're passing an int file descriptor.
On Windows, the correct equivalent is _commit(fd), which takes an int fd.
So, change the mapping of fsync from fflush to _commit.

@liangyepianzhou
Copy link
Contributor Author

rerun failure checks

@liangyepianzhou
Copy link
Contributor Author

rerun failure checks

1 similar comment
@liangyepianzhou
Copy link
Contributor Author

rerun failure checks

Copy link
Member

@zymap zymap left a comment

Choose a reason for hiding this comment

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

https://github.com/apache/bookkeeper/pull/4665/files

Here is the fix. You should check the platform first instead of changing all the platform to that.

@liangyepianzhou
Copy link
Contributor Author

Close this PR as the issue has already been resolved by https://github.com/apache/bookkeeper/pull/4665/files

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

Successfully merging this pull request may close these issues.

2 participants