You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/23 17:34:00 UTC
[jira] [Commented] (IGNITE-7008) TcpDiscoverySharedFsIpFinder fails
with NPE if address can't be resolved.
[ https://issues.apache.org/jira/browse/IGNITE-7008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264646#comment-16264646 ]
ASF GitHub Bot commented on IGNITE-7008:
----------------------------------------
GitHub user AMashenkov opened a pull request:
https://github.com/apache/ignite/pull/3087
IGNITE-7008: Fixed NPE in TcpDiscoverySharedFsIpFinder.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-7008
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3087.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3087
----
commit 989546ecc1c47c10a1f6367322e823f00076dae0
Author: Andrey V. Mashenkov <an...@gmail.com>
Date: 2017-11-23T17:31:25Z
IGNITE-7008: Fixed NPE in TcpDiscoverySharedFsIpFinder.
----
> TcpDiscoverySharedFsIpFinder fails with NPE if address can't be resolved.
> -------------------------------------------------------------------------
>
> Key: IGNITE-7008
> URL: https://issues.apache.org/jira/browse/IGNITE-7008
> Project: Ignite
> Issue Type: Bug
> Components: general
> Reporter: Andrew Mashenkov
> Assignee: Andrew Mashenkov
>
> Seems, we should add a check to registerAddresses() method if address has been resolved and use hostname otherwise.
> 2017-11-23 14:25:19,487 ERROR [tcp-disco-msg-worker-#2%null%] [Slf4jLogger.java:119] Runtime error caught during grid runnable execution: IgniteSpiThread [name=tcp-disco-msg-worker-#2%null%]
> java.lang.NullPointerException: null
> at org.apache.ignite.spi.discovery.tcp.ipfinder.sharedfs.TcpDiscoverySharedFsIpFinder.name(TcpDiscoverySharedFsIpFinder.java:277)
> at org.apache.ignite.spi.discovery.tcp.ipfinder.sharedfs.TcpDiscoverySharedFsIpFinder.distinctNames(TcpDiscoverySharedFsIpFinder.java:260)
> at org.apache.ignite.spi.discovery.tcp.ipfinder.sharedfs.TcpDiscoverySharedFsIpFinder.registerAddresses(TcpDiscoverySharedFsIpFinder.java:220)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddFinishedMessage(ServerImpl.java:4442)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddedMessage(ServerImpl.java:4052)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2623)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2437)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:6568)
> at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2523)
> at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)