Skip to content

NJS-002 if creating a new pool after closing a pool before #687

@mariushab

Description

@mariushab

Hi :)

I am currently developing a REST-Server which uses oracledb. When this server starts, a connection pool gets created. On every request a connection is opened from this pool and closed after the request is finished.
Now I want to this test this server with mocha, and before each test I want to start the server and after each test I want to close it. Every time the server is closed, the connection pool gets closed too.
The problem is, that after I closed my pool via pool.close(), it seems that every new pool created via oracledb.createPool() is invalid.
I don't know what exactly is the problem, because when oracledb.createPool() gets called, the error object in the callback is null. I only get an error when trying to create a new connection via pool.getConnection(). The error message is the following:

NJS-002: invalid pool

I don't know if this is a bug or if I am doing something wrong, hope you can help me :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions