-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child process exit with 3221225477 code when we call connection.release #947
Comments
@Chinmoy-globalIds A few things before I get to your question...
Are you running on Windows? Could you please answer the template questions that appear in new issues? A quick search on your error code revealed an interesting hit. They had to downgrade their compiler for Windows (though that was a couple years ago). |
|
@Chinmoy-globalIds Please try this version: async function dbProcess () {
let conn;
const dbConfig = {
user: conOpt.userId,
password: conOpt.pwd,
connectString: `${conOpt.host}:${conOpt.port}/${conOpt.dbName}`
};
try {
conn = await oracledb.getConnection(dbConfig);
let resMetadata;
conn.queryStream(query)
.on('error', async function(err) {
await conn.close();
})
.on('metadata', function(metadata) {
resMetadata = metadata;
})
.on('data', function(rowData) {
console.log(rowData);
})
.on('end', async function() {
await conn.close();
dbProcess();
});
} catch (err) {
console.log(err);
} finally {
if (conn) {
try {
await conn.close();
} catch (err) {
console.log(err);
}
}
}
} Here's another version that uses a result set: async function dbProcess () {
let conn;
let result;
const dbConfig = {
user: conOpt.userId,
password: conOpt.pwd,
connectString: `${conOpt.host}:${conOpt.port}/${conOpt.dbName}`
};
try {
conn = await oracledb.getConnection(dbConfig);
result = await conn.execute(
query,
[], // no binds
{
resultSet: true
}
);
console.log(result.metaData);
let row;
while (row = await result.resultSet.getRow()) {
console.log(row);
}
} catch (err) {
console.log(err);
} finally {
if (result && result.resultSet) {
try {
await result.resultSet.close();
} catch (err) {
console.error(err);
}
}
if (conn) {
try {
await conn.close();
} catch (err) {
console.error(err);
}
}
}
} |
Closing due to lack of activity. From https://blogs.msdn.microsoft.com/joshpoley/2011/06/13/common-process-termination-values/ 0xC0000005 (==3221225477) is an Access violation. |
We have clustered our application into one parent process(p) and two child process(c1,c2). We connect to oracle database from c2 process.To get the data from oracle db we used query stream. When we close the connection in end event of query stream, c2 process exit with 3221225477 code.
The text was updated successfully, but these errors were encountered: