[
https://issues.apache.org/jira/browse/AMBARI-4420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162485#comment-14162485
]
Hudson commented on AMBARI-4420:
--------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #503 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/503/])
AMBARI-4420. ORA-01795: maximum number of expressions in a list is 1000 for
Oracle DB. (swagle) (swagle:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=31d8208b8ba2bf87bb089532a8fe093ef606385f)
* ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessor.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java
*
ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionDBAccessorImpl.java
*
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java
*
ambari-server/src/test/java/org/apache/ambari/server/agent/AgentResourceTest.java
*
ambari-server/src/test/java/org/apache/ambari/server/orm/DBAccessorImplTest.java
*
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java
*
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
AMBARI-4420. ORA-01795: maximum number of expressions in a list is 1000 for
Oracle DB. Unecessary comment removed. (swagle) (swagle:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0a0186b157df86e3f3f4a721da8f708e77a19a5d)
*
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
> ORA-01795: maximum number of expressions in a list is 1000 for Oracle DB
> ------------------------------------------------------------------------
>
> Key: AMBARI-4420
> URL: https://issues.apache.org/jira/browse/AMBARI-4420
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 1.5.0, 1.5.1, 1.4.4, 1.6.0, 1.6.1
> Reporter: Siddharth Wagle
> Assignee: Siddharth Wagle
> Fix For: 1.4.4, 1.7.0
>
> Attachments: AMBARI-4420-trunk.patch, AMBARI-4420.patch
>
>
> {code}
> PROBLEM:
> ORA-01795: maximum number of expressions in a list is 1000 in Ambari Server
> log. Customer recently upgraded to Ambari 1.4.2
> Error is:
> 08:54:51,320 ERROR [qtp1280560314-2070] ReadHandler:84 - Caught a runtime
> exception executing a query
> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLSyntaxErrorException: ORA-01795: maximum
> number of expressions in a list is 1000
> Error Code: 1795
> Call: SELECT task_id, attempt_count, event, exitcode, host_name,
> last_attempt_time, request_id, role, role_command, stage_id, start_time,
> status, std_error, std_out FROM host_role_command WHERE (task_id IN
> (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?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,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?))
> ORDER BY task_id
> bind => [2551 parameters bound]
> Query: ReadAllQuery(referenceClass=HostRoleCommandEntity sql="SELECT task_id,
> attempt_count, event, exitcode, host_name, last_attempt_time, request_id,
> role, role_command, stage_id, start_time, status, std_error, std_out FROM
> host_role_command WHERE (task_id IN ?) ORDER BY task_id")
> at
> org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:333)
> at
> org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:646)
> at
> org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:537)
> at
> org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1800)
> STEPS TO REPRODUCE: Over 1000 entries in the host_role_command and
> execution_command tables when oracle is used for Ambari backend databse
> ACTUAL BEHAVIOR: Oracle throws the error
> EXPECTED BEHAVIOR: There should be a limit to prevent this (possibly modify
> the syntax of the oracle query)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)