FALCON-1716 API fails with CommunicationsException when mysql interaction time is longer than 53,434,939 milliseconds (By Pavan Kolamuri)
Project: http://git-wip-us.apache.org/repos/asf/falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/1fb294fb Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/1fb294fb Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/1fb294fb Branch: refs/heads/0.9 Commit: 1fb294fbe118a3ccd92b5e4c34c92f0b855bd993 Parents: c5db759 Author: Pallavi Rao <[email protected]> Authored: Fri Jan 22 16:32:07 2016 +0530 Committer: Pallavi Rao <[email protected]> Committed: Fri Jan 22 16:32:07 2016 +0530 ---------------------------------------------------------------------- CHANGES.txt | 2 ++ .../org/apache/falcon/state/store/service/FalconJPAService.java | 2 +- src/conf/statestore.properties | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/falcon/blob/1fb294fb/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 038c6f2..dabc4df 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -106,6 +106,8 @@ Release Version: 0.9 OPTIMIZATIONS BUG FIXES + FALCON-1716 API fails with CommunicationsException when mysql interaction time is longer than 53,434,939 milliseconds (Pavan Kolamuri via Pallavi Rao) + FALCON-1757 EntityNotRegisteredException when entity is deleted from falcon (Pavan Kolamuri via Pallavi Rao) FALCON-1748 Client throws FalconWebException irrespective of type of error(Praveen Adlakha via Ajay Yadava) http://git-wip-us.apache.org/repos/asf/falcon/blob/1fb294fb/scheduler/src/main/java/org/apache/falcon/state/store/service/FalconJPAService.java ---------------------------------------------------------------------- diff --git a/scheduler/src/main/java/org/apache/falcon/state/store/service/FalconJPAService.java b/scheduler/src/main/java/org/apache/falcon/state/store/service/FalconJPAService.java index f678a6f..027a8ef 100644 --- a/scheduler/src/main/java/org/apache/falcon/state/store/service/FalconJPAService.java +++ b/scheduler/src/main/java/org/apache/falcon/state/store/service/FalconJPAService.java @@ -139,7 +139,7 @@ public final class FalconJPAService implements FalconService { String interval = "timeBetweenEvictionRunsMillis=" + evictionInterval; String num = "numTestsPerEvictionRun=" + evictionNum; connProps += ",TestOnBorrow=true,TestOnReturn=true,TestWhileIdle=true," + interval + "," + num; - connProps += ",ValidationQuery=select count(*) from ENTITIES"; + connProps += ",ValidationQuery=select 1"; connProps = MessageFormat.format(connProps, dbSchema); } else { connProps += ",TestOnBorrow=false,TestOnReturn=false,TestWhileIdle=false"; http://git-wip-us.apache.org/repos/asf/falcon/blob/1fb294fb/src/conf/statestore.properties ---------------------------------------------------------------------- diff --git a/src/conf/statestore.properties b/src/conf/statestore.properties index 0c912ad..de5ad8f 100644 --- a/src/conf/statestore.properties +++ b/src/conf/statestore.properties @@ -42,4 +42,5 @@ ## Creates Falcon DB. ## If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP. ## If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up. -#*.falcon.statestore.create.db.schema=true \ No newline at end of file +## In production environments it is recommended not to change this property,create schema using tool provided by falcon. +#*.falcon.statestore.create.db.schema=false \ No newline at end of file
