Modify

Opened 15 years ago

Last modified 10 years ago

#7084 new defect

[Patch] Search index updater script doesn't work

Reported by: Thomas Moschny Owned by:
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 15 years ago.

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by Thomas Moschny

Attachment: update-irc-search.patch added

comment:1 Changed 15 years ago by Thomas Moschny

Summary: Search index updater script doesn't work[Patch] Search index updater script doesn't work

comment:2 Changed 14 years ago by anonymous

Owner: changed from John Hampton to Robert Corsaro

comment:3 Changed 10 years ago by Ryan J Ollos

Owner: Robert Corsaro deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.