Modify

Opened 4 years ago

Last modified 4 years ago

#7084 new defect

[Patch] Search index updater script doesn't work

Reported by: thomas.moschny@… Owned by: doki_pen
Priority: normal Component: IrcLogsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

At least in our setup, where SupyBot logs the channel contents to a new file each day, the update-irc-search script doesn't work properly. It throws a lot of IO errors, and creates subdirectories for each logfile within the irclogs.idx dir:

$ find /tmp/irclogs.idx
/tmp/irclogs.idx/#channel.20080805.log.idx
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/words
/tmp/irclogs.idx/#channel.20080804.log.idx
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/words
[...]

The attached patch replaces irclogs/console.py with a version that fixes the issue for us. The idea is of course stolen from the parse_refactor branch.

Attachments (1)

update-irc-search.patch (1.5 KB) - added by thomas.moschny@… 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by thomas.moschny@…

comment:1 Changed 4 years ago by thomas.moschny@…

  • Summary changed from Search index updater script doesn't work to [Patch] Search index updater script doesn't work

comment:2 Changed 4 years ago by anonymous

  • Owner changed from pacopablo to doki_pen

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.