Comments (6)
случайно не выходил из приложения в момент очистки? или как-то прерывал процесс?
from rats-search.
В общем там из-за прерывания очистки такое в целом могло произойти, в следующей версии уже поправлю, заодно более активный индикатор прицеплю, а то совершенно не видно как оно чистит
from rats-search.
Уверен, что не выходил.
Он выстветил цифру, сколько удалил торрентов + еще долго после этого работал, я так понимаю он продолжает удалять в фоновом режиме. Нарузка на проц от searchd была на 100% еще долго (хотя может быть, активный обмен торрентами).
Что хочу добавить, это догадка, может быть мимо абсолютно. При старте приложения довольно долго выполняется вот такое действие:
sphinx: binlog: replaying log /home/coder/workspace/rats-search/binlog.001
sphinx: binlog: index torrents: recovered from tid 427467 to tid 488878
binlog: index files: skipped at tid 7828127 and max binlog tid 6437868
binlog: replay stats: 818766 rows in 819391 commits; 34219 updates, 0 reconfigure; 2 indexes
sphinx: binlog: finished replaying /home/coder/workspace/rats-search/binlog.001; 240.9 MB in 2.476 sec
binlog: replaying log /home/coder/workspace/rats-search/binlog.002
sphinx: binlog: index torrents: recovered from tid 488878 to tid 500536
binlog: index files: skipped at tid 7828127 and max binlog tid 6557804
binlog: replay stats: 124213 rows in 124264 commits; 7330 updates, 0 reconfigure; 2 indexes
binlog: finished replaying /home/coder/workspace/rats-search/binlog.002; 35.2 MB in 0.385 sec
binlog: replaying log /home/coder/workspace/rats-search/binlog.003
Что по этому поводу пишут в документации от searchd:
Binary logs are essentially a recovery mechanism. With binary logs enabled, searchd writes every given transaction to the binlog file, and uses that for recovery after an unclean shutdown. On clean shutdown, RAM chunks are saved to disk, and then all the binlog files are unlinked.
То есть, при нормальном завершении работы searchd, этих бинлогов вообще быть не должно, а у меня они постоянно! Выходит, какое-то повреждение БД возможно.
В таком случае возникает вопрос, каким образом можно завершить работу серверного rats-search так, чтобы и searchd завершил работу нормально? Я запускаю так
nvm exec lts/carbon npm run server
Завершаю - Ctrl+C
from rats-search.
У серверной версии в отличии от десктопной нет нормальной обработки выхода, ctrl+с в любом случае резко прерывает работу скрипта, ни о каком корректном завершении там говорить не приходится, запиши насчет этого в отдельный тикет, я хотел с этим разобраться, но подзабыл... насчет этой же проблемы - это не из-за этого, я там сделаю комит на днях, который с этой проблемой должен разобраться
from rats-search.
в 7e0c565 поправлен сам механизм очистки) (возможно поправлен)
но это не касается тех торрентов которые уже хреново чистануло
from rats-search.
должно сейчас корректно в серверной версии выходить по ctrl+c
from rats-search.
Related Issues (20)
- In progress downloads lost when server restarted HOT 1
- Add force bind to interface HOT 1
- Manticore 5 support HOT 2
- Docker support HOT 2
- unknown key name 'stored_only_fields' in /opt/rats-search/sphinx.conf line 29 col 20. HOT 1
- Crashing o launch (Windows) HOT 2
- Dark mode? HOT 1
- Discord Invite Invalid, Need some help. HOT 3
- can't install on win7 HOT 1
- New installation unable to install dependencies HOT 6
- Linux Daemon + REST API HOT 4
- Error at launch: Exception: Error: spawn /home/basedlord/searchd ENOENT HOT 3
- The app crashes on windows HOT 2
- Quits instantly after launching HOT 1
- Не запускается как сервер HOT 1
- rarbg tracker is down & doesn't respond to dns
- The web interface is not working
- Doesn't run in Docker image mode
- Can you provide build instructions for windows executable?
- Hi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rats-search.