Skip to content

Commit c5952c1

Browse files
authored
BanyanDB: make BanyanDBMetricsDAO output scan all blocks info log only when the model is not indexModel. (#13453)
1 parent 61e84e5 commit c5952c1

File tree

2 files changed

+5
-1
lines changed
  • docs/en/changes
  • oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/measure

2 files changed

+5
-1
lines changed

docs/en/changes/changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
| **Attach Listener** | 1 | RUNNABLE | JVM attach listener thread. |
8888
| **Total** | **158** | - | - |
8989

90+
* BanyanDB: make `BanyanDBMetricsDAO` output `scan all blocks` info log only when the model is not `indexModel`.
91+
9092
#### UI
9193

9294
* Enhance the trace `List/Tree/Table` graph to support displaying multiple refs of spans and distinguishing different parents.

oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/measure/BanyanDBMetricsDAO.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ public List<Metrics> multiGet(Model model, List<Metrics> metrics) throws IOExcep
121121
if (begin != 0L || end != 0L) {
122122
timestampRange = new TimestampRange(begin, end);
123123
} else {
124-
log.info("{}[{}] will scan all blocks", model.getName(), idStr);
124+
if (!model.getBanyanDBModelExtension().isIndexMode()) {
125+
log.info("{}[{}] will scan all blocks", model.getName(), idStr);
126+
}
125127
}
126128

127129
List<Metrics> metricsInStorage = new ArrayList<>(metrics.size());

0 commit comments

Comments
 (0)