osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-10586) Running {{RestServerEndpointITCase}} may cause Kernel Panic


Gary Yao created FLINK-10586:
--------------------------------

             Summary: Running {{RestServerEndpointITCase}} may cause Kernel Panic
                 Key: FLINK-10586
                 URL: https://issues.apache.org/jira/browse/FLINK-10586
             Project: Flink
          Issue Type: Bug
          Components: REST, Tests
    Affects Versions: 1.6.1, 1.7.0
         Environment: *Rev:* 3566bb8987872b29aa88b8f7d5b0f122e74bd518
*OS:* macOS High Sierra 10.13.6 (17G65)
*Maven:* 3.2.5
*Java:*
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (Zulu 8.31.0.1-macosx) (build 1.8.0_181-b02)
OpenJDK 64-Bit Server VM (Zulu 8.31.0.1-macosx) (build 25.181-b02, mixed mode)
            Reporter: Gary Yao
             Fix For: 1.8.0
         Attachments: loop_test_kernel_panic.patch

Running the tests in {{RestServerEndpointITCase}} in a loop may cause a Kernel panic on OS X. I have observed this to happen with tests that use the {{OkHttpClient}}, such as {{testDefaultVersionRouting}}.
To run the aforementioned test in a loop, apply the git patch in the attachment, and execute the following command:
{code}
mvn clean integration-test -pl flink-runtime -am -Dtest=RestServerEndpointITCase -Dfast -DfailIfNoTests=false -Dsurefire.skipAfterFailureCount=1 -Dlog.dir=/path/to/log-dir -Dlog4j.configuration=file:///path/to/flink/tools/log4j-travis.properties
{code}

The test eventually fails with the exception below. A few moments later the operation system restarts.

{noformat}
================================================================================
16:43:17,421 INFO  org.apache.flink.runtime.rest.RestServerEndpointITCase        -
================================================================================
Test testDefaultVersionRouting[4019](org.apache.flink.runtime.rest.RestServerEndpointITCase) is running.
--------------------------------------------------------------------------------
16:43:17,422 WARN  org.apache.flink.runtime.rest.RestServerEndpointITCase$TestRestServerEndpoint  - Upload directory /private/var/folders/43/ghpk0br14m99tnl9b86lwfsm0000gn/T/junit8985109840988505849/junit7034313885477230537/flink-web-upload does not exist, or has been deleted externally. Previously uploaded files are no longer available.
16:43:17,422 INFO  org.apache.flink.runtime.rest.RestServerEndpointITCase$TestRestServerEndpoint  - Created directory /private/var/folders/43/ghpk0br14m99tnl9b86lwfsm0000gn/T/junit8985109840988505849/junit7034313885477230537/flink-web-upload for file uploads.
16:43:17,422 INFO  org.apache.flink.runtime.rest.RestClient                      - Rest client endpoint started.
16:43:17,422 INFO  org.apache.flink.runtime.rest.RestServerEndpointITCase$TestRestServerEndpoint  - Starting rest endpoint.
16:43:17,423 INFO  org.apache.flink.runtime.rest.RestServerEndpointITCase$TestRestServerEndpoint  - Rest endpoint listening at localhost:57561
16:43:17,429 INFO  org.apache.flink.runtime.rest.RestClient                      - Shutting down rest endpoint.
16:43:17,431 INFO  org.apache.flink.runtime.rest.RestClient                      - Rest endpoint shutdown complete.
16:43:17,431 INFO  org.apache.flink.runtime.rest.RestServerEndpointITCase$TestRestServerEndpoint  - Shutting down rest endpoint.
16:43:17,435 ERROR org.apache.flink.runtime.rest.RestServerEndpointITCase        -
--------------------------------------------------------------------------------
Test testDefaultVersionRouting[4019](org.apache.flink.runtime.rest.RestServerEndpointITCase) failed with:
java.lang.AssertionError: Bad file descriptor (Write failed)
	at org.apache.flink.runtime.rest.RestServerEndpointITCase.testDefaultVersionRouting(RestServerEndpointITCase.java:260)
	at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)