CTTY commented on code in PR #8190:
URL: https://github.com/apache/hudi/pull/8190#discussion_r1182107824
##########
hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java:
##########
@@ -106,9 +106,9 @@ private List<String> getPartitionPathWithPathPrefix(String
relativePathPrefix) t
int listingParallelism = Math.min(DEFAULT_LISTING_PARALLELISM,
pathsToList.size());
// List all directories in parallel
- List<FileStatus> dirToFileListing = engineContext.flatMap(pathsToList,
path -> {
+ List<Pair<Path, Boolean>> dirToFileListing =
engineContext.flatMap(pathsToList, path -> {
FileSystem fileSystem = path.getFileSystem(hadoopConf.get());
- return Arrays.stream(fileSystem.listStatus(path));
+ return Arrays.stream(fileSystem.listStatus(path)).map(fileStatus ->
Pair.of(fileStatus.getPath(), fileStatus.isDirectory()));
}, listingParallelism);
Review Comment:
This happens when users use EMR to interact with S3 bucket with CSE enabled.
It triggers some classes within EMRFS that are not serializable. But kyro tries
to serialize it anyway thus this exception was thrown. See a similiar case
[here](https://github.com/EsotericSoftware/kryo/issues/449)
This scenerio would apply to other FSs come with non-serializable classes
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]