[ 
https://issues.apache.org/jira/browse/AMBARI-4910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Nechiporenko updated AMBARI-4910:
--------------------------------------

    Description: 
Three hosts in cluster. Two hosts restart all works, whether calls from bulk or 
from hosts details page.

The remaining host, can't issue a restart all, but I can go thru each component 
and individually restart.

{code}
{
  "status": 500,
  "message": "Exception [EclipseLink-4002] (Eclipse Persistence Services - 
2.4.0.v20120608-r11652): 
org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: 
java.sql.BatchUpdateException: Batch entry 0 INSERT INTO request (request_id, 
command_name, create_time, end_time, inputs, request_context, request_type, 
start_time, status, cluster_id, request_schedule_id) VALUES (\u002752\u0027, 
NULL, \u00271393628202110\u0027, \u0027-1\u0027, \u0027{}\u0027, \u0027RESTART 
DataNode, Ganglia Monitor, Ganglia Server, HBase Client, HBase RegionServer, 
HCat, HDFS Client, History Server, Hive Client, Hive Metastore, HiveServer2, 
MapReduce2 Client, MySQL Server, Nagios Server, NodeManager, Oozie Client, 
Oozie Server, Pig, ResourceManager, SNameNode, Sqoop, WebHCat Server, YARN 
Client, ZooKeeper Client, ZooKeeper Server\u0027, \u0027COMMAND\u0027, 
\u0027-1\u0027, NULL, \u00272\u0027, NULL) was aborted.  Call getNextException 
to see the cause.\nError Code: 0\nCall: INSERT INTO request (request_id, 
command_name, create_time, end_time, inputs, request_context, request_type, 
start_time, status, cluster_id, request_schedule_id) VALUES (?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?)\n\tbind \u003d\u003e [11 parameters bound]\nQuery: 
InsertObjectQuery(org.apache.ambari.server.orm.entities.StageEntity@c986985e)"
}
{code}
=============

The problem is that the request context is too long and won't put in the 
column. 
Also, from UI perspective, the request context shown is too long.
Let's rename the request context to "Restart All Components on host".
Also, for Service > Restart All, let's change the context to "Restart All 
Components for <Service-Name>"

  was:
Three hosts in cluster. Two hosts restart all works, whether calls from bulk or 
from hosts details page.

The remaining host, can't issue a restart all, but I can go thru each component 
and individually restart.

{code}
{
  "status": 500,
  "message": "Exception [EclipseLink-4002] (Eclipse Persistence Services - 
2.4.0.v20120608-r11652): 
org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: 
java.sql.BatchUpdateException: Batch entry 0 INSERT INTO request (request_id, 
command_name, create_time, end_time, inputs, request_context, request_type, 
start_time, status, cluster_id, request_schedule_id) VALUES (\u002752\u0027, 
NULL, \u00271393628202110\u0027, \u0027-1\u0027, \u0027{}\u0027, \u0027RESTART 
DataNode, Ganglia Monitor, Ganglia Server, HBase Client, HBase RegionServer, 
HCat, HDFS Client, History Server, Hive Client, Hive Metastore, HiveServer2, 
MapReduce2 Client, MySQL Server, Nagios Server, NodeManager, Oozie Client, 
Oozie Server, Pig, ResourceManager, SNameNode, Sqoop, WebHCat Server, YARN 
Client, ZooKeeper Client, ZooKeeper Server\u0027, \u0027COMMAND\u0027, 
\u0027-1\u0027, NULL, \u00272\u0027, NULL) was aborted.  Call getNextException 
to see the cause.\nError Code: 0\nCall: INSERT INTO request (request_id, 
command_name, create_time, end_time, inputs, request_context, request_type, 
start_time, status, cluster_id, request_schedule_id) VALUES (?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?)\n\tbind \u003d\u003e [11 parameters bound]\nQuery: 
InsertObjectQuery(org.apache.ambari.server.orm.entities.StageEntity@c986985e)"
}
{code}


> Can't restart all on a host
> ---------------------------
>
>                 Key: AMBARI-4910
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4910
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.5.0
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: AMBARI-4910.patch
>
>
> Three hosts in cluster. Two hosts restart all works, whether calls from bulk 
> or from hosts details page.
> The remaining host, can't issue a restart all, but I can go thru each 
> component and individually restart.
> {code}
> {
>   "status": 500,
>   "message": "Exception [EclipseLink-4002] (Eclipse Persistence Services - 
> 2.4.0.v20120608-r11652): 
> org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: 
> java.sql.BatchUpdateException: Batch entry 0 INSERT INTO request (request_id, 
> command_name, create_time, end_time, inputs, request_context, request_type, 
> start_time, status, cluster_id, request_schedule_id) VALUES (\u002752\u0027, 
> NULL, \u00271393628202110\u0027, \u0027-1\u0027, \u0027{}\u0027, 
> \u0027RESTART DataNode, Ganglia Monitor, Ganglia Server, HBase Client, HBase 
> RegionServer, HCat, HDFS Client, History Server, Hive Client, Hive Metastore, 
> HiveServer2, MapReduce2 Client, MySQL Server, Nagios Server, NodeManager, 
> Oozie Client, Oozie Server, Pig, ResourceManager, SNameNode, Sqoop, WebHCat 
> Server, YARN Client, ZooKeeper Client, ZooKeeper Server\u0027, 
> \u0027COMMAND\u0027, \u0027-1\u0027, NULL, \u00272\u0027, NULL) was aborted.  
> Call getNextException to see the cause.\nError Code: 0\nCall: INSERT INTO 
> request (request_id, command_name, create_time, end_time, inputs, 
> request_context, request_type, start_time, status, cluster_id, 
> request_schedule_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n\tbind 
> \u003d\u003e [11 parameters bound]\nQuery: 
> InsertObjectQuery(org.apache.ambari.server.orm.entities.StageEntity@c986985e)"
> }
> {code}
> =============
> The problem is that the request context is too long and won't put in the 
> column. 
> Also, from UI perspective, the request context shown is too long.
> Let's rename the request context to "Restart All Components on host".
> Also, for Service > Restart All, let's change the context to "Restart All 
> Components for <Service-Name>"



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to