Skip to content

[BUG] 指标文件读取方法不正确 #3462

@brucelwl

Description

@brucelwl

while ((second = indexIn.readLong()) < beginSecond) {
offset = indexIn.readLong();
lastPosition.offsetInIndex = in.getChannel().position();
}

209行 offset = indexIn.readLong(); 不应该写, 应该剔除这行, 这样会导致读取的数据不正确

假如读取的是 1729965161000L的数据, 返回的是1729965162000L及之后的数据,
但如果1729965161000L是文件的最后一个时间的记录数据, 又会被读取到

List<MetricNode> metricNodes = searcher.find(1729965161000L, 5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions