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

ASF GitHub Bot logged work on GOBBLIN-1449:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/May/21 20:39
            Start Date: 24/May/21 20:39
    Worklog Time Spent: 10m 
      Work Description: ZihanLi58 commented on a change in pull request #3287:
URL: https://github.com/apache/gobblin/pull/3287#discussion_r638256809



##########
File path: 
gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/source/extractor/extract/kafka/workunit/packer/KafkaTopicGroupingWorkUnitPacker.java
##########
@@ -338,7 +338,10 @@ private Double getMinWorkUnitSize(WorkUnit workUnit) {
    */
   @VisibleForTesting
   static double getContainerCapacityForTopic(List<Double> capacities, 
ContainerCapacityComputationStrategy strategy) {
-    Preconditions.checkArgument(capacities.size() > 0, "Capacities size must 
be > 0");
+    //No previous stats for a topic? Return default.

Review comment:
       Just curious how did we deal with the new topics previous? Asking 
because capacities for new topics should always be null?




-- 
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: 601392)
    Time Spent: 20m  (was: 10m)

> Correctly parse topic name from topic partition string if topic name has 
> hyphens
> --------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1449
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1449
>             Project: Apache Gobblin
>          Issue Type: Improvement
>          Components: gobblin-kafka
>            Reporter: Sudarshan Vasudevan
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In KafkaTopicGroupingWorkUnitPacker, the extraction of topic name from topic 
> partition string currently does not handle the hyphens in the topic name 
> correctly.



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

Reply via email to