GithubHelp home page GithubHelp logo

Comments (6)

DEgITx avatar DEgITx commented on May 21, 2024

случайно не выходил из приложения в момент очистки? или как-то прерывал процесс?

from rats-search.

DEgITx avatar DEgITx commented on May 21, 2024

В общем там из-за прерывания очистки такое в целом могло произойти, в следующей версии уже поправлю, заодно более активный индикатор прицеплю, а то совершенно не видно как оно чистит

from rats-search.

CoderFF avatar CoderFF commented on May 21, 2024

Уверен, что не выходил.
Он выстветил цифру, сколько удалил торрентов + еще долго после этого работал, я так понимаю он продолжает удалять в фоновом режиме. Нарузка на проц от 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.

DEgITx avatar DEgITx commented on May 21, 2024

У серверной версии в отличии от десктопной нет нормальной обработки выхода, ctrl+с в любом случае резко прерывает работу скрипта, ни о каком корректном завершении там говорить не приходится, запиши насчет этого в отдельный тикет, я хотел с этим разобраться, но подзабыл... насчет этой же проблемы - это не из-за этого, я там сделаю комит на днях, который с этой проблемой должен разобраться

from rats-search.

DEgITx avatar DEgITx commented on May 21, 2024

в 7e0c565 поправлен сам механизм очистки) (возможно поправлен)
но это не касается тех торрентов которые уже хреново чистануло

from rats-search.

DEgITx avatar DEgITx commented on May 21, 2024

должно сейчас корректно в серверной версии выходить по ctrl+c

from rats-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.