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 2016/07/22 12:32:21 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:
------------------------------------
Issue Type: Sub-task (was: Task)
Parent: IGNITE-3550
> 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.0
>
>
> 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.4#6332)