TAJO-1868: Allow TablespaceManager::get to return unregistered tables…#768
TAJO-1868: Allow TablespaceManager::get to return unregistered tables…#768hyunsik wants to merge 12 commits intoapache:masterfrom
Conversation
|
@hyunsik, it looks that there is still a problem. |
|
It may be because there is no entry for |
|
@hyunsik |
|
@jinossy In my opinion, the idea would be not good because all arbitrary schemes will be handled by FileTablespace. For example, assume that users can mistype the uri like I think that the best way is to add all possible uri schemes to storage-default.json. |
|
Hi @jinossy and @hyunsik, both points look reasonable to me. What do you think? |
|
@jihoonson The error message was changed as follows: In contrast, similar to your mention, if we use FileTablespace as a default handler, it will make more unexpected cases because there are many code paths to handle the URI. It may make "out of control" against some error case. |
|
@hyunsik, |
|
The case where someone develops custom file system rarely occurs in real field. That's too much. |
|
Ok. Let's consider it again when it comes to a problem. |
|
Thank you for your comments. I've reflected your latest comment. |
|
In addition, it would be great if you add any tests for |
|
Fixed. |
There was a problem hiding this comment.
IMHO, kind and plentiful (not detailed) error messages will make users happy. How about adding an warning message like Please check your table location uri scheme?
There was a problem hiding this comment.
Almost all error messages of ours show just the fact. One example is invalid Session '%s', and another example is index name '%s' does not exist. Users cannot know what they mean actually if they do not have knowledge about internal. This is because index name are likely to be generated automatically and many users do not know what is the session.
Our case is the same. Its fact is that there is no tablespace handler to support the uri scheme. Your suggested error message Please check your table location uri scheme is actually based on some assumption that users may mistypo the uri. But, it may not be true in some cases. Also, this error message is inconsistent with others.
|
+1 the latest patch looks good to me. I left a trivial comment. If you agree, please reflect before commit. |
…pace.