GitHub user iyerr3 opened a pull request:

    https://github.com/apache/madlib/pull/307

    Two CV-related changes

    This PR includes two commits. 
    
    First is a fix related to issue MADLIB-1014 that led to a "cache lookup" 
error when the install-check schema is deleted. 
    
    Second is refactoring of internal/cross_validation. CV had an inconsistent 
API that led to failure with either elastic_net or SVM. This commit simplifies 
the API and makes it consistent. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/madlib/madlib feature/refactor_internal_cv

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/madlib/pull/307.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #307
    
----
commit a897960972d021568d424d4f0557291c1a4ac2e5
Author: Rahul Iyer <riyer@...>
Date:   2018-08-06T02:18:48Z

    Madpack: Duplicate DROP SCHEMA due to invalid cache
    
    JIRA: MADLIB-1014
    
    We've intermittently noticed a "cache lookup failure" due to a
    "DROP OWNED BY". This was noticed only with CV enabled, possibly due to
    the excessive number of tables created by CV.
    
    This could be related to an error on StackExchange:
    
https://dba.stackexchange.com/questions/173815/redshift-internalerror-cache-lookup-failed-for-relation
    
    An excerpt from the issue: "The problem is on the Postgres DB engine
    caching is something to do with the System Catalog Cache access. ... the
    issue gets reproduced when DROP is used very often and the cache is not
    able to retrieve data which seems to be out-of-sync. After sometime (few
    seconds) the cache is in back in sync and query runs fine. The only
    workaround I see for the moment is retry query when fail ..."
    
    To get around this issue, we duplicate the "DROP CASCADE" call after a
    delay with the hope that the second call will clear the schema without
    an issue.

commit 660291574e315f0a0873836dc94110d1ae715f1b
Author: Rahul Iyer <riyer@...>
Date:   2018-08-06T02:18:32Z

    CV: Simplify and fix internal CV requirements
    
    This commit ensures internal cross validation API is consistent and
    simplifies the arguments for CV parameters.
    
    Closes #306

----


---

Reply via email to