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

Roxie filecache release #2103

Merged

Conversation

richardkchapman
Copy link
Member

No description provided.

Roxie generating file names for index parts other than the top-level
key incorrectly. This would lead to some confusion, and possibly additional
copying of files, but no other ill effect as far as I can see.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
The code for checking and comparing filestamps when deciding if Roxie's
cached copy of a file was up to date seems to have been lost in the
big refactoring of package files, meaning that file mismatches would only
be detected when the size changed.

This had a few unfortunate effects:

1. Index changes are likely to be only detected by slaves but not by server
   nodes. This leads to 'partially suspended' queries which were are not
   giving helpful error messages.
2. If data is refreshed on thor, Roxie might continue to read a previously
   cached version of the data, even if Roxie was restarted.

See gh-2096. This is not a complete fix for all the issues there, since Roxie
is still falsely reporting that two versions of a data file are required
at the same time when all queries using the previous version have been
unloaded.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Roxie was nto clearing the local file cache when the last query
that referenced a file was released. This means that it was not
possible to load a new query that referenced an updated version
of a file without restarting roxie

Fixes gh-2096.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
@ghalliday
Copy link
Member

Can the file cache be destroyed before the file objects? If so they need to setCache(NULL) on any items it knows about

@richardkchapman
Copy link
Member Author

filecache is destroyed late in the closedown process via MODULE_EXIT, so I don't think so. But I suppose might be cleaner if they did.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
ghalliday added a commit that referenced this pull request Apr 16, 2012
Roxie filecache release

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
@ghalliday ghalliday merged commit fe52b04 into hpcc-systems:candidate-3.6.x Apr 16, 2012
@richardkchapman richardkchapman deleted the roxie-filecache-release branch May 1, 2014 12:14
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.

2 participants