Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4078

Use ClosureCleaner for CoGroup where

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3
    • 1.1.0
    • None
    • None

    Description

      When specifying a key selector in the where clause of a CoGroup, the closure cleaner is not used.

      .coGroup(filteredIds)
                      .where(new KeySelector<T, String>() {
                          @Override
                          public String getKey(T t) throws Exception {
                              String s = (String) t.get(fieldName);
                              return s != null ? s : UUID.randomUUID().toString();
                          }
                      })
      

      The problem is that the KeySelector is an anonymous inner class and as such as a reference to the outer object. Normally, this would be rectified by the closure cleaner but the cleaner is not used in CoGroup.where().

      Attachments

        Issue Links

          Activity

            People

              srichter Stefan Richter
              uce Ufuk Celebi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: