You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "jt2594838 (via GitHub)" <gi...@apache.org> on 2026/07/15 08:50:28 UTC
[PR] Fix MQTT measurement validation [iotdb]
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix MQTT measurement validation [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou merged PR #18215:
URL: https://github.com/apache/iotdb/pull/18215
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org