Examples of BootstrapDatabaseTooYoungException


Examples of com.linkedin.databus2.core.container.request.BootstrapDatabaseTooYoungException

      {
        long minScn = _dbDao.getMinScnOfSnapshots(srcIdStatusPair.getSrcId());
        LOG.info("Min scn for tab tables is: " + minScn);
        if (minScn == BootstrapDBMetaDataDAO.DEFAULT_WINDOWSCN)
        {
          throw new BootstrapDatabaseTooYoungException("BootstrapDB has no minScn for these sources, but minScn check is enabled! minScn=" + minScn);
        }
        //Note: The cleaner deletes rows less than or equal to scn. Rows with scn=minScn are not available
        //sinceSCN should be greater than minScn, except when sinceSCN == minScn == 0.
        if ((sinceSCN <= minScn) && !(sinceSCN==0 && minScn==0))
        {
          LOG.error("Bootstrap Snapshot doesn't have requested data . sinceScn too old! sinceScn is " + sinceSCN +  " but minScn available is " + minScn);
          throw new BootstrapDatabaseTooYoungException("Min scn=" + minScn + " Since scn=" + sinceSCN);
        }
      }
      else
      {
        LOG.debug("Bypassing minScn check!");
View Full Code Here

Examples of com.linkedin.databus2.core.container.request.BootstrapDatabaseTooYoungException

      {
        remoteException = new PullerRetriesExhaustedException();
      }
      else if (err.equalsIgnoreCase(BootstrapDatabaseTooYoungException.class.getName()))
      {
        remoteException = new BootstrapDatabaseTooYoungException();
      }
      else if (err.equalsIgnoreCase(BootstrapDBException.class.getName()))
      {
        remoteException = new BootstrapDBException();
      }
View Full Code Here

Examples of com.linkedin.databus2.core.container.request.BootstrapDatabaseTooYoungException

            //snapshot isn't bypassed. Check if snapshot is possible from sinceScn by checking minScn
            long minScn = processor.getBootstrapMetaDataDAO().getMinScnOfSnapshots(srcStatusPairs);
            LOG.info("Min scn for tab tables is: " + minScn);
            if (minScn == BootstrapDBMetaDataDAO.DEFAULT_WINDOWSCN)
            {
              throw new BootstrapDatabaseTooYoungException("BootstrapDB has no minScn for these sources, but minScn check is enabled! minScn=" + minScn);
            }

            //Note: The cleaner deletes rows less than or equal to scn: BootstrapDBCleaner::doClean
            //sinceSCN should be greater than minScn, unless sinceScn=minScn=0
            if ((sinceScn <= minScn) && !(sinceScn==0 && minScn==0))
            {
              LOG.error("Bootstrap Snapshot doesn't have requested data . sinceScn too old! sinceScn is " + sinceScn +  " but minScn available is " + minScn);
              throw new BootstrapDatabaseTooYoungException("Min scn=" + minScn + " Since scn=" + sinceScn);
            }
          }
          else
          {
            LOG.debug("Bypassing minScn check! ");
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.