Skip to content

(ci) Test failing intermittently: test_catalog #1451

@malachi-constant

Description

@malachi-constant

Describe the bug

Needs further investigation.

tests/test_catalog.py::test_catalog[False-GOVERNED]
  /codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/.tox/py38/lib/python3.8/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-19
  
  Traceback (most recent call last):
    File "/root/.pyenv/versions/3.8.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
      self.run()
    File "/root/.pyenv/versions/3.8.8/lib/python3.8/threading.py", line 870, in run
      self._target(*self._args, **self._kwargs)
    File "/codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/awswrangler/lakeformation/_utils.py", line 146, in _monitor_transaction
      raise ex
    File "/codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/awswrangler/lakeformation/_utils.py", line 141, in _monitor_transaction
      extend_transaction(transaction_id=transaction_id, boto3_session=boto3_session)
    File "/codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/awswrangler/lakeformation/_utils.py", line 309, in extend_transaction
      client_lakeformation.extend_transaction(TransactionId=transaction_id)
    File "/codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/.tox/py38/lib/python3.8/site-packages/botocore/client.py", line 508, in _api_call
      return self._make_api_call(operation_name, kwargs)
    File "/codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/.tox/py38/lib/python3.8/site-packages/botocore/client.py", line 915, in _make_api_call
      raise error_class(parsed_response, operation_name)
  botocore.errorfactory.TransactionCommitInProgressException: An error occurred (TransactionCommitInProgressException) when calling the ExtendTransaction operation: Transaction 6b9b1522202a49ca8731ace1c9e8e934 is already in Commit In Progress state
  
    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /codebuild/output/src311744743/src/github.com/awslabs/aws-data-wrangler/test-reports/junit.xml -
=========================== short test summary info ============================
FAILED tests/test_catalog.py::test_catalog[False-GOVERNED] - assert 5 == 4

How to Reproduce

*P.S. Please do not attach files as it's considered a security risk. Add code snippets directly in the message body as much as possible.*

Expected behavior

No response

Your project

No response

Screenshots

No response

OS

Linux

Python version

3.8

AWS DataWrangler version

ALL

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvestigatingMore investigation is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions