Skip to content

Commit

Permalink
Update based on apache#2427
Browse files Browse the repository at this point in the history
  • Loading branch information
Mridul Muralidharan committed Mar 27, 2024
1 parent 3638558 commit ac3254c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Apache Spark
./common/src/main/java/org/apache/celeborn/common/unsafe/Platform.java
./common/src/main/java/org/apache/celeborn/common/util/JavaUtils.java
./common/src/main/scala/org/apache/celeborn/common/util/SignalUtils.scala
./common/src/test/java/org/apache/celeborn/common/network/protocol/EncryptedMessageWithHeaderSuiteJ.java
./common/src/test/java/org/apache/celeborn/common/network/ssl/ReloadingX509TrustManagerSuiteJ.java
./common/src/test/java/org/apache/celeborn/common/network/ssl/SslSampleConfigs.java
./worker/src/main/java/org/apache/celeborn/service/deploy/worker/shuffledb/DB.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public abstract class ManagedBuffer {
*
* <p>If this method returns a ByteBuf, then that buffer's reference count will be incremented and
* the caller will be responsible for releasing this new reference.
*
* <p>Once `kernel.ssl.sendfile` and OpenSSL's `ssl_sendfile` are more widely adopted (and
* supported in Netty), we can potentially deprecate these APIs and just use `convertToNetty`.
*/
public abstract Object convertToNettyForSsl() throws IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
/**
* A wrapper message that holds two separate pieces (a header and a body).
*
* <p>The header must be a ByteBuf, while the body can be any InputStream or ChunkedStream
* <p>The header must be a ByteBuf, while the body can be any InputStream or ChunkedStream Based on
* common/network-common/org.apache.spark.network.protocol.EncryptedMessageWithHeader
*/
public class EncryptedMessageWithHeader implements ChunkedInput<ByteBuf> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

/**
* Encoder used by the server side to encode secure (SSL) server-to-client responses. This encoder
* is stateless so it is safe to be shared by multiple threads.
* is stateless so it is safe to be shared by multiple threads. Based on
* common/network-common/org.apache.spark.network.protocol.SslMessageEncoder
*/
@ChannelHandler.Sharable
public final class SslMessageEncoder extends MessageToMessageEncoder<Message> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
import org.apache.celeborn.common.network.buffer.ManagedBuffer;
import org.apache.celeborn.common.network.buffer.NettyManagedBuffer;

/*
* Based on common/network-common/org.apache.spark.network.protocol.EncryptedMessageWithHeaderSuite
*/
public class EncryptedMessageWithHeaderSuiteJ {

// Tests the case where the body is an input stream and that we manage the refcounts of the
Expand Down

0 comments on commit ac3254c

Please sign in to comment.