Skip to content
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

updateSuccessorTable errors out #94

Open
bushidocodes opened this issue Dec 9, 2019 · 0 comments
Open

updateSuccessorTable errors out #94

bushidocodes opened this issue Dec 9, 2019 · 0 comments
Assignees

Comments

@bushidocodes
Copy link
Owner

I'm seeing this error a bunch:

node_secondary_11 | stabilize: updateSuccessorTable failed with  TypeError: Cannot read property 'id' of undefined
node_secondary_11 |     at UserService.<anonymous> (/home/node/app/ChordNode.ts:921:36)
node_secondary_11 |     at step (/home/node/app/ChordNode.ts:33:23)
node_secondary_11 |     at Object.next (/home/node/app/ChordNode.ts:14:53)
node_secondary_11 |     at fulfilled (/home/node/app/ChordNode.ts:5:58)
node_secondary_11 | stabilize: updateSuccessorTable failed with  TypeError: Cannot read property 'id' of undefined
node_secondary_11 |     at UserService.<anonymous> (/home/node/app/ChordNode.ts:921:36)
node_secondary_11 |     at step (/home/node/app/ChordNode.ts:33:23)
node_secondary_11 |     at Object.next (/home/node/app/ChordNode.ts:14:53)
node_secondary_11 |     at fulfilled (/home/node/app/ChordNode.ts:5:58)
node_secondary_11 | stabilize: updateSuccessorTable failed with  TypeError: Cannot read property 'id' of undefined
node_secondary_11 |     at UserService.<anonymous> (/home/node/app/ChordNode.ts:921:36)
node_secondary_11 |     at step (/home/node/app/ChordNode.ts:33:23)
node_secondary_11 |     at Object.next (/home/node/app/ChordNode.ts:14:53)
node_secondary_11 |     at fulfilled (/home/node/app/ChordNode.ts:5:58)

It looks like this.successorTable[i].id is undefined below:

          !isInModuloRange(
            successorSuccessor.id,
            this.id,
            true,
            this.successorTable[i].id,
            true
          )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants