- Consider logging a trace event in "DatabaseContext::getLatestCommitVersions" (#8008)

only if the version vector doesn't have an entry for a tag.
- Address a bug in "run_custom_cluster.sh" (Note: code change provided
by Dan).
This commit is contained in:
Sreenath Bodagala 2022-08-29 12:22:34 -04:00 committed by GitHub
parent 2907d2d4dd
commit f257b6c2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -270,8 +270,8 @@ void DatabaseContext::getLatestCommitVersions(const Reference<LocationInfo>& loc
}
}
}
// commitVersion == readVersion is common, do not log.
if (!updatedVersionMap && commitVersion != readVersion) {
// Do not log if commitVersion >= readVersion.
if (!updatedVersionMap && commitVersion == invalidVersion) {
TraceEvent(SevDebug, "CommitVersionNotFoundForSS")
.detail("InSSIDMap", iter != ssidTagMapping.end() ? 1 : 0)
.detail("Tag", tag)

View File

@ -40,7 +40,7 @@ function start_servers {
mkdir -p ${LOG} ${DATA}
PORT=$(( $PORT_PREFIX + $SERVER_COUNT ))
ZONE=$4-Z-$(( $j % $REPLICATION_COUNT ))
$2 ${FDB} -p auto:${PORT} "$KNOBS" -c $3 -d $DATA -L $LOG -C $CLUSTER --datacenter_id=$4 --locality-zoneid $ZONE --locality-machineid M-$SERVER_COUNT &
$2 ${FDB} -p auto:${PORT} $KNOBS -c $3 -d $DATA -L $LOG -C $CLUSTER --datacenter_id=$4 --locality-zoneid $ZONE --locality-machineid M-$SERVER_COUNT &
SERVER_COUNT=$(( $SERVER_COUNT + 1 ))
done
}