mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 18:56:00 +08:00
Remove incorrect assertion
This commit is contained in:
parent
6299ad3913
commit
113d0fb48b
@ -1196,7 +1196,8 @@ public:
|
||||
|
||||
std::map<int, std::vector<int>> tagIndices; // tagId -> indices in files
|
||||
for (int i = 0; i < logs.size(); i++) {
|
||||
ASSERT(logs[i].tagId >= 0 && logs[i].tagId < logs[i].totalTags);
|
||||
ASSERT(logs[i].tagId >= 0);
|
||||
ASSERT(logs[i].tagId < logs[i].totalTags);
|
||||
auto& indices = tagIndices[logs[i].tagId];
|
||||
// filter out if indices.back() is subset of files[i] or vice versa
|
||||
if (!indices.empty()) {
|
||||
|
@ -177,7 +177,7 @@ const KeyRangeRef serverTagConflictKeys(
|
||||
const KeyRef serverTagConflictPrefix = serverTagConflictKeys.begin;
|
||||
// serverTagHistoryKeys is the old tag a storage server uses before it is migrated to a different location.
|
||||
// For example, we can copy a SS file to a remote DC and start the SS there;
|
||||
// The new SS will need to cnosume the last bits of data from the old tag it is responsible for.
|
||||
// The new SS will need to consume the last bits of data from the old tag it is responsible for.
|
||||
const KeyRangeRef serverTagHistoryKeys(
|
||||
LiteralStringRef("\xff/serverTagHistory/"),
|
||||
LiteralStringRef("\xff/serverTagHistory0") );
|
||||
|
@ -640,6 +640,7 @@ ACTOR Future<Void> releaseResolvingAfter(ProxyCommitData* self, Future<Void> rel
|
||||
return Void();
|
||||
}
|
||||
|
||||
// Commit one batch of transactions trs
|
||||
ACTOR Future<Void> commitBatch(
|
||||
ProxyCommitData* self,
|
||||
vector<CommitTransactionRequest> trs,
|
||||
@ -1480,7 +1481,7 @@ ACTOR static Future<Void> readRequestServer( MasterProxyInterface proxy, Promise
|
||||
//WARNING: this code is run at a high priority, so it needs to do as little work as possible
|
||||
if(req.limit != CLIENT_KNOBS->STORAGE_METRICS_SHARD_LIMIT && //Always do data distribution requests
|
||||
commitData->stats.keyServerLocationIn.getValue() - commitData->stats.keyServerLocationOut.getValue() > SERVER_KNOBS->KEY_LOCATION_MAX_QUEUE_SIZE) {
|
||||
++commitData->stats.keyServerLocationErrors;
|
||||
++commitData->stats.keyServerLocationErrors;-
|
||||
req.reply.sendError(proxy_memory_limit_exceeded());
|
||||
TraceEvent(SevWarnAlways, "ProxyLocationRequestThresholdExceeded").suppressFor(60);
|
||||
} else {
|
||||
|
@ -433,6 +433,12 @@ struct BackupAndParallelRestoreCorrectnessWorkload : TestWorkload {
|
||||
auto container = IBackupContainer::openContainer(lastBackupContainer->getURL());
|
||||
BackupDescription desc = wait(container->describePartitionedBackup());
|
||||
|
||||
TraceEvent("BAFRW_Restore", randomID)
|
||||
.detail("LastBackupContainer", lastBackupContainer->getURL())
|
||||
.detail("MinRestorableVersion", desc.minRestorableVersion.get())
|
||||
.detail("MaxRestorableVersion", desc.maxRestorableVersion.get())
|
||||
.detail("ContiguousLogEnd", desc.contiguousLogEnd.get());
|
||||
|
||||
state Version targetVersion = -1;
|
||||
if (desc.maxRestorableVersion.present()) {
|
||||
if (deterministicRandom()->random01() < 0.1) {
|
||||
@ -440,7 +446,8 @@ struct BackupAndParallelRestoreCorrectnessWorkload : TestWorkload {
|
||||
} else if (deterministicRandom()->random01() < 0.1) {
|
||||
targetVersion = desc.maxRestorableVersion.get();
|
||||
} else if (deterministicRandom()->random01() < 0.5) {
|
||||
ASSERT_WE_THINK(desc.minRestorableVersion.get() <= desc.contiguousLogEnd.get());
|
||||
// The assertion may fail because minRestorableVersion may be decided by snapshot version.
|
||||
// ASSERT_WE_THINK(desc.minRestorableVersion.get() <= desc.contiguousLogEnd.get());
|
||||
// This assertion can fail when contiguousLogEnd < maxRestorableVersion and
|
||||
// the snapshot version > contiguousLogEnd. I.e., there is a gap between
|
||||
// contiguousLogEnd and snapshot version.
|
||||
|
Loading…
x
Reference in New Issue
Block a user