Examples of releaseSlot()


Examples of org.apache.flink.runtime.instance.AllocatedSlot.releaseSlot()

      AllocatedSlot s1 = scheduler.scheduleImmediately(new ScheduledUnit(getTestVertexWithLocation(jid1, 0, 2, i1), sharingGroup, cc1));
      AllocatedSlot s2 = scheduler.scheduleImmediately(new ScheduledUnit(getTestVertexWithLocation(jid1, 1, 2, i2), sharingGroup, cc2));
     
      s1.releaseSlot();
      s2.releaseSlot();
     
      assertEquals(2, scheduler.getNumberOfAvailableSlots());
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfSlots());

      AllocatedSlot sa = scheduler.scheduleImmediately(new ScheduledUnit(getTestVertexWithLocation(jidx, 0, 2)));
View Full Code Here

Examples of org.apache.flink.runtime.instance.AllocatedSlot.releaseSlot()

      } catch (Exception e) {
        fail("wrong exception");
      }
     
      sa.releaseSlot();
      sb.releaseSlot();

      assertEquals(2, scheduler.getNumberOfAvailableSlots());
     
      assertEquals(2, scheduler.getNumberOfLocalizedAssignments());
      assertEquals(0, scheduler.getNumberOfNonLocalizedAssignments());
View Full Code Here

Examples of org.apache.flink.runtime.instance.AllocatedSlot.releaseSlot()

     
      // release some slots, be sure that new available ones come up
      s1.releaseSlot();
      s2.releaseSlot();
      s3.releaseSlot();
      s4.releaseSlot();
      assertEquals(2, scheduler.getNumberOfAvailableSlots());
     
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfSlots());
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfAvailableSlotsForJid(jid1));
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfAvailableSlotsForJid(jid2));
View Full Code Here

Examples of org.apache.flink.runtime.instance.AllocatedSlot.releaseSlot()

      assertEquals(2, ((SubSlot) s2).getSharedSlot().getNumberOfAllocatedSubSlots());
     
      s1.releaseSlot();
      s2.releaseSlot();
      s3.releaseSlot();
      s4.releaseSlot();
     
      assertEquals(2, scheduler.getNumberOfAvailableSlots());
     
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfSlots());
      assertEquals(0, sharingGroup.getTaskAssignment().getNumberOfAvailableSlotsForJid(jid1));
View Full Code Here

Examples of org.apache.flink.runtime.instance.AllocatedSlot.releaseSlot()

        try {
          deployToSlot(slot);
        }
        catch (Throwable t) {
          try {
            slot.releaseSlot();
          } finally {
            markFailed(t);
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.