Skip to content
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

Add SSL support to transport layer (8.x) #993

Merged
merged 60 commits into from
Apr 19, 2022

Conversation

apeteri
Copy link
Member

@apeteri apeteri commented Mar 17, 2022

No description provided.

...channel; split Netty message handler into two classes; add utility
methods to EventBusNettyUtil
- Update subclasses and references
- Remove "send" method from BaseEvent that returns a Promise
Most of the operations lock a branch or repository target only for a
short time interval eg. during a commit operation, but for some
authoring tasks we allow clients to issue lock requests remotely. These
locks should be released if the client disconnects and does not clean up
on its own.
- Use NioSocketChannel instead of LocalChannel
- Extract SnowOwlConfiguration to a local variable
apeteri added 8 commits March 17, 2022 14:59
After 15 seconds have passed without writing anything to the channel, an
empty object is written to reset the "write idle" timer on the local
side, and the "read idle" timer on the remote. After 30 seconds of no
read activity, the corresponding channel is closed.
feature/SO-4987_netty_eventbus_8x

Conflicts:
	cis/com.b2international.snowowl.snomed.cis.product/.launch/snow-owl-cis.launch
	core/com.b2international.snowowl.core/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus.tests/.classpath
	net4j/com.b2international.snowowl.eventbus.tests/.launch/eventbus-unit-tests.launch
	net4j/com.b2international.snowowl.eventbus.tests/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus/.classpath
	net4j/com.b2international.snowowl.eventbus/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc.test/.classpath
	net4j/com.b2international.snowowl.rpc.test/.launch/rpc-unit-tests.launch
	net4j/com.b2international.snowowl.rpc.test/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc.test/pom.xml
	net4j/com.b2international.snowowl.rpc/.classpath
	net4j/com.b2international.snowowl.rpc/META-INF/MANIFEST.MF
...generation support (module sun.security.x509 provides the relevant
classes)
@apeteri apeteri self-assigned this Mar 17, 2022
@lgtm-com
Copy link

lgtm-com bot commented Mar 17, 2022

This pull request introduces 1 alert when merging aac22f0 into 3e773ca - view on LGTM.com

new alerts:

  • 1 for Potential output resource leak

apeteri added 3 commits March 22, 2022 10:29
...restore TransportConfiguration for timeouts and client-accepted
certificate property.
This avoids leaking event loop groups in case multiple connection
attempts are made from the splash screen.
@cmark
Copy link
Member

cmark commented Apr 1, 2022

@apeteri could you please resolve the conflicts and also port all recent change regard SSL transport to this PR from the 7.x branch? 🙇

apeteri added 3 commits April 8, 2022 11:39
feature/SO-4987_netty_eventbus_8x

Conflicts:
	core/com.b2international.snowowl.core.tests/.launch/core-unit-tests.launch
	net4j/com.b2international.snowowl.eventbus.tests/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus.tests/pom.xml
	net4j/com.b2international.snowowl.eventbus/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus/pom.xml
	net4j/com.b2international.snowowl.rpc.test/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc.test/pom.xml
	net4j/com.b2international.snowowl.rpc/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc/pom.xml
	net4j/pom.xml
	releng/com.b2international.snowowl.server.update/assembly/common/bin/snowowl.bat
	releng/com.b2international.snowowl.server.update/assembly/common/bin/snowowl.sh
@codecov-commenter
Copy link

codecov-commenter commented Apr 8, 2022

Codecov Report

Merging #993 (9f93a00) into 8.x (21db4dd) will increase coverage by 0.19%.
The diff coverage is 67.30%.

@@             Coverage Diff              @@
##                8.x     #993      +/-   ##
============================================
+ Coverage     64.67%   64.87%   +0.19%     
+ Complexity    12160    12138      -22     
============================================
  Files          1703     1696       -7     
  Lines         56635    56250     -385     
  Branches       5271     5199      -72     
============================================
- Hits          36629    36492     -137     
+ Misses        17770    17556     -214     
+ Partials       2236     2202      -34     
Impacted Files Coverage Δ
.../src/com/b2international/snowowl/core/SnowOwl.java 65.25% <ø> (-0.30%) ⬇️
...snowowl/core/authorization/AuthorizedEventBus.java 34.61% <0.00%> (ø)
...rnational/snowowl/core/client/TransportClient.java 0.00% <0.00%> (ø)
...rnational/snowowl/core/events/RepositoryEvent.java 75.00% <ø> (ø)
...ional/snowowl/core/jobs/RemoteJobNotification.java 89.47% <ø> (ø)
...nowowl/core/locks/request/AbstractLockRequest.java 0.00% <0.00%> (ø)
.../snowowl/core/locks/request/LockChangeRequest.java 0.00% <0.00%> (ø)
...l/core/locks/request/LockChangeRequestBuilder.java 0.00% <0.00%> (ø)
...ional/snowowl/core/locks/request/LockRequests.java 0.00% <ø> (ø)
...al/snowowl/core/messaging/MessageNotification.java 0.00% <ø> (ø)
... and 66 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21db4dd...9f93a00. Read the comment docs.

apeteri added 6 commits April 8, 2022 13:16
feature/SO-4987_netty_eventbus_8x

Conflicts:
	net4j/com.b2international.snowowl.eventbus.tests/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus.tests/pom.xml
	net4j/com.b2international.snowowl.eventbus/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus/pom.xml
	net4j/com.b2international.snowowl.rpc.test/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc.test/pom.xml
	net4j/com.b2international.snowowl.rpc/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc/pom.xml
	net4j/pom.xml
@cmark cmark self-requested a review April 19, 2022 13:19
Copy link
Member

@cmark cmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

feature/SO-4987_netty_eventbus_8x

Conflicts:
	net4j/com.b2international.snowowl.eventbus.tests/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus.tests/pom.xml
	net4j/com.b2international.snowowl.eventbus/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.eventbus/pom.xml
	net4j/com.b2international.snowowl.rpc.test/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc.test/pom.xml
	net4j/com.b2international.snowowl.rpc/META-INF/MANIFEST.MF
	net4j/com.b2international.snowowl.rpc/pom.xml
	net4j/pom.xml
@apeteri apeteri merged commit 552e1fa into 8.x Apr 19, 2022
@apeteri apeteri deleted the feature/SO-4987_netty_eventbus_8x branch April 19, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants