Skip to content

Implement UDP transport for air-gap sink#17954

Open
Caideyipi wants to merge 2 commits into
masterfrom
air-gap-udp-transport
Open

Implement UDP transport for air-gap sink#17954
Caideyipi wants to merge 2 commits into
masterfrom
air-gap-udp-transport

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

  • Add tcp/udp transport option and UDP packet size validation for air-gap connector/sink.
  • Send UDP air-gap datagrams with the existing envelope/ACK flow and slice oversized requests.
  • Make the receiver listen on UDP on the air-gap port and keep per UDP client receiver/session state.

Tests

  • mvn -DskipTests spotless:apply -pl iotdb-core/node-commons,iotdb-core/datanode
  • mvn -pl iotdb-core/node-commons -DskipTests compile
  • git diff --check
  • mvn -pl iotdb-core/datanode -Dtest=IoTDBDataRegionAirGapSinkTest,IoTDBAirGapReceiverTest test (fails during existing datanode compilation: missing parser/generated/calc/consensus symbols such as AlterTopicContext, ComparatorChain, PERCENTILE, and IStateMachine.loadSnapshot return mismatch)

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.22318% with 102 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.16%. Comparing base (8fad784) to head (50aa7a8).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...iver/protocol/airgap/IoTDBAirGapReceiverAgent.java 7.40% 50 Missing ⚠️
.../receiver/protocol/airgap/IoTDBAirGapReceiver.java 39.21% 31 Missing ⚠️
...db/commons/pipe/sink/protocol/IoTDBAirGapSink.java 84.61% 18 Missing ⚠️
...er/protocol/thrift/IoTDBDataNodeReceiverAgent.java 62.50% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17954      +/-   ##
============================================
+ Coverage     41.15%   41.16%   +0.01%     
  Complexity      318      318              
============================================
  Files          5258     5258              
  Lines        365613   365819     +206     
  Branches      47282    47307      +25     
============================================
+ Hits         150460   150603     +143     
- Misses       215153   215216      +63     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant