Skip to content

VDMS hangs when the test case does a request to udf_server or udf_local and they don't respond with a valid response #239

@rolandoquesada

Description

@rolandoquesada

Describe the bug
VDMS keeps in an infinite loop when it doesn't receive a valid response from the udf_server or udf_local servers

To Reproduce
Steps to reproduce the behavior:

  1. Open the udf_local.py file located at tests/udf_test directory.
  2. Edit the file and add an invalid module name to be imported.
    For example add the line "import blahblah" in the first line of the file.

udf_local_issue_01

  1. Go to the tests directory.
  2. Run the following command:
./run_tests.sh -n VideoTest.UDFWriteWithMetadata

You could test the same issue with other test cases related to UDF:

./run_tests.sh -n CLIENT_CPP.add_image_dynamic_metadata
  1. Verify the log file called "tests/tests_udf_log.log" displays an error message related to the invalid module name "blahblah"
    udf_local_issue_02b

  2. Verify the test called "VideoTest.UDFWriteWithMetadata" never ends and VDMS hangs.
    udf_local_issue_03

Expected behavior

  • VDMS should handle the error by setting a timeout to the sockets in Video.cc and Image.cc files
  • VDMS should return an error once the timeout error is thrown
  • The test case should fail.

Metadata

Metadata

Assignees

Labels

BugIndicates unexpected or undesired behaviors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions