flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-3280) Wrong usage of Boolean.getBoolean()
Date Fri, 22 Jan 2016 21:28:40 GMT
Ted Yu created FLINK-3280:
-----------------------------

             Summary: Wrong usage of Boolean.getBoolean()
                 Key: FLINK-3280
                 URL: https://issues.apache.org/jira/browse/FLINK-3280
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu


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

>From FlinkKafkaProducerBase.java :
{code}
if(!Boolean.getBoolean(producerConfig.getProperty(KEY_DISABLE_METRICS, "false"))) {
{code}
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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message