[ 
https://issues.apache.org/jira/browse/BEAM-11815?focusedWorklogId=571858&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-571858
 ]

ASF GitHub Bot logged work on BEAM-11815:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Mar/21 12:40
            Start Date: 25/Mar/21 12:40
    Worklog Time Spent: 10m 
      Work Description: aromanenko-dev commented on pull request #14314:
URL: https://github.com/apache/beam/pull/14314#issuecomment-806666461


   R: @iemejia PTAL


-- 
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 571858)
    Time Spent: 20m  (was: 10m)

> Fail to read more than 1M of items
> ----------------------------------
>
>                 Key: BEAM-11815
>                 URL: https://issues.apache.org/jira/browse/BEAM-11815
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-aws
>            Reporter: Mohammad
>            Assignee: Alexey Romanenko
>            Priority: P1
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In processElement:
> {code:java}
> private static class ReadFn<T> extends DoFn<Read<T>, T> {
>   @ProcessElement
>   public void processElement(@Element Read<T> spec, OutputReceiver<T> out) {
>     AmazonDynamoDB client = spec.getAwsClientsProvider().createDynamoDB();
>     ScanRequest scanRequest = spec.getScanRequestFn().apply(null);
>     scanRequest.setSegment(spec.getSegmentId());
>     ScanResult scanResult = client.scan(scanRequest);
>     out.output(spec.getScanResultMapperFn().apply(scanResult));
>   }
> }
> {code}
>  
>  
> if total requested items > 1M dynamodb will only send upto 1M of data  and 
> expects client to read remaining items through LastEvaluatedKey (see 
> [this|https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/model/ScanRequest.html#setLimit-java.lang.Integer-])
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to