fix:test case error for reset=latest
This commit is contained in:
parent
450d079839
commit
be27e13ed9
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,7 +62,7 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
|
@ -62,8 +62,8 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,8 @@ $keyList = $keyList . ,
|
||||||
$keyList = $keyList . enable.auto.commit:false
|
$keyList = $keyList . enable.auto.commit:false
|
||||||
#$keyList = $keyList . ,
|
#$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.commit.interval.ms:6000
|
#$keyList = $keyList . auto.commit.interval.ms:6000
|
||||||
#$keyList = $keyList . ,
|
$keyList = $keyList . ,
|
||||||
#$keyList = $keyList . auto.offset.reset:earliest
|
$keyList = $keyList . auto.offset.reset:earliest
|
||||||
$keyList = $keyList . '
|
$keyList = $keyList . '
|
||||||
print ========== key list: $keyList
|
print ========== key list: $keyList
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class TDTestCase:
|
||||||
self.wal_retention_period1 = 3600
|
self.wal_retention_period1 = 3600
|
||||||
self.wal_retention_period2 = 1
|
self.wal_retention_period2 = 1
|
||||||
self.commit_value_list = ["true", "false"]
|
self.commit_value_list = ["true", "false"]
|
||||||
self.offset_value_list = ["", "earliest", "latest", "none"]
|
self.offset_value_list = ["earliest", "latest", "none"]
|
||||||
self.tbname_value_list = ["true", "false"]
|
self.tbname_value_list = ["true", "false"]
|
||||||
self.snapshot_value_list = ["false"]
|
self.snapshot_value_list = ["false"]
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ class TDTestCase:
|
||||||
}
|
}
|
||||||
consumer_commit = 1 if consumer_dict["enable.auto.commit"] == "true" else 0
|
consumer_commit = 1 if consumer_dict["enable.auto.commit"] == "true" else 0
|
||||||
consumer_tbname = 1 if consumer_dict["msg.with.table.name"] == "true" else 0
|
consumer_tbname = 1 if consumer_dict["msg.with.table.name"] == "true" else 0
|
||||||
consumer_ret = "earliest" if offset_value == "" else offset_value
|
consumer_ret = "latest" if offset_value == "" else offset_value
|
||||||
expected_parameters=f'tbname:{consumer_tbname},commit:{consumer_commit},interval:{paraDict["auto_commit_interval"]}ms,reset:{consumer_ret}'
|
expected_parameters=f'tbname:{consumer_tbname},commit:{consumer_commit},interval:{paraDict["auto_commit_interval"]}ms,reset:{consumer_ret}'
|
||||||
if len(offset_value) == 0:
|
if len(offset_value) == 0:
|
||||||
del consumer_dict["auto.offset.reset"]
|
del consumer_dict["auto.offset.reset"]
|
||||||
|
|
|
@ -547,6 +547,7 @@ tmq_t* build_consumer() {
|
||||||
tmq_conf_set(conf, "td.connect.pass", "taosdata");
|
tmq_conf_set(conf, "td.connect.pass", "taosdata");
|
||||||
tmq_conf_set(conf, "msg.with.table.name", "true");
|
tmq_conf_set(conf, "msg.with.table.name", "true");
|
||||||
tmq_conf_set(conf, "enable.auto.commit", "true");
|
tmq_conf_set(conf, "enable.auto.commit", "true");
|
||||||
|
tmq_conf_set(conf, "auto.offset.reset", "earliest");
|
||||||
|
|
||||||
if (g_conf.snapShot) {
|
if (g_conf.snapShot) {
|
||||||
tmq_conf_set(conf, "experimental.snapshot.enable", "true");
|
tmq_conf_set(conf, "experimental.snapshot.enable", "true");
|
||||||
|
|
Loading…
Reference in New Issue