orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

Maximum call stack exceeded when connecting to a database running in distributed mode

Open miosman opened this issue 4 years ago • 2 comments

Facing an issue with db sessions failing with the following error only when connecting to a database in distributed mode, on a single instance server the issue doesn't occur.

/opt/migration/node_modules/orientjs/lib/client/network/protocol37/operation.js:447
Operation.prototype.consume = function(buffer, offset) {
                                      ^
RangeError: Maximum call stack size exceeded
    at Operation.consume (/opt/migration/node_modules/orientjs/lib/client/network/protocol37/operation.js:447:39)
    at ONetworkConnection.Connection.process (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:437:17)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:344:20)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)
    at ONetworkConnection.Connection.handleSocketData (/opt/migration/node_modules/orientjs/lib/client/network/conn.js:354:12)

I attempted to debug the issue by adding log messages around the handleSocketData and Operation.prototype.consume methods and from the logs it seems the issue manifests after the server pushes the list of servers in the cluster. Snippet of logs

bufferP

miosman avatar Aug 19 '21 12:08 miosman

Hi @miosman , Have you found a solution for this issue? Even I am facing the same issue.

amnous avatar Mar 22 '22 16:03 amnous

unfortunately not, project seems to be abandoned so probably try the Java driver instead.

miosman avatar Mar 22 '22 23:03 miosman