apache / apache/hertzbeat

upgrade 1.4 startup error

Open
#1,204 4 comments 2 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Question

ERROR org.dromara.hertzbeat.warehouse.store.HistoryIotDbDataStorage - 313: failed to insert measurements [read_only] caused by DataT
ype mismatch, Insert measurement read_only type TEXT, metadata tree type DOUBLE
org.apache.iotdb.rpc.StatementExecutionException: 313: failed to insert measurements [read_only] caused by DataType mismatch, Insert measurement read_only type TEXT, metadata tree type DOU
BLE
at org.apache.iotdb.rpc.RpcUtils.verifySuccess(RpcUtils.java:98)
at org.apache.iotdb.rpc.RpcUtils.verifySuccessWithRedirection(RpcUtils.java:119)
at org.apache.iotdb.session.SessionConnection.verifySuccessWithRedirectionWrapper(SessionConnection.java:526)
at org.apache.iotdb.session.SessionConnection.insertTablet(SessionConnection.java:643)
at org.apache.iotdb.session.Session.insertTablet(Session.java:2139)
at org.apache.iotdb.session.pool.SessionPool.insertTablet(SessionPool.java:576)
at org.dromara.hertzbeat.warehouse.store.HistoryIotDbDataStorage.saveData(HistoryIotDbDataStorage.java:237)
at org.dromara.hertzbeat.warehouse.store.DataStorageDispatch.lambda$startStoragePersistentData$3(DataStorageDispatch.java:91)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Contributor guide

Open the contributing guide

Research direction

Reproduce the 1.4 startup scenario and start at HistoryIotDbDataStorage.saveData in HistoryIotDbDataStorage.java around line 237, following the insertTablet stack trace. Compare the inserted read_only type with the metadata tree type and determine what behavior should change; done means the startup path no longer reports this DataType mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.