Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1386#discussion_r46773630
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/broadcast/BroadcastVariableMaterialization.java
 ---
    @@ -178,9 +178,9 @@ private boolean decrementReferenceInternal(BatchTask<?, 
?> referenceHolder, bool
                                if (errorIfNoReference) {
                                        throw new IllegalStateException(
                                                        String.format("The task 
%s (%d/%d) did not hold a reference to the broadcast variable %s.",
    -                                                                   
referenceHolder.getEnvironment().getTaskName(),
    -                                                                   
referenceHolder.getEnvironment().getIndexInSubtaskGroup() + 1,
    -                                                                   
referenceHolder.getEnvironment().getNumberOfSubtasks(),
    +                                                                   
referenceHolder.getEnvironment().getTaskInfo().getTaskName(),
    --- End diff --
    
    Can replace this with `getTaskInfo().getTaskNameWithSubtasks()`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to