-
Notifications
You must be signed in to change notification settings - Fork 38
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
variable used before it is defined #8624
Comments
This test (which makes sure that we do not try to extend a rule created by e.g. WMA) needs to be modified CRABServer/src/python/TaskWorker/Actions/RucioActions.py Lines 92 to 98 in 0486eeb
I thought this was due to the changes I did for introducing an individual quota for tale recall. But Rucio should not raise "duplicate rule" if account is different :-( |
indeed the error came handling task 240812_094541:avdas_crab_20240812_114528
|
I do not understand how we could have got a duplicateException from Rucio before 761856cd099f48fb8e532d37c5eda3cc was created. So am trying to call this Unreproducible and move on |
On Hold until it happens again. Maybe a glitch in Rucio ? |
hmm problem is not that rare. It happens every few days and started on Aug 6 (we have logs back to July 12).
Deserves more thought |
a possibility is to check that the code finds the duplicate rule and if not, raise some more clear error the other is to assume that Rucio does not check for "same account" and do that checking ourselves I am still puzzled. CRABServer/src/python/TaskWorker/Actions/RucioActions.py Lines 93 to 96 in 0486eeb
|
fixed in #8632 |
Problem handling 240812_094541:avdas_crab_20240812_114528 because of local variable 'ruleId' referenced before assignment failure, traceback follows\nTraceback (most recent call last):\n File "/data/srv/current/lib/python/site-packages/TaskWorker/Actions/RucioActions.py", line 79, in createOrReuseRucioRule\n ruleIds = self.rucioClient.add_replication_rule( # N.B. returns a list\n File "/usr/local/lib/python3.8/site-packages/rucio/client/ruleclient.py", line 71, in add_replication_rule\n raise exc_cls(exc_msg)\nrucio.common.exception.DuplicateRule: A duplicate rule for this account, did, rse_expression, copies already exists.\nDetails: (cx_Oracle.IntegrityError) ORA-00001: unique constraint (CMS_RUCIO_PROD.RULES_SC_NA_AC_RS_CO_UQ_IDX) violated\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/data/srv/current/lib/python/site-packages/TaskWorker/Actions/Handler.py", line 94, in executeAction\n output = work.execute(nexti\n[... message truncated to the first 1000 chars ...]
The text was updated successfully, but these errors were encountered: