Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Create DiskANN index with WithMmap true should return error #714

Open
1 task done
ThreadDao opened this issue Apr 11, 2024 · 3 comments
Open
1 task done
Assignees

Comments

@ThreadDao
Copy link
Contributor

ThreadDao commented Apr 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

milvus: master-20240411-a938951e-amd64
sdk: go master

Create diskann index with mmap should return error: index type DISKANN does not support mmap

case:

func TestMmapIndexUnsupported(t *testing.T) {
	ctx := createContext(t, time.Second*common.DefaultTimeout*2)
	// connect
	mc := createMilvusClient(ctx, t)

	// create -> insert -> flush -> index -> load
	cp := CollectionParams{CollectionFieldsType: Int64FloatVec, AutoID: false, EnableDynamicField: false,
		ShardsNum: common.DefaultShards, Dim: common.DefaultDim}
	collName := createCollection(ctx, t, mc, cp)

	dp := DataParams{DoInsert: true, CollectionName: collName, CollectionFieldsType: Int64FloatVec, start: 0,
		nb: common.DefaultNb, dim: common.DefaultDim, EnableDynamicField: false}
	insertData(ctx, t, mc, dp)
	mc.Flush(ctx, collName, false)

	//create index with mmap
	idx, _ := entity.NewIndexDISKANN(entity.COSINE)
	err := mc.CreateIndex(ctx, collName, common.DefaultFloatVecFieldName, idx, false, client.WithMmap(true))
	common.CheckErr(t, err, false, "index type DISKANN does not support mmap")
}

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

@ThreadDao
Copy link
Contributor Author

/assign @congqixia

@ThreadDao
Copy link
Contributor Author

server milvus bug

@ThreadDao
Copy link
Contributor Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants