You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/11/10 13:04:35 UTC

[GitHub] [shardingsphere-elasticjob] TeslaCN opened a new issue #1705: Testcases of HttpJobExecutor may failed

TeslaCN opened a new issue #1705:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1705


   ## Bug Report
   
   Ref: https://github.com/apache/shardingsphere-elasticjob/runs/1378979975
   
   ```
   -------------------------------------------------------
    T E S T S
   -------------------------------------------------------
   Running org.apache.shardingsphere.elasticjob.http.executor.HttpJobExecutorTest
   Nov 10, 2020 9:50:03 AM org.apache.shardingsphere.elasticjob.restful.NettyRestfulService lambda$startup$0
   INFO: Restful Service started on port 9876.
   Nov 10, 2020 9:50:07 AM org.apache.shardingsphere.elasticjob.http.executor.HttpJobExecutor process
   Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.52 sec <<< FAILURE! - in org.apache.shardingsphere.elasticjob.http.executor.HttpJobExecutorTest
   WARNING: HTTP job null executed with response code 404
   assertProcessWithIOException(org.apache.shardingsphere.elasticjob.http.executor.HttpJobExecutorTest)  Time elapsed: 0.001 sec  <<< FAILURE!
   Nov 10, 2020 9:50:07 AM org.apache.shardingsphere.elasticjob.http.executor.HttpJobExecutor process
   java.lang.AssertionError: Expected exception: org.apache.shardingsphere.elasticjob.infra.exception.JobExecutionException
   WARNING: HTTP job null executed with response body No handler found for [/unknownMethod/].
   
   
   Results :
   
   Failed tests: 
     HttpJobExecutorTest.assertProcessWithIOException Expected exception: org.apache.shardingsphere.elasticjob.infra.exception.JobExecutionException
   
   Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere-elasticjob] terrymanu closed issue #1705: Testcases of HttpJobExecutor may failed

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #1705:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1705


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1705: Testcases of HttpJobExecutor may failed

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1705:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1705#issuecomment-727582784


   I run the testcase `assertProcessWithIOException` repeatly until failure, and I found there was a very little probability that the expected `JobExecutionException` wasn't thrown. In this testcase, HTTP connection timeout and read timeout are both 1 millis while handler sleep 3 millis. Maybe the delay of server and client are too similar to ensure timeout will occur.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org