Github user jinossy commented on a diff in the pull request:
https://github.com/apache/tajo/pull/1001#discussion_r60535035
--- Diff: tajo-core/src/main/java/org/apache/tajo/worker/TaskImpl.java ---
@@ -696,44 +696,48 @@ private synchronized void
fetcherFinished(TaskAttemptContext ctx) {
WorkerConnectionInfo conn =
executionBlockContext.getWorkerContext().getConnectionInfo();
if (NetUtils.isLocalAddress(address) && conn.getPullServerPort()
== uri.getPort()) {
-
- List<FileChunk> localChunkCandidates =
getLocalStoredFileChunk(uri, systemConf);
-
- for (FileChunk localChunk : localChunkCandidates) {
- // When a range request is out of range, storeChunk will be
NULL. This case is normal state.
- // So, we should skip and don't need to create storeChunk.
- if (localChunk == null || localChunk.length() == 0) {
- continue;
- }
-
- if (localChunk.getFile() != null && localChunk.startOffset()
> -1) {
- localChunk.setFromRemote(false);
- localStoreChunkCount++;
- } else {
- localChunk = new FileChunk(defaultStoreFile, 0, -1);
- localChunk.setFromRemote(true);
- }
- localChunk.setEbId(f.getName());
- storeChunkList.add(localChunk);
- }
+ localStoreChunkCount++;
+ runnerList.add(new LocalFetcher(systemConf, uri,
executionBlockContext, f.getName()));
+
+// List<FileChunk> localChunkCandidates =
getLocalStoredFileChunk(uri, systemConf);
--- End diff --
Could you explain why you comment out this block?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---