mirror of
https://github.com/apache/sqoop.git
synced 2025-05-15 16:31:17 +08:00
SQOOP-980: Sqoop2: Show connection and job command hung
(Vasanth kumar RJ via Jarek Jarcec Cecho)
This commit is contained in:
parent
6ceb22497c
commit
c4ddeb7ff7
@ -1180,6 +1180,10 @@ private List<MConnection> loadConnections(PreparedStatement stmt,
|
||||
try {
|
||||
rsConnection = stmt.executeQuery();
|
||||
|
||||
formConnectorFetchStmt = conn.prepareStatement(STMT_FETCH_FORM_CONNECTOR);
|
||||
formFrameworkFetchStmt = conn.prepareStatement(STMT_FETCH_FORM_FRAMEWORK);
|
||||
inputFetchStmt = conn.prepareStatement(STMT_FETCH_CONNECTION_INPUT);
|
||||
|
||||
while(rsConnection.next()) {
|
||||
long id = rsConnection.getLong(1);
|
||||
String name = rsConnection.getString(2);
|
||||
@ -1187,14 +1191,8 @@ private List<MConnection> loadConnections(PreparedStatement stmt,
|
||||
Date creationDate = rsConnection.getTimestamp(4);
|
||||
Date lastUpdateDate = rsConnection.getTimestamp(5);
|
||||
|
||||
formConnectorFetchStmt =
|
||||
conn.prepareStatement(STMT_FETCH_FORM_CONNECTOR);
|
||||
formConnectorFetchStmt.setLong(1, connectorId);
|
||||
|
||||
formFrameworkFetchStmt =
|
||||
conn.prepareStatement(STMT_FETCH_FORM_FRAMEWORK);
|
||||
|
||||
inputFetchStmt = conn.prepareStatement(STMT_FETCH_CONNECTION_INPUT);
|
||||
inputFetchStmt.setLong(1, id);
|
||||
//inputFetchStmt.setLong(2, XXX); // Will be filled by loadForms
|
||||
inputFetchStmt.setLong(3, id);
|
||||
@ -1244,6 +1242,10 @@ private List<MJob> loadJobs(PreparedStatement stmt,
|
||||
try {
|
||||
rsJob = stmt.executeQuery();
|
||||
|
||||
formConnectorFetchStmt = conn.prepareStatement(STMT_FETCH_FORM_CONNECTOR);
|
||||
formFrameworkFetchStmt = conn.prepareStatement(STMT_FETCH_FORM_FRAMEWORK);
|
||||
inputFetchStmt = conn.prepareStatement(STMT_FETCH_JOB_INPUT);
|
||||
|
||||
while(rsJob.next()) {
|
||||
long connectorId = rsJob.getLong(1);
|
||||
long id = rsJob.getLong(2);
|
||||
@ -1255,14 +1257,8 @@ private List<MJob> loadJobs(PreparedStatement stmt,
|
||||
|
||||
MJob.Type type = MJob.Type.valueOf(stringType);
|
||||
|
||||
formConnectorFetchStmt =
|
||||
conn.prepareStatement(STMT_FETCH_FORM_CONNECTOR);
|
||||
formConnectorFetchStmt.setLong(1, connectorId);
|
||||
|
||||
formFrameworkFetchStmt =
|
||||
conn.prepareStatement(STMT_FETCH_FORM_FRAMEWORK);
|
||||
|
||||
inputFetchStmt = conn.prepareStatement(STMT_FETCH_JOB_INPUT);
|
||||
inputFetchStmt.setLong(1, id);
|
||||
//inputFetchStmt.setLong(1, XXX); // Will be filled by loadForms
|
||||
inputFetchStmt.setLong(3, id);
|
||||
|
Loading…
Reference in New Issue
Block a user