Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-40

BookieClientTest fails intermittantly

    XMLWordPrintableJSON

Details

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

    Description

      To repro:
      true; while [ $? = 0 ]; do mvn test -Dtest=BookieClientTest; done

      Problem seems to be

              BookieClient bc = new BookieClient(channelFactory, executor);
              ChannelBuffer bb;
              bb = createByteBuffer(1, 1, 1);
              bc.addEntry(addr, 1, passwd, 1, bb, wrcb, null);
              synchronized (arc) {
                  bc.readEntry(addr, 1, 1, recb, arc);
      
      

      The test doesn't wait for addEntry to complete before doing a read. It should be simple to fix.

      Attachments

        1. BOOKKEEPER-40.patch
          0.9 kB
          Flavio Paiva Junqueira

        Activity

          People

            ikelly Ivan Kelly
            ikelly Ivan Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: