[
https://issues.apache.org/jira/browse/MADLIB-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil updated MADLIB-1291:
---------------------------
Fix Version/s: v1.16
> madlib.dist_jaccard abnormal for not releasing the memory
> ---------------------------------------------------------
>
> Key: MADLIB-1291
> URL: https://issues.apache.org/jira/browse/MADLIB-1291
> Project: Apache MADlib
> Issue Type: Bug
> Components: Module: Linear-Algebra Functions
> Reporter: astronee jin
> Priority: Major
> Fix For: v1.16
>
>
> the bug was found by: [http://www.wotung.com|http://www.wotung.com/] or
> [http://www.china-para.com|http://www.china-para.com/]
> when running the following test
> /usr/local/madlib/bin/madpack -s madlib -p hawq -c
> gpadmin@localhost:5432/postgres -t linalg install-check
> the programe will quit abnoramlly,
> the case fails even by manual inputing:
> postgres=# select madlib.dist_jaccard('\{1,-2,3}','\{4,-5,6}');
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
> after the Analysis, we think the servingp process received the abormal SIGNAL
> and quit, it's from abort() function. the client connection is lost too.
>
> when debugging into function Dist.Jaccard, the memory is not released
> explicitly, after add the following and recomplie:
>
> x_set.clear();
> y_set.clear();
>
> we can execute the following and not abormal from the function of
> distJaccard:
> postgres=# select madlib.dist_jaccard('\{1,-2,3}','\{4,-5,6}');
> dist_jaccard
> --------------
> 1
> (1 row)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)