apache / apache/iotdb

can't write data into aligned timeseries through MQTT api

Aperta
#5,299 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Module - MQTT
Lingua principale
Java
Stelle
6.4k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
115

Descrizione

**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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la classe MQTTClient nel modulo example e riproduci il report utilizzando la serie temporale allineata root.o308.pd.IT0001 e la misurazione D003. Confronta la scrittura MQTT con i casi funzionanti non allineati e appena creati, quindi verifica con la query SELECT mostrata che i dati D003 siano memorizzati per la serie allineata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api, databases
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.