Vladimir Ozerov created IGNITE-3544:
---------------------------------------
Summary: 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: 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)