[NO ISSUE][NET] SSL Socket Fixes
authorAli Alsuliman <ali.al.solaiman@gmail.com>
Fri, 8 Apr 2022 23:28:34 +0000 (02:28 +0300)
committerAli Alsuliman <ali.al.solaiman@gmail.com>
Sat, 9 Apr 2022 02:29:08 +0000 (02:29 +0000)
commitc573bc835446d55afc774223998249c177ad6dca
treed6a31b9b3c48ab25b4834f16008dfb551d286b85
parenta81d38112c3c8c114432c5039c0b752a1954dbdd
[NO ISSUE][NET] SSL Socket Fixes

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- On SSL socket handshake failure, deliver any remaining data to requester.
- Since SSL sockets may return 0 as read bytes due to failure
  to decrypt a complete encrypted block, we need to attempt
  to read again until a complete block is decrypted.

Change-Id: I3fbbf80beb588cc3c700ff5eeb66e0d018dfacfe
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/16065
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/api/PartitionReplica.java
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/logging/RemoteLogsNotifier.java
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/IndexReplicationManager.java
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/NetworkingUtil.java
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/messaging/DeleteFileTask.java
hyracks-fullstack/hyracks/hyracks-ipc/src/main/java/org/apache/hyracks/ipc/sockets/SslSocketChannel.java
hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/NetworkUtil.java