can't write data into aligned timeseries through MQTT api
- Lenguaje dominante
- Java
- Estrellas
- 6.4k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 115
Descripción
**Describe the bug**
Failed to write the pre-created aligned timeseries through the MQTT API.But the unaligned timeseries is ok.
**To Reproduce**
Steps to reproduce the behavior:
1. create aligned timeseries root.o308.pd.IT0001(D001 TEXT encoding=PLAIN, D003 FLOAT encoding=GORILLA)
2. Modify the MQTTClient class in the example module of the source code, the code like this:
> String payload =
String.format(
"{\n"
+ "\"device\":\"**root.o308.pd.IT0001**\",\n"
+ "\"timestamp\":%d,\n"
+ "\"measurements\":[\"**D003**\"],\n"
+ "\"values\":[%f]\n"
+ "}",
System.currentTimeMillis(), random.nextDouble());
Thread.sleep(1);
connection.publish("**root.o308.pd.IT0001.D003**", payload.getBytes(), QoS.AT_LEAST_ONCE, false);
4. run the main method,The execution is successful, no error is reported。
5. no data is written.
6. When I change the device in the code to root.o308.pd.IT0002 (a time series that was not pre-created), it can be written normally.And when i pre-created the unaligned timeseries(create timeseries root.sg.d4.s1 FLOAT encoding=RLE),it also written normally.
> IoTDB> select D003 from root.o308.pd.IT0001;
+----+------------------------+
|Time|root.o308.pd.IT0001.D003|
+----+------------------------+
+----+------------------------+
Empty set.
It costs 0.007s
**Expected behavior**
**Screenshots**
**Desktop (please complete the following information):**
- OS: [centos7.8]
- Version [apache-iotdb-0.13.0-SNAPSHOT-all-bin-nightly-2022-03-16-12-12-58-a90f49029-java-8.zip]
**Additional context**
Add any other context about the problem here.
Guía de contribución
Línea de trabajo
Comience con la clase MQTTClient del módulo example y reproduzca el informe utilizando la serie temporal alineada root.o308.pd.IT0001 y la medición D003. Compare la escritura mediante MQTT con los casos funcionales de series no alineadas y recién creadas y, a continuación, verifique con la consulta SELECT mostrada que los datos de D003 se almacenan para la serie alineada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- api, databases
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100