You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/04/06 10:54:42 UTC

[jira] [Updated] (IGNITE-3544) IGFS: Review info() semantics - should it return null or throw exception if file doesn't exist?

     [ https://issues.apache.org/jira/browse/IGNITE-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Ozerov updated IGNITE-3544:
------------------------------------
    Fix Version/s:     (was: 2.0)
                   2.1

> IGFS: Review info() semantics - should it return null or throw exception if file doesn't exist?
> -----------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3544
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3544
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: IGFS
>    Affects Versions: 1.6
>            Reporter: Vladimir Ozerov
>             Fix For: 2.1
>
>
> 1) Throw exception: clean and simple semantics, but if Hadoop/Spark/etc. products return null in this case, we could end up with hot path where exception is thrown. This would render bad performance.
> 2) Return null: always good perf, but additional null-checks will be required.
> Alternatively:
> - Have a method with exception semantics on public API, but use method with null semantics for {{IgniteHadoopFileSystem}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)