Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-2486

TestFileReaderSystemAdmin & TestFileReaderSystemConsumer are modifying the same test files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • None
    • None

    Description

      TestFileReaderSystemConsumer & TestFileReaderSystemAdmin are both creating and deleting the same set of resource files, which sometimes result in tests failures when running in parallel:

       

      Caused by: java.io.FileNotFoundException: noEnter.txt (No such file or directory)
          	at java.io.RandomAccessFile.open0(Native Method)
          	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
          	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
          	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:124)
          	at org.apache.samza.system.filereader.FileReaderSystemConsumer$$anon$1.run(FileReaderSystemConsumer.scala:113)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          	... 2 more

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kw2542 Ke Wu
              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