mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
99dff06391
issue: #33285 - using streaming service in insert/upsert/flush/delete/querynode - fixup flusher bugs and refactor the flush operation - enable streaming service for dml and ddl - pass the e2e when enabling streaming service - pass the integration tst when enabling streaming service --------- Signed-off-by: chyezh <chyezh@outlook.com> Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
23 lines
524 B
Go
23 lines
524 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package streamingutil
|
|
|
|
import "os"
|
|
|
|
// SetStreamingServiceEnabled set the env that indicates whether the streaming service is enabled.
|
|
func SetStreamingServiceEnabled() {
|
|
err := os.Setenv(MilvusStreamingServiceEnabled, "1")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
// UnsetStreamingServiceEnabled unsets the env that indicates whether the streaming service is enabled.
|
|
func UnsetStreamingServiceEnabled() {
|
|
err := os.Setenv(MilvusStreamingServiceEnabled, "0")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|