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

xrdfs query prepare bug? #2023

Closed
maksiks opened this issue Jun 1, 2023 · 11 comments
Closed

xrdfs query prepare bug? #2023

maksiks opened this issue Jun 1, 2023 · 11 comments
Assignees
Milestone

Comments

@maksiks
Copy link

maksiks commented Jun 1, 2023

Hi Everyone,
I am using custom plugin option for xrdfs query prepare calls.
Xrootd config file snippet is:
ofs.preplib libXrdOfsPrepGPI.so -debug -admit all -run /cms/ops/prepare/prep

It looks to me that the call works fine till the return json is below 2017 (well, looks like the cut is between 2005 and 2017) characters long. Once one goes above that then the error is returned. Below is the examples of two commands, in the first case the return json is slightly shorter, in the second example we reach 2017 character long return json.

Would you please take a look if indeed my conclusion are correct? Is there anything that can be done to remedy the situation?

Thank you, --Max

xrdfs root://dtn20.nese.rc.fas.harvard.edu:1094 query prepare 111 /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary
{"request_id":"111","responses":[{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643952","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""},{"path":"/store/temp/user/test1G.binary","path_exists":true,"on_tape":true,"online":true,"requested":true,"has_reqid":true,"req_time":"1685643953","error_text":""}]}

xrdfs root://dtn20.nese.rc.fas.harvard.edu:1094 query prepare 111 /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary /store/temp/user/test1G.binary
No information available.

@xrootd-dev
Copy link

xrootd-dev commented Jun 1, 2023 via email

@maksiks
Copy link
Author

maksiks commented Jun 1, 2023

Hi Andy,
It looks like this limit causes problems for T2_US_MIT_Tape transfers on the 10% level. FTS/Rucio issue 'xrdfs query prepare' calls either for several files or for a file with a really long name (and full CMS file names can be very very long). Increasing maximum length limit will go a long way to resolve issues we are having, please please consider it for the upcoming new release.
Thank you, --Max

@abh3
Copy link
Member

abh3 commented Jun 1, 2023 via email

@abh3 abh3 self-assigned this Jun 5, 2023
@abh3 abh3 closed this as completed in 564f0b2 Jun 9, 2023
@amadio amadio added this to the 5.6 milestone Jun 13, 2023
@maksiks
Copy link
Author

maksiks commented Aug 1, 2023

Hi Everyone,
I am testing xrdfs query prepare call in xrootd version 5.6.1 and would like to ask the following question just to make sure what I see is correct: to me it looks like the length of the string the call can handle is increased but still there is a limit on the overall length; the call can't handle arbitrarily long string. It is right?
Thank you, --Max

@abh3
Copy link
Member

abh3 commented Aug 3, 2023 via email

@maksiks
Copy link
Author

maksiks commented Sep 26, 2023

Hi Everyone,
I just upgraded one of our doors to xrootd 5.6.2 (el8, osg-testing repo). I do not see any changes in this call from previous versions. I also do not see any effect from any of the options that are designed to work with longer file name. Please advise as I do not understand if it is me doing something wrong, or code changes did not propagate into newer versions of xrootd rpms that are distributed to us through osg.

Thank you, --Max

@abh3
Copy link
Member

abh3 commented Sep 26, 2023 via email

@maksiks
Copy link
Author

maksiks commented Sep 26, 2023 via email

@abh3
Copy link
Member

abh3 commented Oct 3, 2023

Hi, I looked at he code once again and it seems correct. However, I noticed that you used the word "door" is this dCache or a regular xroot server? Also, we've had this happen before that a user upgraded but the config file still pointed to the old plugin. So, could you verify that the ofs.preplib is actually pointing to the 5.6.2 version and not via an absolute path to an older version.

@maksiks
Copy link
Author

maksiks commented Oct 3, 2023 via email

@maksiks
Copy link
Author

maksiks commented Oct 13, 2023

I am sorry, bu is there any update on this issue?
Thank you, --Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants