ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2340) Throw sensible error from IgniteHadoopFileSystem if real file system is not IgniteHadoopIgfsSecondaryFileSystem
Date Thu, 07 Jan 2016 15:17:39 GMT
Vladimir Ozerov created IGNITE-2340:
---------------------------------------

             Summary: Throw sensible error from IgniteHadoopFileSystem if real file system
is not IgniteHadoopIgfsSecondaryFileSystem
                 Key: IGNITE-2340
                 URL: https://issues.apache.org/jira/browse/IGNITE-2340
             Project: Ignite
          Issue Type: Task
          Components: hadoop
    Affects Versions: ignite-1.4
            Reporter: Vladimir Ozerov
            Assignee: Vladimir Ozerov
             Fix For: 1.6


Consider the following scenario:
1) User configures some custom secondary file system;
2) Some paths are set to PROXY mode (e.g. default modes);
3) User instantiates IgniteHadoopFileSystem somewhere else. 

Result:
IgniteHadoopFileSystem notices PROXY paths and tries to get FileSystem factory from handshake
request, but it is null. As a result, NPE is thrown a moment later.

Proposed fix:
If factory is null. we must throw an exception and advise user to set IgniteHadoopIgfsSecondaryFileSystem
as secondary file system.in IGFS configuration.



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

Mime
View raw message