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

[BugFix] Fix disable base compaction with minute granularity & fe/be recover #52923

Merged
merged 1 commit into from
Nov 19, 2024

[BugFix] Fix disable base compaction with minute granularity & fe/be …

5d2632e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

[BugFix] Fix disable base compaction with minute granularity & fe/be recover #52923

[BugFix] Fix disable base compaction with minute granularity & fe/be …
5d2632e
Select commit
Loading
Failed to load commit list.
GitHub Actions / SQL-Tester Report failed Nov 18, 2024 in 0s

812 tests run, 811 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 1 in TestSQLCases

See this annotation in the file changed.

@github-actions github-actions / SQL-Tester Report

TestSQLCases.test_online_optimize_table_stream_load

Element counts were not equal:
First has 1, Second has 0:  '63'
First has 0, Second has 1:  '62' : sql result not match:
- [SQL]: select count(*) from t;
- [exp]: ['63']
- [act]: ['62']
---
Raw output
[Stacktrace]: 
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/site-packages/nose/case.py", line 170, in runTest
    self.test(*self.arg)
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/site-packages/parameterized/parameterized.py", line 620, in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
  File "/home/runner/_work/starrocks/starrocks/test/lib/sql_annotation.py", line 48, in wrapper
    raise e
  File "/home/runner/_work/starrocks/starrocks/test/lib/sql_annotation.py", line 43, in wrapper
    res = func(*args, **kwargs)
  File "/home/runner/_work/starrocks/starrocks/test/test_sql_cases.py", line 385, in test_sql_basic
    self.check(sql_id, sql, expect_res, actual_res, order, ori_sql)
  File "/home/runner/_work/starrocks/starrocks/test/lib/sr_sql_lib.py", line 1518, in check
    tools.assert_count_equal(
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 1272, in assertCountEqual
    self.fail(msg)
  File "/root/.pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)
AssertionError: Element counts were not equal:
First has 1, Second has 0:  '63'
First has 0, Second has 1:  '62' : sql result not match:
- [SQL]: select count(*) from t;
- [exp]: ['63']
- [act]: ['62']
---

[Standard Output]: 
?[1;32m------------------------------------------------------------ ?[0m
?[1;32m[case name]: test_online_optimize_table_stream_load ?[0m
?[1;32m[case file]: sql/test_optimize_table/R/test_optimize_table ?[0m
?[1;32m------------------------------------------------------------ ?[0m
	 → case db: ['db_f5e273606dde41a396f0fc5ff5d6d1d4']
	 → case resource: []
create database db_f5e273606dde41a396f0fc5ff5d6d1d4;
use db_f5e273606dde41a396f0fc5ff5d6d1d4;
create table t(k int, k1 date) PARTITION BY RANGE(`k1`)
(
    PARTITION `p202006` VALUES LESS THAN ("2020-07-01"),
    PARTITION `p202007` VALUES LESS THAN ("2020-08-01"),
    PARTITION `p202008` VALUES LESS THAN ("2020-09-01")
) distributed by hash(k) buckets 10;
insert into t values(1, '2020-06-01'),(2, '2020-07-01'),(3, '2020-08-01');
show create table t;
alter table t distributed by hash(k);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
[SHELL]: curl --location-trusted -u root: -T /home/runner/_work/starrocks/starrocks/test/lib/../common/data/stream_load/sr_8486.csv -XPUT http://172.21.244.250:8034/api/db_f5e273606dde41a396f0fc5ff5d6d1d4/t/_stream_load
select sleep(1);
select count(*) from t;
[FUNCTION]: wait_optimize_table_finish()
show create table t;
select count(*) from t;
?[1;32m******************** [FINISH] test_online_optimize_table_stream_load ******************** ?[0m