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

feat: stale event detector #13009

Merged
merged 24 commits into from May 13, 2024
Merged

feat: stale event detector #13009

merged 24 commits into from May 13, 2024

Conversation

cody-littley
Copy link
Contributor

closes #13001

Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
@cody-littley cody-littley added this to the v0.50 milestone Apr 25, 2024
@cody-littley cody-littley self-assigned this Apr 25, 2024
Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Restart) Results

2 tests   2 ✅  7m 47s ⏱️
2 suites  0 💤
2 files    0 ❌

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Node Death Reconnect) Results

2 tests   2 ✅  9m 3s ⏱️
2 suites  0 💤
2 files    0 ❌

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Token) Results

235 tests   233 ✅  21m 1s ⏱️
 17 suites    2 💤
 17 files      0 ❌

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Misc) Results

459 tests   448 ✅  43m 8s ⏱️
 77 suites   10 💤
 77 files      1 ❌

For more details on these failures, see this check.

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Crypto) Results

335 tests   335 ✅  39m 28s ⏱️
 25 suites    0 💤
 25 files      0 ❌

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Time Consuming) Results

21 tests   21 ✅  54m 18s ⏱️
 3 suites   0 💤
 3 files     0 ❌

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: Unit Test Results

  2 284 files  + 2    2 284 suites  +2   1h 58m 56s ⏱️ - 13m 38s
118 838 tests +10  118 771 ✅ +10  67 💤 ±0  0 ❌ ±0 
127 326 runs  +10  127 259 ✅ +10  67 💤 ±0  0 ❌ ±0 

Results for commit 824d8b8. ± Comparison against base commit ea76bda.

This pull request removes 4021 and adds 3795 tests. Note that renamed tests count towards both.

  
             IssuerDN: CN=s-aaaa
            SubjectDN: CN=s-aaaa
           Final Date: Fri Jan 01 00:00:00 UTC 2100
           Public Key: RSA Public Key [2e:28:bc:1e:d3:83:25:92:8e:cb:98:b1:b6:84:06:9c:d5:d8:14:d5],[56:66:d1:a4]
           Start Date: Sat Jan 01 00:00:00 UTC 2000
         SerialNumber: 12482092706667292405
        modulus: c1a0ff5d2372b53d12d12bb87dd03f5…
   Address[id=0,nickname=Austin,selfName=aaaa,weight=1000,hostnameInternal=127.0.0.1,portInternalIpv4=16700,hostnameExternal=131.178.48.79,portExternalIpv4=7006,sigPublicKey=<null>,agreePublicKey=<null>,sigCert=com.swirlds.platform.crypto.SerializableX509Certificate@75e9ccfe,agreeCert=com.swirlds.platform.crypto.SerializableX509Certificate@2911f7a,memo=7ph3eSAgG2],
…
com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [4] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [6] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [7]   
  
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [10] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@bbce7d06
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [11] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@bb019d3
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [12] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@47ead9fb
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [13] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@9059326e
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [14] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@46b1bfc3
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [15] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@41cac30d
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [16] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@1d1458f3
…

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Smart Contract) Results

592 tests   591 ✅  1h 6m 58s ⏱️
 63 suites    0 💤
 63 files      1 ❌

For more details on these failures, see this check.

Results for commit 824d8b8.

♻️ This comment has been updated with latest results.

@cody-littley cody-littley changed the title 13001 stale event detector feat: stale event detector Apr 26, 2024
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
@cody-littley cody-littley marked this pull request as ready for review April 26, 2024 14:51
@cody-littley cody-littley requested review from a team as code owners April 26, 2024 14:51
@cody-littley cody-littley requested review from imalygin, lpetrovic05, alittley and kfa-aguda and removed request for leninmehedy and imalygin April 26, 2024 14:52
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
@lpetrovic05
Copy link
Member

Long ago when we designed the consensus engine, we agreed that it would detect stale event internally. It would be a simple change contained within 1 component. So why use this approach?

Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
@cody-littley
Copy link
Contributor Author

@lpetrovic05

Long ago when we designed the consensus engine, we agreed that it would detect stale event internally. It would be a simple change contained within 1 component. So why use this approach?

The problem I keep running into when I try to do this in the consensus engine is that it drastically increases the complexity of that component (adding new inputs, adding new outputs, etc.). In my mind, the overhead of keeping a stand alone hash map of non-ancient self events is justified by the separation of concerns and reduction in complexity of the consensus engine.

Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
@cody-littley cody-littley merged commit 1722fef into develop May 13, 2024
39 of 43 checks passed
@cody-littley cody-littley deleted the 13001-stale-event-detector branch May 13, 2024 18:51
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.

Stale Event Detector
5 participants