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

[v8.0] fix (ElasticSearchDB): convert exception object to string representation and FTS3 lifetime changes #7296

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

chaen
Copy link
Contributor

@chaen chaen commented Nov 17, 2023

Otherwise a real error is hidden

2023-11-17 05:43:06 UTC Monitoring/Monitoring ERROR: Exception while executing handler action
Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/DISET/private/Service.py", line 555, in _execu
teAction
    response = handlerObj._rh_executeAction(proposalTuple)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 144, in _rh_exe
cuteAction
    result = self.__trPool.send(self.__trid, retVal)  # this will delete the value from the S_OK(value)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/DISET/private/TransportPool.py", line 109, in 
send
    return transport.sendData(msg)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/DISET/private/Transports/BaseTransport.py", li
ne 164, in sendData
    sCodedData = MixedEncode.encode(uData)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/Utilities/MixedEncode.py", line 17, in encode
    return DEncode.encode(inData)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/Utilities/DEncode.py", line 515, in encode
    g_dEncodeFunctions[type(uObject)](uObject, eList)
  File "/opt/dirac/versions/v11.0.23-1699879020/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/Utilities/DEncode.py", line 486, in encodeDict
    g_dEncodeFunctions[type(dValue[key])](dValue[key], eList)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: <class 'opensearchpy.helpers.errors.BulkIndexError'>

BEGINRELEASENOTES

*Core
FIX: convert exception object to string representation in ElasticSearchDB

*DMS
CHANGE: default proxy lifetime for FTS is 36h and force the redelegation when 12h are left

ENDRELEASENOTES

@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Nov 17, 2023
@chaen chaen requested a review from andresailer as a code owner November 17, 2023 09:09
@chaen chaen changed the title [v8.0] fix (ElasticSearchDB): convert exception object to string representation [v8.0] fix (ElasticSearchDB): convert exception object to string representation and FTS3 lifetime changes Nov 17, 2023
@chrisburr chrisburr merged commit 0f73d61 into DIRACGrid:rel-v8r0 Nov 17, 2023
25 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Nov 17, 2023
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Nov 17, 2023
… to string representation and FTS3 lifetime changes
@DIRACGridBot
Copy link

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/6905646988

Successful:

  • integration

@chaen chaen deleted the excBulk branch June 11, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alsoTargeting:integration Cherry pick this PR to integration after merge sweep:done All sweeping actions have been done for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants