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: Mark bridge unhealthy based on restart requests from endpoints #1210

Merged
merged 13 commits into from
Feb 21, 2025

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Feb 12, 2025

  • ref: Simplify code, order alphabetically.
  • feat: Keep track of number of endpoints on each Bridge.
  • feat: Mark bridge unhealthy based on restart requests from endpoints

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 41.96429% with 65 lines in your changes missing coverage. Please review.

Project coverage is 26.64%. Comparing base (7431511) to head (61e2dc1).
Report is 25 commits behind head on master.

Files with missing lines Patch % Lines
.../src/main/kotlin/org/jitsi/jicofo/bridge/Bridge.kt 28.33% 39 Missing and 4 partials ⚠️
...tsi/jicofo/conference/JitsiMeetConferenceImpl.java 0.00% 10 Missing ⚠️
...i/jicofo/bridge/colibri/ColibriV2SessionManager.kt 0.00% 7 Missing ⚠️
...org/jitsi/jicofo/bridge/VisitorTopologyStrategy.kt 0.00% 3 Missing ⚠️
...in/kotlin/org/jitsi/jicofo/bridge/BridgeMetrics.kt 92.30% 1 Missing ⚠️
...n/kotlin/org/jitsi/jicofo/bridge/BridgeSelector.kt 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1210      +/-   ##
============================================
- Coverage     27.27%   26.64%   -0.64%     
+ Complexity      489      471      -18     
============================================
  Files           125      126       +1     
  Lines          8084     8208     +124     
  Branches       1121     1143      +22     
============================================
- Hits           2205     2187      -18     
- Misses         5597     5731     +134     
- Partials        282      290       +8     
Files with missing lines Coverage Δ
...ain/kotlin/org/jitsi/jicofo/bridge/BridgeConfig.kt 93.69% <100.00%> (+2.51%) ⬆️
...tsi/jicofo/bridge/colibri/ColibriSessionManager.kt 0.00% <ø> (ø)
...in/kotlin/org/jitsi/jicofo/bridge/BridgeMetrics.kt 92.30% <92.30%> (ø)
...n/kotlin/org/jitsi/jicofo/bridge/BridgeSelector.kt 60.46% <50.00%> (-0.31%) ⬇️
...org/jitsi/jicofo/bridge/VisitorTopologyStrategy.kt 0.00% <0.00%> (ø)
...i/jicofo/bridge/colibri/ColibriV2SessionManager.kt 0.00% <0.00%> (ø)
...tsi/jicofo/conference/JitsiMeetConferenceImpl.java 40.39% <0.00%> (-2.16%) ⬇️
.../src/main/kotlin/org/jitsi/jicofo/bridge/Bridge.kt 59.45% <28.33%> (-13.44%) ⬇️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@@ -21,6 +21,7 @@ import com.typesafe.config.ConfigList
import com.typesafe.config.ConfigObject
import com.typesafe.config.ConfigValue
import org.jitsi.config.JitsiConfig
import org.jitsi.jicofo.bridge.BridgeConfig.Companion.BASE
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused by this BASE vs. the BASE defined below

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm confused too. It didn't need to be imported, removed. Not sure why ktlint didn't catch it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like a ktlint bug, it fails to detect an unused import when it's from the same package. I can repro with ktlint 1.5 (with and without maven), but if I isolate it to a trivial case it works.

Copy link
Member Author

Choose a reason for hiding this comment

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

@bgrozev bgrozev merged commit b62948d into jitsi:master Feb 21, 2025
4 checks passed
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.

2 participants