You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/11/23 03:33:59 UTC

[GitHub] [druid] jon-wei commented on a change in pull request #11941: AWS "Data read has a different length than the expected" error should reset stream and try again

jon-wei commented on a change in pull request #11941:
URL: https://github.com/apache/druid/pull/11941#discussion_r754783236



##########
File path: extensions-core/s3-extensions/src/test/java/org/apache/druid/data/input/s3/S3InputSourceTest.java
##########
@@ -535,6 +539,48 @@ public void testReader() throws IOException
     EasyMock.verify(S3_CLIENT);
   }
 
+  @Test(expected = SdkClientException.class)
+  public void testReaderRetriesOnSdkClientExceptionButNeverSucceedsThenThrows() throws Exception

Review comment:
       Hm, the test took 6m when I tried it, which feels excessive. I think it'd be fine to modify `ObjectSummaryIterator` to have a fetch retry count parameter, which you could set from S3InputSource (maybe in a test-only path if you don't feel like exposing that in the JSON constructor)




-- 
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: commits-unsubscribe@druid.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org