Examples of release()


Examples of org.apache.derby.impl.store.access.btree.ControlRow.release()

                // Create the objects needed for the insert.
                SearchParameters sp = new SearchParameters(
                        logged_index_row_template, ScanController.GE,
                        template, open_btree, false);

                control_row.release();
                control_row = null;
                control_row =
                    ControlRow.Get(open_btree, BTree.ROOTPAGEID).search(sp);

                if (!sp.resultExact)
View Full Code Here

Examples of org.apache.derbyTesting.junit.IndexStatsUtil.release()

    assertTrue(rtsp.usedSpecificIndexForIndexScan("T2","T2I2"));
        //cleanup
        s.executeUpdate("DROP TABLE t2");
        //End of test case for better index selection after statistics
        //availability
        stats.release();
    }

    /**
     * Test that SYSCS_UPDATE_STATISTICS doesn't obtain exclusive locks on
     * the table or rows in the table (DERBY-4274).
View Full Code Here

Examples of org.apache.drill.exec.record.RawFragmentBatch.release()

      logger.debug("Next received batch {}", batch);

      RecordBatchDef rbd = batch.getHeader().getDef();
      boolean schemaChanged = batchLoader.load(rbd, batch.getBody());
      batch.release();
      if(schemaChanged){
        this.schema = batchLoader.getSchema();
        return IterOutcome.OK_NEW_SCHEMA;
      }else{
        return IterOutcome.OK;
View Full Code Here

Examples of org.apache.drill.exec.rpc.user.QueryResultBatch.release()

            System.out.print(accessor.getObject(r));
          }
          if (!first) System.out.println();
        }
        batchLoader.clear();
        batch.release();
      }

      assertEquals(2, recordCount);
    }
  }
View Full Code Here

Examples of org.apache.excalibur.source.SourceFactory.release()

            final String scheme = source.getScheme();
            SourceFactory factory = null;

            try {
                factory = this.getSourceFactory(m, scheme);
                factory.release(source);
            } catch (ProcessingException se) {
                try {
                    factory = this.getSourceFactory(m, "*");
                    factory.release(source);
                } catch (ProcessingException sse) {
View Full Code Here

Examples of org.apache.excalibur.source.SourceResolver.release()

            } catch (Exception e) {
                getLogger().warn("Cannot load configuration from " + configUrl);
                throw new ConfigurationException("Cannot load configuration from " + configUrl, e);
            } finally {
                if ( null != resolver ) {
                    resolver.release(configSource);
                    manager.release(resolver);
                }
            }
        }
View Full Code Here

Examples of org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerService.release()

            assertTrue(serviceManagerService.hasService(TestComponent.ROLE));
            TestComponent tc = (TestComponent)
                    serviceManagerService.lookup(TestComponent.ROLE);
            tc.test();
            serviceManagerService.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
            fail();
View Full Code Here

Examples of org.apache.hadoop.filecache.TaskDistributedCacheManager.release()

    assertEquals(cachedSecondFile.toString(), handle.getClassPaths().get(0));

    checkFilePermissions(localCacheFiles);

    // Cleanup
    handle.release();
    manager.purgeCache();
    assertFalse(pathToFile(cachedFirstFile).exists());
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.release()

    lock1.release();

    //this time it will acquire
    assertTrue(lock2.tryAcquire(5000));
    lock2.release();
    zkWatcher1.close();
    zkWatcher2.close();
  }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.RowLock.release()

        if (System.currentTimeMillis() - startWait > 10000) {
          fail("Timed out waiting for thread to sync first minibatch");
        }
      }
      LOG.info("...releasing row lock, which should let put thread continue");
      rowLock.release();
      LOG.info("...joining on thread");
      ctx.stop();
      LOG.info("...checking that next batch was synced");
      metricsAssertHelper.assertCounter("syncTimeNumOps", syncs + 4, source);
      codes = retFromThread.get();
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.