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

Wrong usage of Boolean.getBoolean()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      I observed the problem in both FlinkKafkaProducerBase.java and FlinkKafkaConsumer09.java

      From FlinkKafkaProducerBase.java :

      if(!Boolean.getBoolean(producerConfig.getProperty(KEY_DISABLE_METRICS, "false"))) {
      

      Boolean.getBoolean() would call System.getProperty(). See http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#238

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: