Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14027

Java PreCommit flaky org.apache.beam.sdk.transforms/ParDoLifecycleTest#testTeardownCalledAfterExceptionInProcessElementStateful

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • test-failures
    • None

    Description

      Looks like https://github.com/apache/beam/pull/16727 is using the static map concurrently which is not thread safe.

      Causing failures like:

      java.util.ConcurrentModificationException
      	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1469)
      	at java.util.HashMap$ValueIterator.next(HashMap.java:1498)
      	at java.util.AbstractCollection.toString(AbstractCollection.java:461)
      	at java.lang.String.valueOf(String.java:2994)
      	at java.lang.StringBuilder.append(StringBuilder.java:131)
      	at org.apache.beam.sdk.transforms.ParDoLifecycleTest$ExceptionThrowingFn.validate(ParDoLifecycleTest.java:392)
      	at org.apache.beam.sdk.transforms.ParDoLifecycleTest$ExceptionThrowingFn.access$300(ParDoLifecycleTest.java:356)
      	at org.apache.beam.sdk.transforms.ParDoLifecycleTest.testTeardownCalledAfterExceptionInProcessElementStateful(ParDoLifecycleTest.java:269)
      

      See failure in:
      https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/21291/testReport/junit/org.apache.beam.sdk.transforms/ParDoLifecycleTest/testTeardownCalledAfterExceptionInProcessElementStateful/

      Attachments

        Issue Links

          Activity

            People

              reuvenlax Reuven Lax
              lcwik Luke Cwik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m