[
https://issues.apache.org/jira/browse/MESOS-4413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146455#comment-15146455
]
haosdent commented on MESOS-4413:
---------------------------------
No ideas. I saw the code failed when
{code}
Future<string> future = io::read(pipes[0]);
ASSERT_FALSE(future.isReady());
-> ASSERT_SOME(os::write(pipes[1], data));
ASSERT_SOME(os::close(pipes[1]));
{code}
But it works in my side.
{code}
./3rdparty/libprocess/libprocess-tests --gtest_filter=IOTest.BufferedRead
Note: Google Test filter = IOTest.BufferedRead
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from IOTest
[ RUN ] IOTest.BufferedRead
[ OK ] IOTest.BufferedRead (5 ms)
[----------] 1 test from IOTest (5 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (5 ms total)
[ PASSED ] 1 test.
{code}
My ulimit is
{code}
ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) 0
-v: address space (kbytes) unlimited
-l: locked-in-memory size (kbytes) unlimited
-u: processes 709
-n: file descriptors 4864
{code}
Clang version
{code}
g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
{code}
> IOTest.BufferedRead is flaky
> ----------------------------
>
> Key: MESOS-4413
> URL: https://issues.apache.org/jira/browse/MESOS-4413
> Project: Mesos
> Issue Type: Bug
> Components: libprocess
> Environment: Darwin Klauss-MacBook-Pro.local 15.2.0 Darwin Kernel
> Version 15.2.0: Fri Nov 13 19:56:56 PST 2015;
> root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
> Reporter: Klaus Ma
>
> {code}
> ./libprocess-tests
> [==========] Running 155 tests from 23 test cases.
> [----------] Global test environment set-up.
> [----------] 3 tests from CollectTest
> [ RUN ] CollectTest.Ready
> [ OK ] CollectTest.Ready (1 ms)
> [ RUN ] CollectTest.Failure
> [ OK ] CollectTest.Failure (1 ms)
> [ RUN ] CollectTest.DiscardPropagation
> [ OK ] CollectTest.DiscardPropagation (1 ms)
> [----------] 3 tests from CollectTest (3 ms total)
> [----------] 4 tests from AwaitTest
> [ RUN ] AwaitTest.Success
> [ OK ] AwaitTest.Success (0 ms)
> [ RUN ] AwaitTest.Failure
> [ OK ] AwaitTest.Failure (1 ms)
> [ RUN ] AwaitTest.Discarded
> [ OK ] AwaitTest.Discarded (0 ms)
> [ RUN ] AwaitTest.DiscardPropagation
> [ OK ] AwaitTest.DiscardPropagation (0 ms)
> [----------] 4 tests from AwaitTest (1 ms total)
> [----------] 6 tests from DecoderTest
> [ RUN ] DecoderTest.Request
> [ OK ] DecoderTest.Request (1 ms)
> [ RUN ] DecoderTest.RequestHeaderContinuation
> [ OK ] DecoderTest.RequestHeaderContinuation (0 ms)
> [ RUN ] DecoderTest.RequestHeaderCaseInsensitive
> [ OK ] DecoderTest.RequestHeaderCaseInsensitive (0 ms)
> [ RUN ] DecoderTest.Response
> [ OK ] DecoderTest.Response (0 ms)
> [ RUN ] DecoderTest.StreamingResponse
> [ OK ] DecoderTest.StreamingResponse (0 ms)
> [ RUN ] DecoderTest.StreamingResponseFailure
> [ OK ] DecoderTest.StreamingResponseFailure (0 ms)
> [----------] 6 tests from DecoderTest (1 ms total)
> [----------] 2 tests from EncoderTest
> [ RUN ] EncoderTest.Response
> [ OK ] EncoderTest.Response (0 ms)
> [ RUN ] EncoderTest.AcceptableEncodings
> [ OK ] EncoderTest.AcceptableEncodings (1 ms)
> [----------] 2 tests from EncoderTest (1 ms total)
> [----------] 1 test from FutureTest
> [ RUN ] FutureTest.ArrowOperator
> [ OK ] FutureTest.ArrowOperator (0 ms)
> [----------] 1 test from FutureTest (0 ms total)
> [----------] 17 tests from HTTPTest
> [ RUN ] HTTPTest.Auth
> [ OK ] HTTPTest.Auth (5 ms)
> [ RUN ] HTTPTest.Endpoints
> WARNING: Logging before InitGoogleLogging() is written to STDERR
> E0116 15:26:53.831742 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> [ OK ] HTTPTest.Endpoints (3 ms)
> [ RUN ] HTTPTest.PipeEOF
> [ OK ] HTTPTest.PipeEOF (0 ms)
> [ RUN ] HTTPTest.PipeFailure
> [ OK ] HTTPTest.PipeFailure (1 ms)
> [ RUN ] HTTPTest.PipeReaderCloses
> [ OK ] HTTPTest.PipeReaderCloses (0 ms)
> [ RUN ] HTTPTest.Encode
> [ OK ] HTTPTest.Encode (0 ms)
> [ RUN ] HTTPTest.PathParse
> [ OK ] HTTPTest.PathParse (0 ms)
> [ RUN ] HTTPTest.Get
> [ OK ] HTTPTest.Get (3 ms)
> [ RUN ] HTTPTest.NestedGet
> [ OK ] HTTPTest.NestedGet (4 ms)
> [ RUN ] HTTPTest.StreamingGetComplete
> [ OK ] HTTPTest.StreamingGetComplete (3 ms)
> [ RUN ] HTTPTest.StreamingGetFailure
> [ OK ] HTTPTest.StreamingGetFailure (3 ms)
> [ RUN ] HTTPTest.PipeEquality
> [ OK ] HTTPTest.PipeEquality (0 ms)
> [ RUN ] HTTPTest.Post
> [ OK ] HTTPTest.Post (3 ms)
> [ RUN ] HTTPTest.Delete
> [ OK ] HTTPTest.Delete (1 ms)
> [ RUN ] HTTPTest.QueryEncodeDecode
> [ OK ] HTTPTest.QueryEncodeDecode (1 ms)
> [ RUN ] HTTPTest.CaseInsensitiveHeaders
> [ OK ] HTTPTest.CaseInsensitiveHeaders (0 ms)
> [ RUN ] HTTPTest.Accepts
> [ OK ] HTTPTest.Accepts (0 ms)
> [----------] 17 tests from HTTPTest (28 ms total)
> [----------] 6 tests from HTTPConnectionTest
> [ RUN ] HTTPConnectionTest.Serial
> E0116 15:26:53.856267 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> [ OK ] HTTPConnectionTest.Serial (5 ms)
> [ RUN ] HTTPConnectionTest.Pipeline
> E0116 15:26:53.861946 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> [ OK ] HTTPConnectionTest.Pipeline (6 ms)
> [ RUN ] HTTPConnectionTest.ClosingRequest
> [ OK ] HTTPConnectionTest.ClosingRequest (4 ms)
> [ RUN ] HTTPConnectionTest.ClosingResponse
> [ OK ] HTTPConnectionTest.ClosingResponse (4 ms)
> [ RUN ] HTTPConnectionTest.ReferenceCounting
> E0116 15:26:53.871278 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> [ OK ] HTTPConnectionTest.ReferenceCounting (1 ms)
> [ RUN ] HTTPConnectionTest.Equality
> E0116 15:26:53.873129 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> E0116 15:26:53.873286 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 11: Socket is not connected
> [ OK ] HTTPConnectionTest.Equality (2 ms)
> [----------] 6 tests from HTTPConnectionTest (22 ms total)
> [----------] 2 tests from URLTest
> [ RUN ] URLTest.Stringification
> [ OK ] URLTest.Stringification (0 ms)
> [ RUN ] URLTest.ParseUrls
> [ OK ] URLTest.ParseUrls (0 ms)
> [----------] 2 tests from URLTest (0 ms total)
> [----------] 6 tests from HttpAuthenticationTest
> [ RUN ] HttpAuthenticationTest.NoAuthenticator
> [ OK ] HttpAuthenticationTest.NoAuthenticator (2 ms)
> [ RUN ] HttpAuthenticationTest.Unauthorized
> [ OK ] HttpAuthenticationTest.Unauthorized (3 ms)
> [ RUN ] HttpAuthenticationTest.Forbidden
> [ OK ] HttpAuthenticationTest.Forbidden (2 ms)
> [ RUN ] HttpAuthenticationTest.Authenticated
> [ OK ] HttpAuthenticationTest.Authenticated (3 ms)
> [ RUN ] HttpAuthenticationTest.Pipelining
> E0116 15:26:53.885918 4820992 process.cpp:1966] Failed to shutdown socket
> with fd 9: Socket is not connected
> [ OK ] HttpAuthenticationTest.Pipelining (3 ms)
> [ RUN ] HttpAuthenticationTest.Basic
> [ OK ] HttpAuthenticationTest.Basic (7 ms)
> [----------] 6 tests from HttpAuthenticationTest (20 ms total)
> [----------] 6 tests from IOTest
> [ RUN ] IOTest.Poll
> [ OK ] IOTest.Poll (0 ms)
> [ RUN ] IOTest.Read
> [ OK ] IOTest.Read (1 ms)
> [ RUN ] IOTest.BufferedRead
> make[5]: *** [check-local] Illegal instruction: 4
> make[4]: *** [check-am] Error 2
> make[3]: *** [check-recursive] Error 1
> make[2]: *** [check-recursive] Error 1
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)