vinothchandar commented on a change in pull request #700: HUDI-138 - Meta Files
handling also need to support consistency guard
URL: https://github.com/apache/incubator-hudi/pull/700#discussion_r297002916
##########
File path:
hoodie-common/src/main/java/com/uber/hoodie/common/table/HoodieTableMetaClient.java
##########
@@ -190,13 +201,27 @@ public HoodieTableConfig getTableConfig() {
/**
* Get the FS implementation for this table
*/
- public FileSystem getFs() {
+ public HoodieWrapperFileSystem getFs() {
if (fs == null) {
- fs = FSUtils.getFs(metaPath, hadoopConf.get());
+ FileSystem fileSystem = FSUtils.getFs(metaPath, hadoopConf.get());
+ if (fileSystem instanceof HoodieWrapperFileSystem) {
Review comment:
yes. We can do a PreCondition if this should not happen.. Rather hit the
issue, debug and fix it, than living dangerously :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services