mirror of https://gitee.com/bigwinds/arangodb
Bug fix 3.4/agency loop wrong credentials (#7072)
* arangod now exits when used wrong credentials during the startup process * changelog
This commit is contained in:
parent
94a793fe61
commit
e1480cfd11
|
@ -1,6 +1,9 @@
|
||||||
v3.4.0-rc.4 (XXXX-XX-XX)
|
v3.4.0-rc.4 (XXXX-XX-XX)
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
* in a cluster environment, the arangod process now exits if wrong credentials
|
||||||
|
are used during the startup process.
|
||||||
|
|
||||||
* added option `--rocksdb.total-write-buffer-size` to limit total memory usage
|
* added option `--rocksdb.total-write-buffer-size` to limit total memory usage
|
||||||
across all RocksDB in-memory write buffers
|
across all RocksDB in-memory write buffers
|
||||||
|
|
||||||
|
|
|
@ -1221,6 +1221,12 @@ bool AgencyComm::ensureStructureInitialized() {
|
||||||
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
|
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (result.httpCode() == 401) {
|
||||||
|
// unauthorized
|
||||||
|
LOG_TOPIC(FATAL, Logger::STARTUP) << "Unauthorized. Wrong credentials.";
|
||||||
|
FATAL_ERROR_EXIT();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)
|
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)
|
||||||
|
|
Loading…
Reference in New Issue