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] [Closed] (IGNITE-3544) IGFS: Review info() semantics - should it return null or throw exception if file doesn't exist?
Date Tue, 18 Apr 2017 14:20:41 GMT

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

Vladimir Ozerov closed IGNITE-3544.
-----------------------------------

> 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)

Mime
View raw message