You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/05/05 21:12:06 UTC

[GitHub] [kafka] d8tltanc edited a comment on pull request #8610: KAKFA-9942: --entity-default flag is not working for alternating / describing configs in AdminClient

d8tltanc edited a comment on pull request #8610:
URL: https://github.com/apache/kafka/pull/8610#issuecomment-624308593


   Hi @bdbyrne , thanks for the comment. The link seems not working. I guess you mean this part we should replace the empty string "" by null?
       private[admin] def entityNames(): List[String] = {
         val namesIterator = options.valuesOf(entityName).iterator
         options.specs.asScala
           .filter(spec => spec.options.contains("entity-name") || spec.options.contains("entity-default"))
           .map(spec => if (spec.options.contains("entity-name")) namesIterator.next else "").toList ++
         entityFlags
           .filter(entity => options.has(entity._1))
           .map(entity => options.valueOf(entity._1)) ++
         entityDefaultsFlags
           .filter(entity => options.has(entity._1))
           .map(_ => "")
       }


----------------------------------------------------------------
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:
users@infra.apache.org