2021-01-19 11:37:16 +08:00
|
|
|
package datanode
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestParamTable_DataNode(t *testing.T) {
|
|
|
|
|
|
|
|
Params.Init()
|
|
|
|
|
2021-01-24 21:20:11 +08:00
|
|
|
t.Run("Test NodeID", func(t *testing.T) {
|
|
|
|
id := Params.NodeID
|
|
|
|
log.Println("NodeID:", id)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test flowGraphMaxQueueLength", func(t *testing.T) {
|
|
|
|
length := Params.FlowGraphMaxQueueLength
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("flowGraphMaxQueueLength:", length)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test flowGraphMaxParallelism", func(t *testing.T) {
|
|
|
|
maxParallelism := Params.FlowGraphMaxParallelism
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("flowGraphMaxParallelism:", maxParallelism)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test FlushInsertBufSize", func(t *testing.T) {
|
|
|
|
size := Params.FlushInsertBufferSize
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("FlushInsertBufferSize:", size)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test FlushDdBufSize", func(t *testing.T) {
|
|
|
|
size := Params.FlushDdBufferSize
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("FlushDdBufferSize:", size)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test InsertBinlogRootPath", func(t *testing.T) {
|
|
|
|
path := Params.InsertBinlogRootPath
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("InsertBinlogRootPath:", path)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test DdBinlogRootPath", func(t *testing.T) {
|
|
|
|
path := Params.DdBinlogRootPath
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("DdBinlogRootPath:", path)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test PulsarAddress", func(t *testing.T) {
|
|
|
|
address := Params.PulsarAddress
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("PulsarAddress:", address)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test insertChannelNames", func(t *testing.T) {
|
|
|
|
names := Params.InsertChannelNames
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("InsertChannelNames:", names)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test ddChannelNames", func(t *testing.T) {
|
|
|
|
names := Params.DDChannelNames
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("DDChannelNames:", names)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test SegmentStatisticsChannelName", func(t *testing.T) {
|
|
|
|
name := Params.SegmentStatisticsChannelName
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("SegmentStatisticsChannelName:", name)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test timeTickChannelName", func(t *testing.T) {
|
|
|
|
name := Params.TimeTickChannelName
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("TimeTickChannelName:", name)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test msgChannelSubName", func(t *testing.T) {
|
|
|
|
name := Params.MsgChannelSubName
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MsgChannelSubName:", name)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test EtcdAddress", func(t *testing.T) {
|
|
|
|
addr := Params.EtcdAddress
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("EtcdAddress:", addr)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MetaRootPath", func(t *testing.T) {
|
|
|
|
path := Params.MetaRootPath
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MetaRootPath:", path)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test SegFlushMetaSubPath", func(t *testing.T) {
|
|
|
|
path := Params.SegFlushMetaSubPath
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("SegFlushMetaSubPath:", path)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test DDLFlushMetaSubPath", func(t *testing.T) {
|
|
|
|
path := Params.DDLFlushMetaSubPath
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("DDLFlushMetaSubPath:", path)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test minioAccessKeyID", func(t *testing.T) {
|
|
|
|
id := Params.MinioAccessKeyID
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MinioAccessKeyID:", id)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test minioSecretAccessKey", func(t *testing.T) {
|
|
|
|
key := Params.MinioSecretAccessKey
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MinioSecretAccessKey:", key)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MinioUseSSL", func(t *testing.T) {
|
|
|
|
useSSL := Params.MinioUseSSL
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MinioUseSSL:", useSSL)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MinioBucketName", func(t *testing.T) {
|
|
|
|
name := Params.MinioBucketName
|
2021-01-21 09:55:25 +08:00
|
|
|
log.Println("MinioBucketName:", name)
|
2021-01-19 11:37:16 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
}
|