-
Notifications
You must be signed in to change notification settings - Fork 68
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
Distributed support not working on new server join #191
Comments
Hi @fridaystreet which version of OrientDB? |
Hi Enrico, I've tried lots of versions, but for arguments sake let's say 2.2.2 Cheers On 22 Jul 2016 5:00 PM, "Enrico Risa" [email protected] wrote:
|
seems that the fix has not been ported well in 2.2.x version. Thanks |
No worries much appreciated On Mon, Jul 25, 2016 at 3:46 PM, Enrico Risa [email protected]
|
hi @fridaystreet fixed in 2.2.2 thanks |
Awesome thanks On Mon, Aug 1, 2016 at 9:55 PM, Enrico Risa [email protected]
|
Hi,
This fix (#111) appeared to add support for distributed servers, but only seems to address it when the connection is created. When further configuration change update messages are received for servers being added to the cluster it causes an exception as per below.
config is undefined
node_modules/orientjs/lib/transport/binary/index.js:91
var servers = config.members.filter(function (m) {
^
TypeError: Cannot read property 'filter' of undefined
at bindServers (/home/paul/dev/ember2-frontend/sane/data/ec/server/node_modules/sails-orientdb/node_modules/orientjs/lib/transport/binary/index.js:91:31)
at BinaryTransport. (/home/paul/dev/ember2-frontend/sane/data/ec/server/node_modules/sails-orientdb/node_modules/orientjs/lib/transport/binary/index.js:129:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.process (/home/paul/dev/ember2-frontend/sane/data/ec/server/node_modules/sails-orientdb/node_modules/orientjs/lib/transport/binary/connection.js:384:12)
at Connection.handleSocketData (/home/paul/dev/ember2-frontend/sane/data/ec/server/node_modules/sails-orientdb/node_modules/orientjs/lib/transport/binary/connection.js:289:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:177:18)
at Socket.Readable.push (_stream_readable.js:135:10)
at TCP.onread (net.js:542:20)
Tracing it back to the Operation.prototype.consume function (line 361) in protocol33/operation.js
The function doesn't seem to handle the message type 80 and sends through an empty dictionary. Well it would do, but there seems to be a bug in line 432 which is trying to return the obj.data key which doesn't exist.
429 offset += 5; // ignore the next integer
430 obj = {};
431 offset += this.parsePushedData(buffer, offset, obj, 'data');
432 return [Operation.PUSH_DATA, offset, obj.data];
Any ideas how to get this working?
Cheers
Paul
The text was updated successfully, but these errors were encountered: