Commit 7ab0ccbd authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[RAO] If the drive limits UDS could not be queried, the RAO is not disabled...

[RAO] If the drive limits UDS could not be queried, the RAO is not disabled anymore. A CTA RAO is triggered.
parent 642397a8
......@@ -274,10 +274,9 @@ void RecallTaskInjector::WorkerThread::run()
LogContext::ScopedParam sp(m_parent.m_lc, Param("maxSupportedUDS", m_parent.m_raoManager.getMaxFilesSupported().value()));
m_parent.m_lc.log(cta::log::INFO,"Query getLimitUDS for RAO Enterprise completed");
} catch (castor::tape::SCSI::Exception& e) {
m_parent.m_raoManager.disableRAO();
cta::log::ScopedParamContainer spc(m_parent.m_lc);
spc.add("exceptionMessage",e.getMessageValue());
m_parent.m_lc.log(cta::log::ERR, "Error while fetching the limitUDS for RAO enterprise drive.");
m_parent.m_lc.log(cta::log::ERR, "Error while fetching the limitUDS for RAO enterprise drive. Will run a CTA RAO.");
} catch(const castor::tape::tapeserver::drive::DriveDoesNotSupportRAOException &ex){
m_parent.m_lc.log(cta::log::INFO, "The drive does not support RAO Enterprise, will run a CTA RAO.");
}
......
......@@ -118,10 +118,6 @@ void drive::DriveLTO::clearCompressionStats() {
SCSI::ExceptionLauncher(sgh, "SCSI error in clearCompressionStats:");
}
SCSI::Structures::RAO::udsLimits drive::DriveLTO::getLimitUDS() {
throw castor::tape::tapeserver::drive::DriveDoesNotSupportRAOException("Drive does not support RAO enterprise.");
}
/**
* Information about the drive. The vendor id is used in the user labels of the files.
* @return The deviceInfo structure with the information about the drive.
......
......@@ -595,7 +595,6 @@ namespace drive {
virtual compressionStats getCompression();
virtual void clearCompressionStats();
virtual std::vector<castor::tape::tapeserver::drive::endOfWrapPosition> getEndOfWrapPositions();
virtual SCSI::Structures::RAO::udsLimits getLimitUDS();
};
class DriveIBM3592 : public DriveGeneric {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment