hongzhi-gao opened a new pull request, #18005: URL: https://github.com/apache/iotdb/pull/18005
## Description ### Tablet bounds - Add `maxRowNumber` checks in `Tablet::addTimestamp` and `Tablet::addValue`. - Validate `ts_tablet_set_row_count` so `rowSize` stays in `[0, maxRowNumber]` (reject negative values). - Map C API `std::out_of_range` to `TS_ERR_INVALID_PARAM`. ### Session close - Align `Session::close()` with Java: close RPC connections and reset `defaultSessionConnection_`. - Route operations through `getDefaultSessionConnection()`; throw `IoTDBConnectionException` when the session is closed. - Preserve `IoTDBConnectionException` in `executeNonQueryStatement` (do not wrap as `IoTDBException`). ### Tests - Add regression tests for tablet bounds and post-close SQL rejection (C++ and C API). <hr> This PR has: - [x] been self-reviewed. - [ ] added documentation for new or modified features or behaviors. - [ ] added Javadocs for most classes and all non-trivial methods. - [ ] added or updated version, __license__, or notice information - [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader. - [x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage. - [x] added integration tests. - [x] been tested in a test IoTDB cluster. <hr> ##### Key changed/added classes (or packages if there are too many classes) in this PR - `Session.h` — tablet bounds - `SessionC.cpp` — C API validation and exception mapping - `Session.cpp` / `SessionImpl.h` — session close and connection guard - `sessionIT.cpp`, `sessionRelationalIT.cpp`, `sessionCIT.cpp`, `sessionCRelationalIT.cpp` — regression tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
