Giter Site home page Giter Site logo

Comments (3)

aping avatar aping commented on August 12, 2024

yeah I ran into the same issue, steps to repro

Milvus

milvus 2.4.3 (milvusdb/milvus:v2.4.3), I'm in cluster mode

Write data

first create a collection, then importing data with bulk insert, code is like

writer = RemoteBulkWriter(
    schema=collection.schema,
    remote_path="/bulk-writes",
    connect_param=s3_conn,
    file_type=BulkFileType.PARQUET,
    chunk_size=768 * 1024 * 1024,
)

for ...:
    writer.append_row(...)

writer.commit()

utility.do_bulk_insert(
    collection_name=collection_name,
    files=[file],
)

Observation

I was expecting compaction to kick in but when I check the num of segment files they did not change, so checked logs,

datacoord's logs says

[2024/08/09 07:05:07.809 +00:00] [WARN] [datacoord/session_manager.go:203] ["failed to execute compaction"] [node=3112] [error="segment with flushed state not found: segment not found[segment=450726929646550253]"] [planID=450726929697259555]

datanode's log says

[2024/08/09 07:05:07.809 +00:00] [WARN] [datanode/services.go:225] ["compaction plan contains segment which is not flushed"] [traceID=111152661c2b2462cff77a5c6d56703f] [planID=450726929697259555] [segmentID=450726929646550253]

but when I check the segment in birdwatcher it says it's flushed, like

SegmentID: 450726929646550253 State: Flushed, Row Count:97580

Workaround

for now, after all the writes are done, if I restart the datanodes, compaction starts to work

from milvus.

xiaofan-luan avatar xiaofan-luan commented on August 12, 2024

@sunby @bigsheeper is this the same issue? memory state is consistent with

from milvus.

xiaofan-luan avatar xiaofan-luan commented on August 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: master/2.4
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

imported segment's state is not changed to flushed

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

is there a reason for that? what will be the expected fix?

from milvus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.