Skip to content

Do not attempt out of range access in testCcdbDatabase - #2695

Open
knopers8 wants to merge 1 commit into
AliceO2Group:masterfrom
knopers8:safer-test-ccdbdatabase
Open

knopers8 wants to merge 1 commit into
AliceO2Group:masterfrom
knopers8:safer-test-ccdbdatabase

Conversation

@knopers8

@knopers8 knopers8 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

I suspect that the intention of this line was to print first 10 characters, not print all after 10th character.

This does not fix the reason for the testCcdbDatabase failures, but let's the test complete (but still fail) without getting an unhandled exception.

I suspect that the intention of this line was to print first 10 characters, not print all after 10th character.

This does not fix the reason for the testCcdbDatabase failures, but let's the test complete without getting an unhandled exception.
@knopers8

knopers8 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

For the record, this is the log of the failing test:

Asking for object, iteration 0
Asking for object, iteration 1
in askObject
Asking for object, iteration 2
in askObject
Asking for object, iteration 3
Asking for object, iteration in askObject
4
in askObjectAsking for object, iteration 5

in askObject
Asking for object, iteration 6
Asking for object, iteration 7
Asking for object, iteration 8
in askObject
in askObject
Asking for object, iteration 9
in askObject
in askObject
in askObject
[ERROR] Requested resource does not exist: http://127.0.0.1:49764/ccdb/qc/TST/MO/Test/pid64968/quarantine/1790921412599/
2026-10-02 08:10:12.604048  !  �[1;33mWarning - We could NOT retrieve the object qc/TST/MO/Test/pid64968/quarantine with timestamp -1.�[0m
2026-10-02 08:10:12.604055     and with metadata:
std::string::max_size(): 9223372036854775798
json string size: 0
libc++abi: terminating due to uncaught exception of type std::out_of_range: basic_string
object [ERROR] Requested resource does not exist: http://127.0.0.1:49764/ccdb/qc/TST/MO/Test/pid64968/quarantine/1790921412599/
2026-10-02 08:10:12.611920  !  �[1;33mWarning - We could NOT retrieve the object qc/TST/MO/Test/pid64968/quarantine with timestamp -1.�[0m
2026-10-02 08:10:12.611927     and with metadata:
std::string::max_size(): 9223372036854775798
json string size: 0
libc++abi: terminating due to uncaught exception of type std::out_of_range: basic_string
object 

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant