2020-11-20 12:32:18,223 - Execution of command with request id 9 completed successfully in 45.10 ms on connection [connectionId{localValue:2, serverValue:93}] to server s3206.j:27017 2020-11-20 12:32:18,225 - Execution of command with request id 7 completed successfully in 49.69 ms on connection [connectionId{localValue:3, serverValue:97}] to server s3212.j:27017 2020-11-20 12:32:18,226 - Execution of command with request id 8 completed successfully in 48.82 ms on connection [connectionId{localValue:1, serverValue:103}] to server s3200.j:27017 2020-11-20 12:32:18,249 - Monitor thread successfully connected to server with description ServerDescription{address=s3206.j:27017, type=REPLICA_SET_SECONDARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 4, 1]}, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=74361954, setName='rs0', canonicalAddress=s3206:27017, hosts=[s3206:27017, s3212:27017, s3200:27017], passives=[], arbiters=[], primary='s3200:27017', tagSet=TagSet{[]}, electionId=null, setVersion=1, lastWriteDate=Fri Nov 20 12:32:10 UTC 2020, lastUpdateTimeNanos=8320079919333607} 2020-11-20 12:32:18,250 - Monitor thread successfully connected to server with description ServerDescription{address=s3200.j:27017, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 4, 1]}, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=55826678, setName='rs0', canonicalAddress=s3200:27017, hosts=[s3206:27017, s3212:27017, s3200:27017], passives=[], arbiters=[], primary='s3200:27017', tagSet=TagSet{[]}, electionId=7fffffff0000000000000003, setVersion=1, lastWriteDate=Fri Nov 20 12:32:10 UTC 2020, lastUpdateTimeNanos=8320079898991745} 2020-11-20 12:32:18,250 - Monitor thread successfully connected to server with description ServerDescription{address=s3212.j:27017, type=REPLICA_SET_SECONDARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 4, 1]}, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=56277259, setName='rs0', canonicalAddress=s3212:27017, hosts=[s3206:27017, s3212:27017, s3200:27017], passives=[], arbiters=[], primary='s3200:27017', tagSet=TagSet{[]}, electionId=null, setVersion=1, lastWriteDate=Fri Nov 20 12:32:10 UTC 2020, lastUpdateTimeNanos=8320079898131762} 2020-11-20 12:32:18,251 - Adding discovered server s3206:27017 to client view of cluster 2020-11-20 12:32:18,258 - Adding discovered server s3212:27017 to client view of cluster 2020-11-20 12:32:18,262 - Adding discovered server s3200:27017 to client view of cluster 2020-11-20 12:32:18,263 - Server s3200.j:27017 is no longer a member of the replica set. Removing from client view of cluster. 2020-11-20 12:32:18,265 - Closing connection connectionId{localValue:4} 2020-11-20 12:32:18,266 - Closing connection connectionId{localValue:6} 2020-11-20 12:32:18,266 - Exception in monitor thread while connecting to server s3200:27017 com.mongodb.MongoSocketException: s3200: Name or service not known at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:211) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:75) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:128) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [mongodb-driver-core-3.11.2.jar!/:?] at java.lang.Thread.run(Thread.java:832) [?:?] Caused by: java.net.UnknownHostException: s3200: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:?] at java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:932) ~[?:?] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505) ~[?:?] at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:851) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?] at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:203) ~[mongodb-driver-core-3.11.2.jar!/:?] ... 5 more 2020-11-20 12:32:18,267 - Server s3206.j:27017 is no longer a member of the replica set. Removing from client view of cluster. 2020-11-20 12:32:18,267 - Server s3212.j:27017 is no longer a member of the replica set. Removing from client view of cluster. 2020-11-20 12:32:18,267 - Closing connection connectionId{localValue:5} 2020-11-20 12:32:18,267 - Canonical address s3200:27017 does not match server address. Removing s3200.j:27017 from client view of cluster 2020-11-20 12:32:18,268 - Updating cluster description to {type=REPLICA_SET, servers=[{address=s3206:27017, type=UNKNOWN, state=CONNECTING}, {address=s3200:27017, type=UNKNOWN, state=CONNECTING}, {address=s3212:27017, type=UNKNOWN, state=CONNECTING}] 2020-11-20 12:32:18,268 - Closing connection connectionId{localValue:1, serverValue:103} 2020-11-20 12:32:18,268 - Closing connection connectionId{localValue:2, serverValue:93} 2020-11-20 12:32:18,268 - Closing connection connectionId{localValue:3, serverValue:97} 2020-11-20 12:32:18,274 - Updating cluster description to {type=REPLICA_SET, servers=[{address=s3206:27017, type=UNKNOWN, state=CONNECTING}, {address=s3200:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3200: Name or service not known}, caused by {java.net.UnknownHostException: s3200: Name or service not known}}, {address=s3212:27017, type=UNKNOWN, state=CONNECTING}] 2020-11-20 12:32:18,268 - Exception in monitor thread while connecting to server s3212:27017 com.mongodb.MongoSocketException: s3212: Name or service not known at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:211) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:75) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:128) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [mongodb-driver-core-3.11.2.jar!/:?] at java.lang.Thread.run(Thread.java:832) [?:?] Caused by: java.net.UnknownHostException: s3212: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:?] at java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:932) ~[?:?] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505) ~[?:?] at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:851) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?] at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:203) ~[mongodb-driver-core-3.11.2.jar!/:?] ... 5 more 2020-11-20 12:32:18,275 - Updating cluster description to {type=REPLICA_SET, servers=[{address=s3206:27017, type=UNKNOWN, state=CONNECTING}, {address=s3200:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3200: Name or service not known}, caused by {java.net.UnknownHostException: s3200: Name or service not known}}, {address=s3212:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3212: Name or service not known}, caused by {java.net.UnknownHostException: s3212: Name or service not known}}] 2020-11-20 12:32:18,276 - Autowiring by type from bean name 'mappingMongoConverter' via factory method to bean named 'mongoDbFactory' 2020-11-20 12:32:18,276 - Autowiring by type from bean name 'mappingMongoConverter' via factory method to bean named 'mongoMappingContext' 2020-11-20 12:32:18,276 - Autowiring by type from bean name 'mappingMongoConverter' via factory method to bean named 'mongoCustomConversions' 2020-11-20 12:32:18,266 - Exception in monitor thread while connecting to server s3206:27017 com.mongodb.MongoSocketException: s3206: Name or service not known at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:211) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:75) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:128) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [mongodb-driver-core-3.11.2.jar!/:?] at java.lang.Thread.run(Thread.java:832) [?:?] Caused by: java.net.UnknownHostException: s3206: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:?] at java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:932) ~[?:?] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505) ~[?:?] at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:851) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?] at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:203) ~[mongodb-driver-core-3.11.2.jar!/:?] ... 5 more 2020-11-20 12:32:18,278 - Updating cluster description to {type=REPLICA_SET, servers=[{address=s3206:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3206: Name or service not known}, caused by {java.net.UnknownHostException: s3206: Name or service not known}}, {address=s3200:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3200: Name or service not known}, caused by {java.net.UnknownHostException: s3200: Name or service not known}}, {address=s3212:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3212: Name or service not known}, caused by {java.net.UnknownHostException: s3212: Name or service not known}}] 2020-11-20 12:32:18,283 - Registering converter from class java.time.LocalDateTime to class java.time.Instant as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation. 2020-11-20 12:32:18,283 - Registering converter from class java.time.Instant to class java.time.LocalDateTime as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation. 2020-11-20 12:32:18,304 - Autowiring by type from bean name 'mongoTemplate' via factory method to bean named 'mongoDbFactory' 2020-11-20 12:32:18,304 - Autowiring by type from bean name 'mongoTemplate' via factory method to bean named 'mappingMongoConverter' 2020-11-20 12:32:18,319 - Analyzing class class kz.aitupay.switchbackoffice.web.mongo.entity.Health for index information. 2020-11-20 12:32:18,325 - Analyzing class class kz.aitupay.switchbackoffice.web.redis.entity.SwitchAuthSession for index information. 2020-11-20 12:32:18,325 - Analyzing class class kz.aitupay.switchbackoffice.web.redis.entity.SwitchTwoFASession for index information. 2020-11-20 12:32:18,325 - Analyzing class class kz.aitupay.switchbackoffice.web.mongo.entity.AuditLog for index information. 2020-11-20 12:32:18,328 - Creating shared instance of singleton bean 'org.springframework.data.jpa.repository.support.JpaEvaluationContextExtension' 2020-11-20 12:32:18,353 - Automatic index creation will be disabled by default as of Spring Data MongoDB 3.x. Please use 'MongoMappingContext#setAutoIndexCreation(boolean)' or override 'MongoConfigurationSupport#autoIndexCreation()' to be explicit. However, we recommend setting up indices manually in an application ready block. You may use index derivation there as well. > ----------------------------------------------------------------------------------------- > @EventListener(ApplicationReadyEvent.class) > public void initIndicesAfterStartup() { > > IndexOperations indexOps = mongoTemplate.indexOps(DomainType.class); > > IndexResolver resolver = new MongoPersistentEntityIndexResolver(mongoMappingContext); > resolver.resolveIndexFor(DomainType.class).forEach(indexOps::ensureIndex); > } > ----------------------------------------------------------------------------------------- 2020-11-20 12:32:18,382 - No server chosen by com.mongodb.client.internal.MongoClientDelegate$1@50008974 from cluster description ClusterDescription{type=REPLICA_SET, connectionMode=MULTIPLE, serverDescriptions=[ServerDescription{address=s3206:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3206: Name or service not known}, caused by {java.net.UnknownHostException: s3206: Name or service not known}}, ServerDescription{address=s3200:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3200: Name or service not known}, caused by {java.net.UnknownHostException: s3200: Name or service not known}}, ServerDescription{address=s3212:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: s3212: Name or service not known}, caused by {java.net.UnknownHostException: s3212: Name or service not known}}]}. Waiting for 30000 ms before timing out 2020-11-20 12:32:18,775 - Closing connection connectionId{localValue:8} 2020-11-20 12:32:18,775 - Exception in monitor thread while connecting to server s3200:27017 com.mongodb.MongoSocketException: s3200 at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:211) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:75) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:128) ~[mongodb-driver-core-3.11.2.jar!/:?] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [mongodb-driver-core-3.11.2.jar!/:?] at java.lang.Thread.run(Thread.java:832) [?:?] Caused by: java.net.UnknownHostException: s3200 at java.net.InetAddress$CachedAddresses.get(InetAddress.java:800) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?] at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:203) ~[mongodb-driver-core-3.11.2.jar!/:?] ... 5 more