-
Notifications
You must be signed in to change notification settings - Fork 141
[Issue #1082] support message grouping and terminating in S3QS #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
pixels-core/src/main/java/io/pixelsdb/pixels/core/PixelsWriterStreamImpl.java
Show resolved
Hide resolved
| @@ -0,0 +1,9 @@ | |||
| package io.pixelsdb.pixels.storage.s3qs.exception; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a license header.
...ge/pixels-storage-s3qs/src/main/java/io/pixelsdb/pixels/storage/s3qs/PhysicalS3QSWriter.java
Outdated
Show resolved
Hide resolved
pixels-storage/pixels-storage-s3qs/src/main/java/io/pixelsdb/pixels/storage/s3qs/S3QS.java
Outdated
Show resolved
Hide resolved
pixels-storage/pixels-storage-s3qs/src/main/java/io/pixelsdb/pixels/storage/s3qs/S3QS.java
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,85 @@ | |||
| package io.pixelsdb.pixels.storage.s3qs; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License header.
...torage/pixels-storage-s3qs/src/main/java/io/pixelsdb/pixels/storage/s3qs/S3QueueMessage.java
Outdated
Show resolved
Hide resolved
pixels-storage/pixels-storage-s3qs/src/main/java/io/pixelsdb/pixels/storage/s3qs/S3Queue.java
Outdated
Show resolved
Hide resolved
pixels-storage/pixels-storage-s3qs/src/test/java/io/pixelsdb/pixels/storage/s3qs/TestS3QS.java
Outdated
Show resolved
Hide resolved
pixels-core/src/main/java/io/pixelsdb/pixels/core/PixelsWriterImpl.java
Outdated
Show resolved
Hide resolved
pixels-core/src/main/java/io/pixelsdb/pixels/core/PixelsWriterImpl.java
Outdated
Show resolved
Hide resolved
| this.builderPhysicalWriter = PhysicalWriterUtil.newPhysicalWriter( | ||
| this.builderStorage, this.builderFilePath, this.builderBlockSize, this.builderReplication, | ||
| this.builderBlockPadding, this.builderOverwrite); | ||
| } catch (IOException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
catch on a new line, { on a new line.
| LOGGER.error("Failed to create PhysicalWriter"); | ||
| throw new PixelsWriterException( | ||
| "Failed to create PixelsWriter due to error of creating PhysicalWriter", e); | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ in a new line.
| { | ||
| this.queue.push(this.pathStr); | ||
| } | ||
| }catch (IOException e){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new lines.
| private long timestamp = System.currentTimeMillis(); | ||
| private String metadata = ""; | ||
|
|
||
| public S3QueueMessage() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ in a new line.
Related to #1082
This PR is the first step to enable shuffle support in S3QS. S3QS can now support message passing between workers in different groups, as well as pipeline termination signals.
Key improvements:
Defined the message format provided by workers, enabling identification of worker IDs and partition numbers.
Since S3QS is used exclusively for shuffle tasks, it can serve as the task manager connecting the upstream and downstream of the shuffle, providing communication channels.