Opher Shachar created NIFI-7880:
-----------------------------------
Summary: Excessive log messages in nifi-app.log from logger
org.mongodb.driver.cluster
Key: NIFI-7880
URL: https://issues.apache.org/jira/browse/NIFI-7880
Project: Apache NiFi
Issue Type: Improvement
Components: Extensions
Affects Versions: 1.11.4
Environment: Linux uhn3kbrp3prni0001 3.10.0-1062.4.1.el7.x86_64 #1 SMP
Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Network stack: IPv6
MongDB: 4.0.3
Reporter: Opher Shachar
Upgraded recently from NiFi 1.9.2 to 1.11.4.
Our flow connects to a Clustered MongoDB 4.0.3 via a
+{{MongoDBControllerService}}+ with +{{mongo-uri}}+:
{noformat}
mongodb://user:password@health_db:27017,health_db1:27017,health_db2:27017/admin?replicaSet=foo{noformat}
We notice that now (didn't happen in NiFi 1.9.2) we get relentless log messages
(3 every 10 seconds):
{noformat}
2020-10-04 21:59:54,185 WARN
[cluster-ClusterId{value='5f7a454ecb8b5c004107390a',
description='null'}-240b:c020:104:5420::18:27017] org.mongodb.driver.cluster
Exception in monitor thread during notification of server description state
change
java.lang.NumberFormatException: For input string: "e123:154:5432::12]:27017"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.mongodb.ServerAddress.sameHost(ServerAddress.java:226)
at
com.mongodb.connection.MultiServerCluster.handleReplicaSetMemberChanged(MultiServerCluster.java:210)
at
com.mongodb.connection.MultiServerCluster.onChange(MultiServerCluster.java:158)
at
com.mongodb.connection.MultiServerCluster.access$100(MultiServerCluster.java:44)
at
com.mongodb.connection.MultiServerCluster$DefaultServerStateListener.stateChanged(MultiServerCluster.java:121)
at
com.mongodb.connection.DefaultServer$DefaultServerStateListener.stateChanged(DefaultServer.java:186)
at
com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.sendStateChangedEvent(DefaultServerMonitor.java:197)
at
com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:164)
at java.lang.Thread.run(Thread.java:748)
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)