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

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

                Author: ASF GitHub Bot
            Created on: 23/Apr/20 19:55
            Start Date: 23/Apr/20 19:55
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #11454:
URL: https://github.com/apache/beam/pull/11454#discussion_r414081632



##########
File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/ByteKeyRangeTracker.java
##########
@@ -64,31 +64,56 @@ public ByteKeyRange currentRestriction() {
 
   @Override
   public SplitResult<ByteKeyRange> trySplit(double fractionOfRemainder) {
-    // TODO(BEAM-8871): Add support for splitting off a fixed amount of work 
for this restriction
-    // instead of only supporting checkpointing.
+    // No split on an empty range.
+    if (NO_KEYS.equals(range)) {

Review comment:
       A user can still create a restriction where startkey == endkey, have no 
tryClaim calls and be checkpointed which is why we need to support both cases.




----------------------------------------------------------------
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: 426710)
    Time Spent: 3h  (was: 2h 50m)

> Add support for splitting at fractions > 0 to 
> org.apache.beam.sdk.transforms.splittabledofn.ByteKeyRangeTracker
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-8871
>                 URL: https://issues.apache.org/jira/browse/BEAM-8871
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Boyuan Zhang
>            Priority: Major
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> org.apache.beam.sdk.transforms.splittabledofn.ByteKeyRangeTracker only 
> supports checkpointing



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

Reply via email to