-
Notifications
You must be signed in to change notification settings - Fork 4
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
update files does nothing when passing a list of LFNs to it #102
Comments
I tried to add @vkuznet or @d-ylee do you have an example, maybe from the test suite ? I looked but could not find my away around, at least not w/o learning golang first. [1]
|
I think that one problem is that I thought the API wanted a list of file names in the format ['f1',' f2', 'f3'] instead it wants a comma-separated list of names as a single string "f1,f2,f3". With this format the calls is always OK, but as soon as I put a list instead of a single file name, nothing is changed in DBS ! On the other hand changing status of all files in a dataset works, by putting this in the data file passed to curl |
@belforte , thanks for reporting. As I'm no longer maintain dbs2go code I pay little attention to tickets, sorry for the late response. Said that, I quickly look at dbs2go log file and found the following:
which confirms your observation and it is server error. Said that, I'll leave it up to @d-ylee and @todor-ivanov to investigate further. The fix should be trivial to apply as log says it is improver SQL statement and all of them comes from templates. Therefore, my first bet would be ti inspect how SQL query is constructed if API gets list of files and correct it accordingly. The files should be look at are the following:
My first impression that we lack of loop logic when user provides list of files and I suggest to generalize code to use it for both use cases, either when single file is provided or multiple. In former case the single LFN should be converted to loop of LFNs, and then code should be modified to use the loop to update each individual LFN. |
thanks @vkuznet |
recap for @d-ylee and @todor-ivanov |
Hi @belforte Thanks for reporting this. I am ramping up now, so I'll have to find my way around the code as well, but the guidelines @vkuznet gave were indeed promising. Even thoug you said it is somehow working for you and you are marking this as |
Ciao Todor, I am happy with you using this as a real-life exercise to ramp up your expertise in dbs2go. |
Thanks Stefano! I'll let you know once I have a solution. |
I am calling this
where the body data is
and it sort of hangs forever.
But same call with only one element in the "logical_file_name" list works finely. Same if I pass a file name, not a list.
What am I doing wrong ?
BTW I also tried to use
dataset
argument, which case the call returns with HTTP 200 OK, but file status is not changed.Everything works if I stick with
"logical_file_name":"a-LFN"
or `"logical_file_name":["a-LFN"] so i thought that the problem is not in the curl details but somehow in how server reacts to speficic parameters.Should a timestamp help, this query was launched at 00:41 Oct 25 CEST
Here's a detailed example with a list of one element:
and here with a list of two elements
and it hangs there for a couple of minutes until I get
The text was updated successfully, but these errors were encountered: