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

Fix fetch bug EWS V2 #27880

Merged
merged 13 commits into from Jul 16, 2023
Merged

Fix fetch bug EWS V2 #27880

merged 13 commits into from Jul 16, 2023

Conversation

ostolero
Copy link
Contributor

@ostolero ostolero commented Jul 3, 2023

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

Fix an error where some fields are returned as list and raised an error

Screenshots

Paste here any images that will help the reviewer

Minimum version of Cortex XSOAR

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

Comment on lines -350 to -360
for key, protocol in key_protocols:
try:
if "thread_pool" in protocol.__dict__:
demisto.debug('terminating thread pool key{} id: {}'.format(key, id(protocol.thread_pool)))
protocol.thread_pool.terminate()
del protocol.__dict__["thread_pool"]
else:
demisto.info(
'Thread pool not found (ignoring terminate) in protcol dict: {}'.format(dir(protocol.__dict__)))
except Exception as ex:
demisto.error("Error with thread_pool.terminate, ignoring: {}".format(ex))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the famous error print thats been printed everywhere in the last year+ without having an affect
Every time this runs it fails on a type error, so it never actually can do anything
Its also redundant, the point here seems that we didnt trust shut down to do its job for some reason and we are manually trying to do this here (without success not that anybody has noticed)

@DeanArbel DeanArbel merged commit 7cdf69b into master Jul 16, 2023
11 of 14 checks passed
@DeanArbel DeanArbel deleted the fix_ews_v2_fetch_bug branch July 16, 2023 15:36
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants