Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65B5C17C26 for ; Tue, 7 Oct 2014 19:50:34 +0000 (UTC) Received: (qmail 22040 invoked by uid 500); 7 Oct 2014 19:50:34 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 22007 invoked by uid 500); 7 Oct 2014 19:50:34 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 21990 invoked by uid 99); 7 Oct 2014 19:50:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 19:50:34 +0000 Date: Tue, 7 Oct 2014 19:50:33 +0000 (UTC) From: "Siddharth Wagle (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-4420) ORA-01795: maximum number of expressions in a list is 1000 for Oracle DB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-4420?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Siddharth Wagle resolved AMBARI-4420. ------------------------------------- Resolution: Fixed > 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 Serv= er 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:=20 > Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120= 608-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_att= empt_time, request_id, role, role_command, stage_id, start_time, status, st= d_error, std_out FROM host_role_command WHERE (task_id IN (?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,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?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,= ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?= ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)) ORDER BY tas= k_id > =09bind =3D> [2551 parameters bound] > Query: ReadAllQuery(referenceClass=3DHostRoleCommandEntity sql=3D"SELECT = task_id, attempt_count, event, exitcode, host_name, last_attempt_time, requ= est_id, role, role_command, stage_id, start_time, status, std_error, std_ou= t FROM host_role_command WHERE (task_id IN ?) ORDER BY task_id") > =09at org.eclipse.persistence.exceptions.DatabaseException.sqlException(D= atabaseException.java:333) > =09at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.ba= sicExecuteCall(DatabaseAccessor.java:646) > =09at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.ex= ecuteCall(DatabaseAccessor.java:537) > =09at org.eclipse.persistence.internal.sessions.AbstractSession.basicExec= uteCall(AbstractSession.java:1800) > STEPS TO REPRODUCE: Over 1000 entries in the host_role_command and execu= tion_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 mod= ify the syntax of the oracle query) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)