jt2594838 opened a new pull request, #18215: URL: https://github.com/apache/iotdb/pull/18215
## Description Validate tree-model MQTT measurements with `PathUtils.checkIsLegalSingleMeasurementsAndUpdate` before constructing the insert statement. This aligns MQTT writes with the RPC write path and rejects invalid single-node measurement names such as `a.b`. Add an MQTT integration test that publishes an invalid measurement followed by a valid marker in the same payload, then verifies that only the valid timeseries is created. ## Tests - `mvn test -pl external-service-impl/mqtt` - `mvn verify -DskipUTs -Dit.test=IoTDBMQTTServiceJsonIT#testIllegalMeasurementIsRejected -DfailIfNoTests=false -Dfailsafe.failIfNoSpecifiedTests=false -Drat.skip=true -pl integration-test -am -P with-integration-tests` <hr> This PR has: - [x] been self-reviewed. - [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 - `MPPPublishHandler` - `IoTDBMQTTServiceJsonIT` -- 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]
