-
Notifications
You must be signed in to change notification settings - Fork 21
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
File properties 'create_by' and 'creation_date' not supported in DBSServer #615
Comments
@amaltaro DBS supports block's created_by and creation_date. Here is an example of a block I just inserted with DBS bulk insert API a few minutes: https://cmsweb-testbed.cern.ch/dbs/int/global/DBSReader/blocks?block_name=/unittest_web_primary_ds_name_20190708/Summer2011-pstr-v10/GEN-SIM-RAW%23141444&detail=1 Here is the relative part of the XML file I used: If you do provide these two fields, DBS will just ignore it. It will not give errors. |
Hi Alan/Yuyi, I think there is some confusion here due to the issue title. These fields work at the block level, but they don't work at the file level. Take a look at the two cases here: dmwm/WMCore#9203 The second case is where the fields are never populated, because they are never set in the WMCore code. The proposed fix here dmwm/WMCore@5685cd1 adds those fields, which causes the error in DBSServer. @yuyiguo Could you test this at the file level? |
@yuyiguo can you please test this bulk insert with the information at file level, as suggested by Erik? Thanks |
Sorry Erik and Yuyi, I fixed the issue title and reviewed what was initially reported. Indeed, block properties do work fine, but the file properties are always null, as can be seen in this example: @yuyiguo could you please run a quick test on your side to confirm what we see and evaluate whether we want/should provide this information or not? |
@amaltaro |
Yes, Yuyi. However, if you look at the So I'm lost here. Wasn't the |
Files: Blocks: Because all files in DBS were created with the blocks. So the files and blocks have the same value regarding the creation time and creator even if the ones of files are not filled. WMAgent will not need to fill the creation time and creator. DBS will get the creation time and creator automatically. |
Given their uselessness, you might consider than deprecating those fields in the future, such that we have less things to store in the database . Problem is that it might break some clients here and there that try to do anything with them. Anyways, thanks for following this issue up, Yuyi. Feel free to close it. |
@amaltaro I am closing the TK. |
As tracked in this WMCore issue: dmwm/WMCore#9042
those two properties are always null and, if the client (WMAgent) provides them, the block fails to get inserted into the database with an error message
HTTP Error 400: illegal variable name/number from input
.Further details can be found in the proposed fix within WMCore: dmwm/WMCore#9203
The text was updated successfully, but these errors were encountered: