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

irepl-check: IndexError #36

Open
dbenaben opened this issue Sep 21, 2016 · 2 comments
Open

irepl-check: IndexError #36

dbenaben opened this issue Sep 21, 2016 · 2 comments

Comments

@dbenaben
Copy link

irepl-check on a collection containing a file with 9 replicas generate an "IndexError":

$ irepl-check -r -u tata --grace-period=7 -M --large=50000 -c /MCIA/home/tata/test/test_bis replFactor+3 --repair
/MCIA/home/tata/test/test_bis/lprussel.tar.gz : 9 (!=3)
/MCIA/home/tata/test/test_bis/lprussel.tar.gz : remove replica #0 (siterg-ism)
/MCIA/home/tata/test/test_bis/lprussel.tar.gz : remove replica #3 (siterg-cbib)
/MCIA/home/tata/test/test_bis/lprussel.tar.gz : remove replica #1 (siterg-ubx)
Traceback (most recent call last):
  File "/opt/irods/.local/bin/irepl-check", line 638, in <module>
    grace_date, ignore_regexps )
  File "/opt/irods/.local/bin/irepl-check", line 418, in do_irepl_check
    admin = admin )
  File "/opt/irods/.local/bin/irepl-check", line 91, in repair_replicas_number
    rg_index = file_rescs.index(remove_rescs[i])
IndexError: list index out of range

But, this is not blocking (we can simply redo the command).

@dbenaben
Copy link
Author

Hmmmm... Maybe the error is due to a resource down during the irepl-check.

@pigay
Copy link
Contributor

pigay commented Sep 21, 2016

Thanks for reporting this.
Anyway, we could detect this event correctly and issue a comprehensive error message...

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