repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/config/event_dispatcher.go
pkg/config/event_dispatcher.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/config/event.go
pkg/config/event.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/config/env_source.go
pkg/config/env_source.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/config/manager.go
pkg/config/manager.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_text_encoder_test.go
pkg/log/zap_text_encoder_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/log_test.go
pkg/log/log_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/lazy_with.go
pkg/log/lazy_with.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/config.go
pkg/log/config.go
// Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_test_logger.go
pkg/log/zap_test_logger.go
// Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/mlogger_test.go
pkg/log/mlogger_test.go
package log import ( "context" "fmt" "testing" "time" "github.com/stretchr/testify/assert" "go.uber.org/zap" ) func TestExporterV2(t *testing.T) { ts := newTestLogSpy(t) conf := &Config{Level: "debug", DisableTimestamp: true} logger, properties, _ := InitTestLogger(ts, conf) ReplaceGlobals(logger, properti...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_async_buffered_write_core.go
pkg/log/zap_async_buffered_write_core.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/log.go
pkg/log/log.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_text_encoder.go
pkg/log/zap_text_encoder.go
// Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_log_test.go
pkg/log/zap_log_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/mlogger.go
pkg/log/mlogger.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/with_logger_test.go
pkg/log/with_logger_test.go
package log import ( "testing" ) func TestLoggerBinder(t *testing.T) { type b struct { Binder } bb := b{} bb.Logger().Debug("test") bb.SetLogger(With(FieldModule("test"), FieldComponent("test"), FieldMessage(username("123")))) bb.Logger().Debug("test") bb.SetLogger(nil) bb.Logger().Debug("test") }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_text_core.go
pkg/log/zap_text_core.go
// Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/with_logger.go
pkg/log/with_logger.go
package log import "go.uber.org/atomic" var ( _ WithLogger = &Binder{} _ LoggerBinder = &Binder{} ) // WithLogger is an interface to help access local logger. type WithLogger interface { Logger() *MLogger } // LoggerBinder is an interface to help set logger. type LoggerBinder interface { SetLogger(logger *MLo...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/zap_async_buffered_write_core_test.go
pkg/log/zap_async_buffered_write_core_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/global.go
pkg/log/global.go
// Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/pkg/log/fields.go
pkg/log/fields.go
package log import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" ) const ( FieldNameModule = "module" FieldNameComponent = "component" ) // FieldModule returns a zap field with the module name. func FieldModule(module string) zap.Field { return zap.String(FieldNameModule, module) } // FieldComponent returns...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/main.go
cmd/main.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/datameta/main.go
cmd/tools/datameta/main.go
package main import ( "context" "flag" "fmt" "sort" "strings" "go.uber.org/zap" "google.golang.org/protobuf/proto" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/pkg/v2/log" "github.com/milvus-io/milvus/pkg/v2/proto/datapb" "github.com/milvus-io/milvus/pkg/v2/util/etcd"...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/config-docs-generator/main.go
cmd/tools/config-docs-generator/main.go
package main import ( "flag" "fmt" "log" "os" "path/filepath" "strings" "github.com/pkg/errors" "gopkg.in/yaml.v3" ) var ( inputFile = "configs/milvus.yaml" outputPath = os.Getenv("PWD") ) func main() { flag.StringVar(&inputFile, "i", inputFile, "input file") flag.StringVar(&outputPath, "o", outputPath...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/binlog/main.go
cmd/tools/binlog/main.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/main.go
cmd/tools/migration/main.go
package main import ( "os" "github.com/milvus-io/milvus/cmd/tools/migration/command" ) func main() { command.Execute(os.Args) }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/rollback.go
cmd/tools/migration/command/rollback.go
package command import ( "context" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/console" "github.com/milvus-io/milvus/cmd/tools/migration/migration" ) func Rollback(c *configs.Config) { ctx := context.Background() runner := migration.NewRunner(ctx, ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/config.go
cmd/tools/migration/command/config.go
package command import ( "flag" "github.com/milvus-io/milvus/cmd/tools/migration/console" ) type commandParser struct { configYaml string } func (c *commandParser) formatYaml(args []string, flags *flag.FlagSet) { flags.StringVar(&c.configYaml, "config", "", "set config yaml") } func (c *commandParser) parse(ar...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/backup.go
cmd/tools/migration/command/backup.go
package command import ( "context" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/console" "github.com/milvus-io/milvus/cmd/tools/migration/migration" ) func Backup(c *configs.Config) { ctx := context.Background() runner := migration.NewRunner(ctx, c)...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/run.go
cmd/tools/migration/command/run.go
package command import ( "context" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/console" "github.com/milvus-io/milvus/cmd/tools/migration/migration" ) func Run(c *configs.Config) { ctx := context.Background() runner := migration.NewRunner(ctx, c) c...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/help.go
cmd/tools/migration/command/help.go
package command import "fmt" var ( usageLineV2 = fmt.Sprintf("Usage:\n"+ "%s\n", runLineV2) runLineV2 = ` migration -config=config.yaml ` )
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/command/main.go
cmd/tools/migration/command/main.go
package command import ( "flag" "fmt" "os" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/console" ) func Execute(args []string) { flags := flag.NewFlagSet(args[0], flag.ExitOnError) flags.Usage = func() { fmt.Fprintln(os.Stderr, usageLineV2) } ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/console/exit_config.go
cmd/tools/migration/console/exit_config.go
package console type exitConfig struct { abnormal bool code ErrorCode msg string callbacks []func() } func defaultExitConfig() exitConfig { return exitConfig{ abnormal: false, code: NormalCode, msg: "", callbacks: make([]func(), 0), } } type ExitOption func(c *exitConfig) func ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/console/console_test.go
cmd/tools/migration/console/console_test.go
package console import ( "testing" ) func TestSuccess(t *testing.T) { Success("success") } func TestError(t *testing.T) { Error("error") } func TestWarning(t *testing.T) { Warning("warning") } func TestExitIf(t *testing.T) { ExitIf(nil) }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/console/console.go
cmd/tools/migration/console/console.go
package console import ( "fmt" "os" "github.com/mgutz/ansi" ) func Success(msg string) { colorOut(msg, "green") } func Error(msg string) { colorOut(msg, "red") } func Warning(msg string) { colorOut(msg, "yellow") } func Exit(msg string, options ...ExitOption) { opts := append([]ExitOption{}, options...) o...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/console/code.go
cmd/tools/migration/console/code.go
package console type ErrorCode = int const ( NormalCode ErrorCode = 0 FailWithBackupUnfinished ErrorCode = 1 FailButBackupFinished ErrorCode = 2 Unexpected ErrorCode = 100 )
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/console/exit.go
cmd/tools/migration/console/exit.go
package console import ( "os" ) func ExitWithOption(opts ...ExitOption) { c := defaultExitConfig() c.apply(opts...) if c.abnormal { Error(c.msg) } else { Success(c.msg) } c.runBeforeExit() os.Exit(c.code) } func AbnormalExit(backupFinished bool, msg string, options ...ExitOption) { opts := append([]Exit...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/mmap/mmap_230_240.go
cmd/tools/migration/mmap/mmap_230_240.go
package mmap import ( "context" "fmt" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/rootcoord" "github.com/milvus-io/milvus/internal/tso" "github.com/milvus-io...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/mmap/tool/main.go
cmd/tools/migration/mmap/tool/main.go
package main import ( "context" "flag" "fmt" "os" "time" "github.com/milvus-io/milvus/cmd/tools/migration/mmap" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" kv_tikv "github.com/milvus-io/milvus/internal/kv/tikv" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/utils/util.go
cmd/tools/migration/utils/util.go
package utils import ( "fmt" "strconv" "strings" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) type ( UniqueID = typeutil.UniqueID Timestamp = typeutil.Timestamp ) type errNotOfTsKey struct { key string } func (e errNotOfTsKey) Error() s...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/utils/util_test.go
cmd/tools/migration/utils/util_test.go
package utils import ( "testing" "github.com/stretchr/testify/assert" ) func TestSplitBySeparator(t *testing.T) { tsKey := "435783141193354561_ts435783141193154564" k, ts, err := SplitBySeparator(tsKey) assert.NoError(t, err) assert.Equal(t, "435783141193354561", k) assert.Equal(t, Timestamp(43578314119315456...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/etcd.go
cmd/tools/migration/backend/etcd.go
package backend import ( "context" clientv3 "go.etcd.io/etcd/client/v3" "github.com/milvus-io/milvus/cmd/tools/migration/configs" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/pkg/v2/kv" "github.com/milvus-io/milvus/pkg/v2/util/etcd" ) type etcdBasedBackend struct { cfg ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/backup_header.pb.go
cmd/tools/migration/backend/backup_header.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.33.0 // protoc v3.21.4 // source: backup_header.proto package backend import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/backup_header.go
cmd/tools/migration/backend/backup_header.go
package backend import ( "encoding/json" "github.com/milvus-io/milvus/cmd/tools/migration/console" ) type BackupHeaderVersion int32 const ( BackupHeaderVersionV1 BackupHeaderVersion = iota ) type BackupHeaderExtra struct { EntryIncludeRootPath bool `json:"entry_include_root_path"` } type extraOption func(extr...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/etcd220.go
cmd/tools/migration/backend/etcd220.go
package backend import ( "context" "fmt" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/meta" "github.com/milvus-io/milvus/internal/metastore/kv/querycoord" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" "github.com/milvus-io/milvus/pkg...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/backup_restore_test.go
cmd/tools/migration/backend/backup_restore_test.go
package backend import ( "reflect" "testing" "github.com/stretchr/testify/assert" "google.golang.org/protobuf/encoding/prototext" ) func TestBackupCodec_Serialize(t *testing.T) { header := &BackupHeader{ Version: int32(BackupHeaderVersionV1), Instance: "/by-dev", MetaPath: "meta", Entries: 0, Co...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/etcd210.go
cmd/tools/migration/backend/etcd210.go
package backend import ( "context" "fmt" "path" "strconv" "strings" "github.com/cockroachdb/errors" clientv3 "go.etcd.io/etcd/client/v3" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/console" "github.com/milvus...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/backend.go
cmd/tools/migration/backend/backend.go
package backend import ( "fmt" "github.com/blang/semver/v4" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "github.com/milvus-io/milvus/cmd/tools/migration/meta" "github.com/milvus-io/milvus/cmd/tools/migration/versions" "github.com/milvus-io/milvus/pkg/v2/util" ) type Backend interface { Load() (...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/backend/backup_restore.go
cmd/tools/migration/backend/backup_restore.go
package backend import ( "encoding/binary" "fmt" "io" "github.com/cockroachdb/errors" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" ) type BackupFile []byte func (f *BackupFile) Reset() { *f = nil } func (f *BackupFile) writeBytes(bs []byte) { *f = append(*f, bs...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/migration/constant.go
cmd/tools/migration/migration/constant.go
package migration import "github.com/milvus-io/milvus/pkg/v2/util/typeutil" const ( Role = "migration" ) var Roles = []string{ typeutil.MixCoordRole, typeutil.RootCoordRole, typeutil.IndexCoordRole, typeutil.IndexNodeRole, typeutil.DataCoordRole, typeutil.DataNodeRole, typeutil.QueryCoordRole, typeutil.Quer...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/migration/runner.go
cmd/tools/migration/migration/runner.go
package migration import ( "context" "fmt" "strings" "sync" "time" "github.com/blang/semver/v4" "github.com/cockroachdb/errors" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/atomic" "github.com/milvus-io/milvus/cmd/tools/migration/backend" "github.com/milvus-io/milvus/cmd/tools/migration/configs" "gi...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/migration/migrator.go
cmd/tools/migration/migration/migrator.go
package migration import ( "fmt" "github.com/blang/semver/v4" "github.com/milvus-io/milvus/cmd/tools/migration/meta" "github.com/milvus-io/milvus/cmd/tools/migration/versions" ) type Migrator interface { Migrate(metas *meta.Meta) (*meta.Meta, error) } func NewMigrator(sourceVersion, targetVersion string) (Mig...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/migration/210_to_220.go
cmd/tools/migration/migration/210_to_220.go
package migration import ( "github.com/milvus-io/milvus/cmd/tools/migration/meta" ) type migrator210To220 struct{} func (m migrator210To220) Migrate(metas *meta.Meta) (*meta.Meta, error) { return meta.From210To220(metas) } func newMigrator210To220() *migrator210To220 { return &migrator210To220{} }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/migration/migration.go
cmd/tools/migration/migration/migration.go
package migration type Migration interface { // Validate if migration can be executed. For example, higher version to lower version is not allowed. Validate() error // CheckCompatible check if target is compatible with source. If compatible, no migration should be executed. CheckCompatible() bool // CheckSessions...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/legacy/constant.go
cmd/tools/migration/legacy/constant.go
package legacy import "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" const ( DDOperationPrefixBefore220 = rootcoord.ComponentPrefix + "/dd-operation" DDMsgSendPrefixBefore220 = rootcoord.ComponentPrefix + "/dd-msg-send" IndexMetaBefore220Prefix = rootcoord.ComponentPrefix + "/index" SegmentI...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/legacy/util.go
cmd/tools/migration/legacy/util.go
package legacy import ( "fmt" "github.com/milvus-io/milvus/cmd/tools/migration/utils" ) func BuildCollectionIndexKey210(collectionID, indexID utils.UniqueID) string { return fmt.Sprintf("%s/%d/%d", IndexMetaBefore220Prefix, collectionID, indexID) } func BuildSegmentIndexKey210(segmentID, indexID utils.UniqueID) ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/configs/config.go
cmd/tools/migration/configs/config.go
package configs import ( "fmt" "strconv" "github.com/milvus-io/milvus/cmd/tools/migration/console" "github.com/milvus-io/milvus/pkg/v2/util" "github.com/milvus-io/milvus/pkg/v2/util/paramtable" ) const ( RunCmd = "run" BackupCmd = "backup" RollbackCmd = "rollback" ) type RunConfig struct { base ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/versions/version_test.go
cmd/tools/migration/versions/version_test.go
package versions import ( "testing" "github.com/blang/semver/v4" ) func TestRange21x(t *testing.T) { type args struct { version semver.Version } tests := []struct { name string args args want bool }{ { args: args{version: VersionMax}, want: false, }, { args: args{version: Version230}, ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/versions/version.go
cmd/tools/migration/versions/version.go
package versions import "github.com/blang/semver/v4" const ( version210Str = "2.1.0" version220Str = "2.2.0" version230Str = "2.3.0" VersionMaxStr = "1000.1000.1000" ) var ( Version220 semver.Version Version210 semver.Version Version230 semver.Version VersionMax semver.Version ) func init() { Version210, _...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/allocator/atomic_allocator_test.go
cmd/tools/migration/allocator/atomic_allocator_test.go
package allocator import ( "sync" "testing" "github.com/stretchr/testify/assert" ) func TestAtomicAllocator_AllocID(t *testing.T) { n := 100 alloc := NewAllocator() wg := &sync.WaitGroup{} for i := 0; i < n; i++ { wg.Add(1) go func() { defer wg.Done() _, err := alloc.AllocID() assert.NoError(t, e...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/allocator/allocator_from_list_test.go
cmd/tools/migration/allocator/allocator_from_list_test.go
package allocator import ( "sync" "testing" "github.com/stretchr/testify/assert" ) func TestAllocatorFromList(t *testing.T) { t.Run("de asc", func(t *testing.T) { s := []int64{100000, 10000, 1000} alloc := NewAllocatorFromList(s, true, true) n := 100 wg := &sync.WaitGroup{} for i := 0; i < n; i++ { ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/allocator/allocator_from_list.go
cmd/tools/migration/allocator/allocator_from_list.go
package allocator import "sort" func makeClone(s []int64) []int64 { clone := make([]int64, len(s)) copy(clone, s) return clone } func NewAllocatorFromList(s []int64, useClone, deAsc bool) *AtomicAllocator { initialized, delta := int64(defaultInitializedValue), int64(defaultDelta) clone := s if useClone { clo...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/allocator/allocator.go
cmd/tools/migration/allocator/allocator.go
package allocator import "github.com/milvus-io/milvus/pkg/v2/util/typeutil" type Allocator interface { AllocID() (typeutil.UniqueID, error) }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/allocator/atomic_allocator.go
cmd/tools/migration/allocator/atomic_allocator.go
package allocator import ( "go.uber.org/atomic" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) const ( defaultInitializedValue = 0 defaultDelta = 1 ) type AtomicAllocator struct { now atomic.Int64 delta int64 } type Option func(allocator *AtomicAllocator) func WithInitializedValue(value i...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/meta/meta.go
cmd/tools/migration/meta/meta.go
package meta import ( "github.com/blang/semver/v4" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) type ( UniqueID = typeutil.UniqueID Timestamp = typeutil.Timestamp ) type Meta struct { SourceVersion semver.Version Version semver.Version Meta210 *All210 Meta220 *All220 }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/meta/210_to_220.go
cmd/tools/migration/meta/210_to_220.go
package meta import ( "fmt" "sort" "strconv" "strings" "go.uber.org/zap" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus/cmd/tools/migration/allocator" "github.com/milvus-io/milvus/cmd/tools/migration/legacy/legacypb" "github.com/milvus-io/milvus/cmd/tools/migration/versi...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/meta/meta210.go
cmd/tools/migration/meta/meta210.go
package meta import ( "fmt" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/milvus/cmd/tools/migration/legacy" "github.com/milvus-io/milvus/cmd/tools/migration/legacy/legacypb" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" "github...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/migration/meta/meta220.go
cmd/tools/migration/meta/meta220.go
package meta import ( "github.com/blang/semver/v4" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus/cmd/tools/migration/versions" "github.com/milvus-io/milvus/internal/metastore/kv/datacoord" "github.com/milvus-io/milvus/internal/metastore/kv/querycoord" "github.com/milvus-io/milvus/internal/meta...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/config/generate_test.go
cmd/tools/config/generate_test.go
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/config/printer.go
cmd/tools/config/printer.go
package main import ( "fmt" "os" "sort" "github.com/spf13/viper" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/v2/log" ) func ShowYaml(filepath string) { reader := viper.New() reader.SetConfigFile(filepath) if err := reader.ReadInConfig(); err != nil { log.Warn("read config failed", zap.Error(err)) ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/config/generate.go
cmd/tools/config/generate.go
package main import ( "context" "encoding/csv" "fmt" "io" "reflect" "sort" "strings" "github.com/samber/lo" "go.uber.org/zap" "golang.org/x/exp/slices" "github.com/milvus-io/milvus/pkg/v2/log" "github.com/milvus-io/milvus/pkg/v2/util/paramtable" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) type...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/tools/config/main.go
cmd/tools/config/main.go
package main import ( "fmt" "os" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/v2/log" ) const ( generateCsv = "gen-csv" generateYaml = "gen-yaml" showYaml = "show-yaml" ) func main() { args := os.Args if len(args) < 2 { log.Error("len of args should large than 2") os.Exit(-1) } switch ar...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/proxy.go
cmd/components/proxy.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/mix_coord.go
cmd/components/mix_coord.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/data_node.go
cmd/components/data_node.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/util.go
cmd/components/util.go
package components import ( "context" "fmt" "os" "path/filepath" "runtime/pprof" "time" "github.com/cockroachdb/errors" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/v2/log" "github.com/milvus-io/milvus/pkg/v2/util/conc" "github.com/milvus-io/milvus/pkg/v2/util/paramtable" ) var errStopTimeout = err...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/query_node.go
cmd/components/query_node.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/streaming_node.go
cmd/components/streaming_node.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/util_test.go
cmd/components/util_test.go
package components import ( "testing" "time" "github.com/cockroachdb/errors" "github.com/stretchr/testify/assert" ) func TestExitWithTimeout(t *testing.T) { // only normal path can be tested. targetErr := errors.New("stop error") err := exitWhenStopTimeout(func() error { time.Sleep(1 * time.Second) return...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/components/cdc.go
cmd/components/cdc.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/roles/roles_test.go
cmd/roles/roles_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/roles/roles.go
cmd/roles/roles.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/asan/asan_leak_nocheck.go
cmd/asan/asan_leak_nocheck.go
//go:build !use_asan // +build !use_asan package asan func LsanDoLeakCheck() { }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/asan/asan_leak_check.go
cmd/asan/asan_leak_check.go
//go:build use_asan // +build use_asan package asan // void __lsan_do_leak_check(void); import "C" func LsanDoLeakCheck() { C.__lsan_do_leak_check() }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/stop.go
cmd/milvus/stop.go
package milvus import ( "flag" "fmt" "io" "os" "path" "syscall" "github.com/milvus-io/milvus/pkg/v2/util/hardware" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) const ( StopCmd = "stop" ) type stop struct { serverType string svrAlias string } func (c *stop) getHelp() string { return stopLine +...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/milvus.go
cmd/milvus/milvus.go
package milvus import ( "flag" "fmt" "os" ) const ( DryRunCmd = "dry-run" ) var ( BuildTags = "unknown" BuildTime = "unknown" GitCommit = "unknown" GoVersion = "unknown" ) type command interface { execute(args []string, flags *flag.FlagSet) } type dryRun struct{} func (c *dryRun) execute(args []string, f...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/milvus_test.go
cmd/milvus/milvus_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/util.go
cmd/milvus/util.go
package milvus import ( "context" "encoding/json" "flag" "fmt" "io" "os" "path" "runtime" "strconv" "strings" "time" "github.com/cockroachdb/errors" "github.com/gofrs/flock" "github.com/samber/lo" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" "github.com/milvus-io/milvus/cmd/roles" "github...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/mck.go
cmd/milvus/mck.go
package milvus import ( "bytes" "context" "flag" "fmt" "os" "path/filepath" "strconv" "strings" "time" "github.com/cockroachdb/errors" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" etcdkv "github.com/mil...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/run.go
cmd/milvus/run.go
package milvus import ( "flag" "fmt" "io" "os" "os/signal" "syscall" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/v2/common" "github.com/milvus-io/milvus/pkg/v2/log" "github.com/milvus-io/milvus/pkg/v2/metrics" "github.com/milvus-io/milvus/pkg/v2/util/hardware" "github.com/milvus-io/milvus/pkg/v2/u...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/milvus/help.go
cmd/milvus/help.go
package milvus import ( "fmt" "strings" "github.com/milvus-io/milvus/pkg/v2/util/typeutil" ) const ( RunCmd = "run" ) var ( usageLine = fmt.Sprintf("Usage:\n"+ "%s\n%s\n%s\n%s\n", runLine, stopLine, mckLine, serverTypeLine) serverTypeLine = ` [server type] ` + strings.Join(typeutil.ServerTypeList(), "\n\t...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/cmd/embedded/embedded.go
cmd/embedded/embedded.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/suite_options.go
tests/integration/suite_options.go
package integration type clusterSuiteOption struct { dropAllCollectionsWhenTestTearDown bool notResetDeploymentWhenTestTearDown bool } type ClusterSuiteOption func(o *clusterSuiteOption) // WithDropAllCollectionsWhenTestTearDown drop all collections when test tear down func WithDropAllCollectionsWhenTestTearDown()...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/util_collection.go
tests/integration/util_collection.go
package integration import ( "context" "fmt" "strconv" "strings" "go.uber.org/zap" "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/mi...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/meta_watcher_test.go
tests/integration/meta_watcher_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/util_insert.go
tests/integration/util_insert.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/util_index.go
tests/integration/util_index.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/util_query.go
tests/integration/util_query.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/util_insert_test.go
tests/integration/util_insert_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/tests/integration/suite.go
tests/integration/suite.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false