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

Test/fix after update version clt 0.2.3 #119

Merged
merged 10 commits into from
Oct 22, 2024

Conversation

PavelShilin89
Copy link
Contributor

Type of Change (select one):

  • Update CLT version - new version 0.2.3

Description of the Change:

  • Updated the CLT version to the latest version in CI as well as in manticoresearch-backup. Adjusted tests to reflect the changes.

Related Issue (provide the link):

Copy link

clt

👎 CLT tests in test/clt-tests/
✅ OK: 7
❌ Failed: 1
⏳ Duration: 22s
👉 Check Action Results for commit b58a98c
Failed tests:

test/clt-tests/backup-restore-ok.rec
––– input –––
cp ./test/clt-tests/config/manticore.conf /etc/manticoresearch/manticore.conf
––– output –––
––– input –––
searchd
––– output –––
Manticore %{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}\.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (#!/[0-9]+/!# chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
manticore-backup --version
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore Backup version: %{SEMVER}
––– input –––
mysql -h0 -P9306 < test/clt-tests/dumps/tables.sql
––– output –––
––– input –––
touch /usr/share/manticore/{abc,zed}.pak
––– output –––
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
+---------------------+-------------+
| Index               | Type        |
+---------------------+-------------+
| distributed_index   | distributed |
| rt_with_columnar    | rt          |
| rt_without_columnar | rt          |
| test                | rt          |
+---------------------+-------------+
––– input –––
manticore-backup --backup-dir=/tmp
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /etc/manticoresearch/manticore.conf
Tables to backup: all tables
Backup dir: /tmp
Manticore config
endpoint =  http://%{IPADDR}:9312
Manticore versions:
manticore: %{SEMVER} %{COMMITDATE} dev
columnar: %{SEMVER} %{COMMITDATE}
secondary: %{SEMVER} %{COMMITDATE}
knn: %{SEMVER} %{COMMITDATE}
buddy: %{SEMVER}
%{DATETIME} [Info] Starting the backup...
%{DATETIME} [Info] Backing up config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Backing up global state files...
%{DATETIME} [Info]   global state files – OK
%{DATETIME} [Info] Backing up tables...
%{DATETIME} [Info]   distributed_index (distributed)...
%{DATETIME} [Info]   SKIP
%{DATETIME} [Info]   rt_with_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   rt_without_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   test (rt) [%{NUMBER}B]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info] Running sync
%{DATETIME} [Info]  OK
%{DATETIME} [Info] You can find backup here: /tmp/backup-%{NUMBER}
%{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
%{DATETIME} [Info] Done
%{DATETIME} [Info]
Unfreezing all tables...
%{DATETIME} [Info]   distributed_index...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   rt_with_columnar...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   rt_without_columnar...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   test...
%{DATETIME} [Info]    OK
––– input –––
mv /tmp/backup-* /tmp/backup-111
––– output –––
––– input –––
manticore-backup --backup-dir=/tmp --restore
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file:
Backup dir: /tmp
Available backups: 1
backup-111 (?)
––– input –––
manticore-backup --backup-dir=/tmp --restore=backup-111
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file:
Backup dir: /tmp
- %{DATETIME} [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
- %{DATETIME} [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
%{DATETIME} [Info] Starting to restore...
%{DATETIME} [Error] Cannot initiate the restore process due to searchd daemon is running.
––– input –––
pgrep -f searchd | xargs kill -9
––– output –––
––– input –––
manticore-backup --backup-dir=/tmp --restore=backup-111
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file:
Backup dir: /tmp
- %{DATETIME} [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
- %{DATETIME} [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
%{DATETIME} [Info] Starting to restore...
Manticore config
endpoint =  http://%{IPADDR}:9312
%{DATETIME} [Error] Destination file already exists: /etc/manticoresearch/manticore.conf
––– input –––
rm /etc/manticoresearch/manticore.conf
––– output –––
––– input –––
manticore-backup --backup-dir=/tmp --restore=backup-111
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file:
Backup dir: /tmp
- %{DATETIME} [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
- %{DATETIME} [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
%{DATETIME} [Info] Starting to restore...
Manticore config
endpoint =  http://%{IPADDR}:9312
%{DATETIME} [Error] Destination file already exists: /var/lib/manticore/manticore.json
––– input –––
rm -fr /var/lib/manticore && mkdir -p /var/lib/manticore
––– output –––
––– input –––
manticore-backup --backup-dir=/tmp --restore=backup-111
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file:
Backup dir: /tmp
- %{DATETIME} [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Stored versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
- %{DATETIME} [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 796202c1e@24102113 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
+ 2024-10-22 13:55:34 [Info] Current versions: {"backup":"1.3.9","manticore":"6.3.7 8f0cc0368@24102210 dev","columnar":"2.3.1 30ad2d6@24100914","secondary":"2.3.1 30ad2d6@24100914","knn":"2.3.1 30ad2d6@24100914","buddy":"0.0.0"}
%{DATETIME} [Info] Starting to restore...
Manticore config
endpoint =  http://%{IPADDR}:9312
%{DATETIME} [Info] Restoring config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Restoring state files...
%{DATETIME} [Info]   state files - OK
%{DATETIME} [Info] Restoring data files...
%{DATETIME} [Info]   tables' files - OK
%{DATETIME} [Info] The backup '/tmp/backup-111' was successfully restored.
%{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
%{DATETIME} [Info] Done
––– input –––
searchd
––– output –––
Manticore %{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}\.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (#!/[0-9]+/!# chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
precaching table 'rt_with_columnar'
precaching table 'rt_without_columnar'
precaching table 'test'
WARNING: table 'distributed_index': ha_strategy defined, but no ha agents in the table
precached 3 tables in #!/([0-9]+\.[0-9]+|0)/!# sec
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
+---------------------+-------------+
| Index               | Type        |
+---------------------+-------------+
| distributed_index   | distributed |
| rt_with_columnar    | rt          |
| rt_without_columnar | rt          |
| test                | rt          |
+---------------------+-------------+
––– input –––
ls /usr/share/manticore/{abc,zed}.pak
––– output –––
/usr/share/manticore/abc.pak  /usr/share/manticore/zed.pak

@PavelShilin89 PavelShilin89 merged commit 6d566e3 into main Oct 22, 2024
4 checks passed
@PavelShilin89 PavelShilin89 deleted the test/fix-after-update-version-clt-0.2.3 branch October 22, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant