Homework 3 forum

TestGossiper_Multiple_IndexFile: problem with IDs

 
Picture of Peter Krcmar
TestGossiper_Multiple_IndexFile: problem with IDs
by Peter Krcmar - Saturday, 28 November 2020, 23:33
 

Hi !

I've got an issue with the last test (TestGossiper_Multiple_IndexFile) which is due to nodes n1 and n3 both having the same id (0). When I change one of them to 2, so that they are all unique, I pass the test. I was wondering if I need to adapt my code to handle this situation or if this wouldn't happen normally and can be considered a typo ?

Thanks in advance

Picture of Bastien Wermeille
Re: TestGossiper_Multiple_IndexFile: problem with IDs
by Bastien Wermeille - Monday, 30 November 2020, 07:38
 

Hello,

I'm not a TA but I think that you might be right because I checked some other cases and in those case, their are not giving the same index.

Thanks for noticing it

Picture of Pasindu Nivanthaka Tennage
Re: TestGossiper_Multiple_IndexFile: problem with IDs
by Pasindu Nivanthaka Tennage - Monday, 30 November 2020, 17:30
 

Hi Peter,

Thanks for pointing this out, and you are correct. It is a typo.

We fixed the node ID to be 2. We will push the changes to GitLab soon.

Regards
TAs