[
https://issues.apache.org/jira/browse/DRILL-7973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17398478#comment-17398478
]
ASF GitHub Bot commented on DRILL-7973:
---------------------------------------
vdiravka commented on a change in pull request #2293:
URL: https://github.com/apache/drill/pull/2293#discussion_r688298755
##########
File path:
contrib/storage-http/src/test/java/org/apache/drill/exec/store/http/TestHttpPlugin.java
##########
@@ -585,7 +585,7 @@ public void testSlowResponse() throws Exception {
server.enqueue(
new MockResponse().setResponseCode(200)
.setBody(TEST_JSON_RESPONSE)
- .throttleBody(64, 4, TimeUnit.SECONDS)
Review comment:
I made this
[change](https://github.com/vdiravka/drill/commit/55e5731270fa87b86a3a3c493ae3c969614568be#diff-c6b42ccd4a5372e7c299b3b8052455c0fe618403a957e0b1b908edf46eee4809R151),
but then test sometimes can fail:
```
2021-08-12T22:02:14.1585593Z [ERROR] Tests run: 23, Failures: 1, Errors: 0,
Skipped: 4, Time elapsed: 9.967 s <<< FAILURE! - in
org.apache.drill.exec.store.http.TestHttpPlugin
2021-08-12T22:02:14.1588729Z [ERROR]
org.apache.drill.exec.store.http.TestHttpPlugin.testSlowResponse Time elapsed:
2.047 s <<< FAILURE!
2021-08-12T22:02:14.1590406Z java.lang.AssertionError
2021-08-12T22:02:14.1592236Z at
org.apache.drill.exec.store.http.TestHttpPlugin.testSlowResponse(TestHttpPlugin.java:597)
2021-08-12T22:02:14.1593656Z
2021-08-12T22:02:14.2122033Z [DEBUG] Closing the fork 1 after saying GoodBye.
2021-08-12T22:02:14.2128185Z [INFO]
2021-08-12T22:02:14.2128842Z [INFO] Results:
2021-08-12T22:02:14.2129375Z [INFO]
2021-08-12T22:02:14.2129898Z [ERROR] Failures:
2021-08-12T22:02:14.2130733Z [ERROR] TestHttpPlugin.testSlowResponse:597
2021-08-12T22:02:14.2131508Z [INFO]
2021-08-12T22:02:14.2132131Z [ERROR] Tests run: 35, Failures: 1, Errors: 0,
Skipped:
```
So looks like this functionality works not precisely. I will check whether
it can be improved or it is allowable error (~2-3sec)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Fix GitHub CI intermittent failures
> -----------------------------------
>
> Key: DRILL-7973
> URL: https://issues.apache.org/jira/browse/DRILL-7973
> Project: Apache Drill
> Issue Type: Sub-task
> Components: Tools, Build & Test
> Affects Versions: 1.19.0
> Reporter: Vitalii Diravka
> Assignee: Vitalii Diravka
> Priority: Major
> Fix For: 1.20.0
>
>
> *The memory issue:*
> I got locally:
> {code:java}
> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.264
> s - in org.apache.drill.exec.work.metadata.TestServerMetaProvider
> [ERROR] Tests run: 19, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
> 7.713 s <<< FAILURE! - in org.apache.drill.exec.record.vector.TestValueVector
> [ERROR]
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation
> Time elapsed: 0.084 s <<< ERROR!
> java.lang.Exception: Unexpected exception,
> expected<org.apache.drill.exec.exception.OversizedAllocationException> but
> was<org.apache.drill.exec.exception.OutOfMemoryException>
> at
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation(TestValueVector.java:107)
> Caused by: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate
> 2147483644 byte(s) of direct memory (used: 872415232, max: 2621440000)
> at
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation(TestValueVector.java:107)[ERROR]
>
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation
> Time elapsed: 0.013 s <<< ERROR!
> java.lang.Exception: Unexpected exception,
> expected<org.apache.drill.exec.exception.OversizedAllocationException> but
> was<org.apache.drill.exec.exception.OutOfMemoryException>
> at
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation(TestValueVector.java:165)
> Caused by: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate
> 2147483647 byte(s) of direct memory (used: 872415232, max: 2621440000)
> at
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation(TestValueVector.java:165)
> {code}
> for the command:
> {code:java}
> drill$ mvn install -V -ntp -DdirectMemoryMb=2500 -DmemoryMb=2000{code}
> andÂ
> {code:java}
> [INFO] Running org.apache.drill.exec.work.metadata.TestServerMetaProvider
> [ERROR] Tests run: 19, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
> 6.358 s <<< FAILURE! - in org.apache.drill.exec.record.vector.TestValueVector
> [ERROR]
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation
> Time elapsed: 0.048 s <<< ERROR!
> java.lang.Exception: Unexpected exception,
> expected<org.apache.drill.exec.exception.OversizedAllocationException> but
> was<org.apache.drill.exec.exception.OutOfMemoryException>
> at
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation(TestValueVector.java:107)
> Caused by: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate
> 2147483644 byte(s) of direct memory (used: 989855744, max: 2936012800)
> at
> org.apache.drill.exec.record.vector.TestValueVector.testFixedVectorReallocation(TestValueVector.java:107)[ERROR]
>
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation
> Time elapsed: 0.008 s <<< ERROR!
> java.lang.Exception: Unexpected exception,
> expected<org.apache.drill.exec.exception.OversizedAllocationException> but
> was<org.apache.drill.exec.exception.OutOfMemoryException>
> at
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation(TestValueVector.java:165)
> Caused by: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate
> 2147483647 byte(s) of direct memory (used: 989855744, max: 2936012800)
> at
> org.apache.drill.exec.record.vector.TestValueVector.testVariableVectorReallocation(TestValueVector.java:165)
> {code}
> for the command:
> {code:java}
> mvn install -V -ntp -DdirectMemoryMb=2800 -DmemoryMb=2000{code}
> There are also intermittent failures for several test cases, details in
> comments.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)