added a knob
This commit is contained in:
parent
58ea185278
commit
243927c964
|
@ -787,6 +787,7 @@ void ServerKnobs::initialize(Randomize randomize, ClientKnobs* clientKnobs, IsSi
|
|||
init( BG_DELTA_FILE_TARGET_BYTES, BG_DELTA_BYTES_BEFORE_COMPACT/10 );
|
||||
|
||||
init( BLOB_WORKER_TIMEOUT, 10.0 ); if( randomize && BUGGIFY ) BLOB_WORKER_TIMEOUT = 1.0;
|
||||
init( BLOB_WORKERLIST_FETCH_INTERVAL, 1.0 );
|
||||
|
||||
// clang-format on
|
||||
|
||||
|
|
|
@ -742,6 +742,7 @@ public:
|
|||
int BG_DELTA_BYTES_BEFORE_COMPACT;
|
||||
|
||||
double BLOB_WORKER_TIMEOUT; // Blob Manager's reaction time to a blob worker failure
|
||||
double BLOB_WORKERLIST_FETCH_INTERVAL;
|
||||
|
||||
ServerKnobs(Randomize, ClientKnobs*, IsSimulated);
|
||||
void initialize(Randomize, ClientKnobs*, IsSimulated);
|
||||
|
|
|
@ -976,7 +976,7 @@ ACTOR Future<Void> monitorBlobWorker(BlobManagerData* bmData, BlobWorkerInterfac
|
|||
|
||||
ACTOR Future<Void> checkBlobWorkerList(BlobManagerData* bmData) {
|
||||
loop {
|
||||
wait(delay(1.0));
|
||||
wait(delay(SERVER_KNOBS->BLOB_WORKERLIST_FETCH_INTERVAL));
|
||||
std::vector<BlobWorkerInterface> blobWorkers = wait(getBlobWorkers(bmData->db));
|
||||
for (auto& worker : blobWorkers) {
|
||||
if (!bmData->workerAddresses.count(worker.stableAddress())) {
|
||||
|
|
Loading…
Reference in New Issue