iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

Clarify the exception message when using a closed session

Open jt2594838 opened this issue 7 months ago • 2 comments

Session used to throw an NPE when it is invoked, but not opened, which is changed to an IoTDBConnectionException in this PR.

jt2594838 avatar Jun 24 '25 06:06 jt2594838

Quality Gate Failed Quality Gate failed

Failed conditions
12.6% Duplication on New Code (required ≤ 5%)

See analysis details on SonarQube Cloud

sonarqubecloud[bot] avatar Jun 24 '25 07:06 sonarqubecloud[bot]

Codecov Report

Attention: Patch coverage is 60.16260% with 49 lines in your changes missing coverage. Please review.

Project coverage is 39.12%. Comparing base (5cb3881) to head (5c5cf3c). Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...rc/main/java/org/apache/iotdb/session/Session.java 65.17% 39 Missing :warning:
...on/consumer/base/AbstractSubscriptionProvider.java 0.00% 7 Missing :warning:
...va/org/apache/iotdb/session/SessionConnection.java 33.33% 2 Missing :warning:
...ssion/subscription/SubscriptionSessionWrapper.java 0.00% 1 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15811      +/-   ##
============================================
- Coverage     39.12%   39.12%   -0.01%     
  Complexity      198      198              
============================================
  Files          4837     4837              
  Lines        314717   314734      +17     
  Branches      39505    39505              
============================================
- Hits         123139   123133       -6     
- Misses       191578   191601      +23     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Jun 24 '25 07:06 codecov[bot]