Examples of BootstrapProcessingException


Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

    boolean foundRows = false;

    BootstrapDBMetaDataDAO.SourceStatusInfo srcIdStatusPair = _dbDao.getSrcIdStatusFromDB(currState.getCatchupSource(),true);

    if ( !srcIdStatusPair.isValidSource())
      throw new BootstrapProcessingException("Bootstrap DB not servicing source :" + currState.getCatchupSource());

    int curSrcId = srcIdStatusPair.getSrcId();

    int curLogId = _dbDao.getLogIdToCatchup(curSrcId, currState.getWindowScn());
    int targetLogId = _dbDao.getLogIdToCatchup(curSrcId, currState.getBootstrapTargetScn());
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

    Connection conn = _dbDao.getBootstrapConn().getDBConn();
    BootstrapDBMetaDataDAO.SourceStatusInfo srcIdStatusPair = _dbDao.getSrcIdStatusFromDB(currState.getSnapshotSource(), true);

    if (!srcIdStatusPair.isValidSource())
      throw new BootstrapProcessingException("Bootstrap DB not servicing source :"
          + currState.getCatchupSource());

    PreparedStatement stmt = null;
    ResultSet rs = null;
    try
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

      rIds.add(rs.getLong(1));
      sequences.add(rs.getLong(2));
      srcKeys.add(rs.getString(3));
      values.add(rs.getBytes(4));
    } catch (Exception ex) {
      throw new BootstrapProcessingException(ex);
    }
   
    return new BootstrapEventProcessResult(1, false, false);
  }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

        //because of the earlier check.
        String msg = "Internal Error. sinceSCNLogId > startSCNLogId but sinceSCN < startSCN, sinceScn:"
            + sinceScn + ",startScn:" + startScn + ",sinceSCNLogId:"
            + sinceSCNLogId + ",startSCNLogId:" + startSCNLogId;
        LOG.error(msg);
        throw new BootstrapProcessingException(msg);
      }
      return true;
    }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException


    for ( SourceStatusInfo pair : sourceList)
    {
      if ( !pair.isValidSource())
        throw new BootstrapProcessingException("Bootstrap DB not servicing source :" + pair.getSrcId());

        if ( ! first ) buf.append(",");
        buf.append(pair.getSrcId());
        first = false;
      }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

      }
    }
    catch (SQLException e)
    {
      LOG.error("SQLException encountered while sending to client row " + rid);
      throw new BootstrapProcessingException(e);
    }

    return new BootstrapEventProcessResult(_numRowsWritten, exceededBufferLimit, dropped);
  }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

      {
        // get src id from db
        BootstrapDBMetaDataDAO.SourceStatusInfo srcIdStatus = processor.getSrcIdStatusFromDB(source, true);

        if ( !srcIdStatus.isValidSource())
            throw new BootstrapProcessingException("Bootstrap DB not servicing source :" + source);

        srcId = srcIdStatus.getSrcId();

        // select target scn
        targetScn = processor.getSourceTargetScn(srcId);
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

        LOG.info("logid for catchup:" + logid + ", Deleted :" + deleted);
      }

      if ((0 > logid) || (1 == deleted))
      {
        throw new BootstrapProcessingException("Log file with logid=" + logid + " ,srcid=" + srcId
                                                   + " is either deleted or not found in bootstrap_loginfo for since scn: " + sinceScn);
      }
    }
    catch (SQLException e)
    {
View Full Code Here

Examples of com.linkedin.databus.bootstrap.api.BootstrapProcessingException

    Assert.assertEquals(true, sbs);

    // Case 3:  Detect case when the log is not available on log tables ( so it should NOT bypass snapshot )
    BootstrapDBMetaDataDAO bmdd2 = EasyMock.createMock(BootstrapDBMetaDataDAO.class);
    EasyMock.expect(bmdd2.getLogIdToCatchup(srcId, startScn)).andReturn(2).anyTimes();
    EasyMock.expect(bmdd2.getLogIdToCatchup(srcId, sinceScn)).andThrow(new BootstrapProcessingException(""));
    EasyMock.replay(bmdd2);

    Field dbDaoField2 = bsp.getClass().getDeclaredField("_dbDao");
    dbDaoField2.setAccessible(true);
    dbDaoField2.set(bsp, bmdd2);
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.