Conversation
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
============================================
+ Coverage 83.14% 83.23% +0.08%
- Complexity 1362 1373 +11
============================================
Files 149 150 +1
Lines 4522 4563 +41
Branches 379 381 +2
============================================
+ Hits 3760 3798 +38
Misses 534 534
- Partials 228 231 +3
Continue to review full report at Codecov.
|
c89310d to
63d548b
Compare
| @Override | ||
| public File nextDir() { | ||
| int index = this.sequence.incrementAndGet(); | ||
| // Index can't be negative. |
|
|
||
| import java.io.File; | ||
|
|
||
| public interface DataDirHandler { |
There was a problem hiding this comment.
prefer DataFilesHandler
and seems this is not handler
There was a problem hiding this comment.
DataFilesHandler -> DataFileGenerator
| /** | ||
| * @return the next file to persist data like vertices, edges and messages. | ||
| */ | ||
| File nextFile(String label, int superstep); |
There was a problem hiding this comment.
label means message type, different message type in different directory.
63d548b to
ef125fa
Compare
ef125fa to
489403d
Compare
| public static final ConfigOption<Long> WORKER_RECEIVE_BUFFERS_SIZE_LIMIT = | ||
| new ConfigOption<>( | ||
| "worker.receive_buffers_size_limit", | ||
| "The limit of received buffers that total size can't " + |
There was a problem hiding this comment.
The limit bytes of buffers of received data, the total size of all buffers can't excess this limit.
| "worker.receive_buffers_size_limit", | ||
| "The limit of received buffers that total size can't " + | ||
| "excess this limit. If received buffers reach this limit," + | ||
| " they will be merged into a file. ", |
There was a problem hiding this comment.
put space to the previous line as possible
|
|
||
| public static final ConfigOption<Long> WORKER_RECEIVE_BUFFERS_SIZE_LIMIT = | ||
| new ConfigOption<>( | ||
| "worker.receive_buffers_size_limit", |
There was a problem hiding this comment.
received_buffers_bytes_limit
| new ConfigListOption<>( | ||
| "worker.data_dirs", | ||
| true, | ||
| "The dirs separated by ',' that received vertices and " + |
| "messages can persist into. ", | ||
| disallowEmpty(), | ||
| String.class, | ||
| ImmutableList.of("_temporary") |
There was a problem hiding this comment.
set "jobs" instead of "_temporary"
| public void init(Config config) { | ||
| String jobId = config.get(ComputerOptions.JOB_ID); | ||
| List<String> paths = config.get(ComputerOptions.WORKER_DATA_DIRS); | ||
| LOG.info("Worker data dirs: {}", paths); |
| File dir = new File(path); | ||
| File jobDir = new File(dir, jobId); | ||
| this.mkdirs(jobDir); | ||
| LOG.info("Added data dir: {}", jobDir); |
There was a problem hiding this comment.
improve message, add more details and context
| ); | ||
|
|
||
| public static final ConfigOption<Long> WORKER_RECEIVE_BUFFERS_SIZE_LIMIT = | ||
| public static final ConfigOption<Long> WORKER_RECEIVED_BUFFERS_SIZE_LIMIT = |
There was a problem hiding this comment.
WORKER_RECEIVED_BUFFERS_BYTES_LIMIT
| " they will be merged into a file. ", | ||
| "worker.received_buffers_bytes_limit", | ||
| "The limit bytes of buffers of received data, the " + | ||
| "total size of all buffers can't excess this limit. If " + |
| String jobId = config.get(ComputerOptions.JOB_ID); | ||
| List<String> paths = config.get(ComputerOptions.WORKER_DATA_DIRS); | ||
| LOG.info("Worker data dirs: {}", paths); | ||
| LOG.info("The directories '{}' configured to persist data", paths); |
There was a problem hiding this comment.
The directories '{}' configured to persist data for job {}
| File jobDir = new File(dir, jobId); | ||
| this.mkdirs(jobDir); | ||
| LOG.info("Added data dir: {}", jobDir); | ||
| LOG.info("Initialized directory {} to directory list", jobDir); |
No description provided.