-
Notifications
You must be signed in to change notification settings - Fork 121
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
LibraryTimeout publish sessions #519
LibraryTimeout publish sessions #519
Conversation
0a6653f
to
8adb98e
Compare
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.
Do you want to expose that message on libraries? Otherwise it's not very useful.
@@ -499,6 +499,9 @@ | |||
description="notifies library instances that they have been timed out, added for monitoring purposes"> | |||
<field name="libraryId" id="1" type="LibraryId"/> | |||
<field name="connectCorrelationId" id="2" type="CorrelationId"/> | |||
<group name="sessions" id="76" dimensionType="groupSizeEncoding"> |
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.
You should increment the version and declare since which this group is present. Also any particular reason for those IDs?
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.
Updated. Thanks.
@@ -125,6 +127,8 @@ public class GatewayPublication extends ClaimablePublication | |||
private static final int THROTTLE_CONFIGURATION_REPLY_LENGTH = HEADER_LENGTH + | |||
ThrottleConfigurationReplyEncoder.BLOCK_LENGTH; | |||
private static final int SEQ_INDEX_SYNC_LENGTH = HEADER_LENGTH + SeqIndexSyncEncoder.BLOCK_LENGTH; | |||
private static final int LIBRARY_TIMEOUT_LENGTH = HEADER_LENGTH + LibraryTimeoutEncoder.BLOCK_LENGTH + | |||
GroupSizeEncodingEncoder.ENCODED_LENGTH * 2; |
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.
Why * 2?
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.
Sorry not needed for this one. Removed. Thanks.
@@ -140,6 +141,12 @@ public class FramerTest | |||
|
|||
private final MutableLong connectionId = new MutableLong(NO_CONNECTION_ID); | |||
private final ErrorHandler errorHandler = mock(ErrorHandler.class); | |||
LivenessDetector livenessDetector = mock(LivenessDetector.class); |
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.
private final
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.
Updated. Thanks.
8adb98e
to
876f9cf
Compare
@wojciech-adaptive |
@@ -499,6 +499,9 @@ | |||
description="notifies library instances that they have been timed out, added for monitoring purposes"> | |||
<field name="libraryId" id="1" type="LibraryId"/> | |||
<field name="connectCorrelationId" id="2" type="CorrelationId"/> | |||
<group name="sessions" id="76" dimensionType="groupSizeEncoding" sinceVersion="25"> |
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.
Since 26. The IDs should be 3 and 4.
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.
Updated. Thanks.
Do you have some custom thread/process subscribed to those messages? |
876f9cf
to
3654cf2
Compare
|
Changes to expose Session info (LibraryTimeOut) owned by that timed out library instance, because "engine.libraries().resultIfPresent().get(0).sessions()" does not contain library info once it was timed out (stopped)