influxdata / influxdata/influxdb-java
BatchProcessor exception handler is not triggering
- Ngôn ngữ chính
- Java
- Star
- 1.2k
- Fork
- 469
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Expected behaviour:
When registering an exceptionHandler in BatchOptions, it should be invoked when data cannot be written.
Actual behaviour:
The handler isn't invoked, not even when attempting to write to a database that cannot even be connected to (because it doesn't exist). Log calls invoked by it are not showing up in the log, and debugging breakpoints set in the handler are never triggered.
This is how I register the handler (Kotlin syntax, but you should easily get the idea):
```
InfluxDBFactory.connect(props.uri, props.user, props.password).apply {
setDatabase(props.name)
enableBatch(BatchOptions.DEFAULTS.exceptionHandler { point, e ->
log.error("Error during write", e)
})
}
```
I can run this code against a bogus uri, and the handler doesn't trigger. Am I doing something completely wrong here?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start with BatchOptions.exceptionHandler, enableBatch, and the BatchProcessor path used after InfluxDBFactory.connect. Reproduce the report with a bogus URI and trace whether write failures reach the registered handler. Done means the handler is invoked and its log output is observable for an unwritable database.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- backend, databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100