Compare commits

...

28 Commits

Author SHA1 Message Date
Dylan Richardson
ae6ffba02a Update authenticode key name (#45424)
This commit adjusts our authenticode key name from an expired one to our current signing key
2025-12-22 14:53:00 -08:00
Didier Nadeau
505b660a14 SERVER-115508 Make minimally sized buffers for uncompressed Messages 2025-12-22 14:53:00 -08:00
Dylan Richardson
9cf8bd8b5a Revert "SERVER-86363: Make container registry login silent (#18796)"
This reverts commit b1c5279044e35a16389c1157cf63f332f19006ea.
2025-12-22 14:53:00 -08:00
Dylan Richardson
2ff8e16a0d Revert "SERVER-87567 The SessionWorkflow should correctly return a response error on malformed requests"
This reverts commit 695dee0c78e78d029e1d2eeb2c82b6b938c5e324.
2025-12-22 14:53:00 -08:00
Dylan Richardson
df3530a4bd Revert "SERVER-88212 No op commit 1 of 3 to populate perf data (#20129)"
This reverts commit 3609b7fcfc39b8b449a9b601d85a3d7562d3a33d.
2025-12-22 14:53:00 -08:00
Dylan Richardson
fdf68796ee Revert "SERVER-85368: Update genny module organization to mongodb. (#20089)"
This reverts commit e05155572030b3aa6a8f3cc794ec5be8bc17acee.
2025-12-22 14:53:00 -08:00
Dylan Richardson
a4847b2bf5 Revert "SERVER-88212 No op commit 2 of 3 to populate perf data (#20130)"
This reverts commit e9cb02b38dee4eaa033ebce00e7b9154e3ffc5ab.
2025-12-22 14:53:00 -08:00
Dylan Richardson
20a5b4f512 Revert "SERVER-88212 No op commit 3 of 3 to populate perf data (#20132)"
This reverts commit ae1112d05445ad6e690f440b1eee962747267124.
2025-12-22 14:53:00 -08:00
Dylan Richardson
406faafa4f Revert "SERVER-79999 reduce macOS test coverage (#18350)"
This reverts commit 410adbfe7484ef18bd90213b2828661b273906e5.
2025-12-22 14:53:00 -08:00
Dylan Richardson
d9e1510d4c Revert "SERVER-77559, SERVER-77560: Implement Evergreen file system log handler for resmoke and update resmoke test results (#21826)"
This reverts commit 7f15b1145e41081994fe250dba9e1e0347794aae.
2025-12-22 14:53:00 -08:00
Dylan Richardson
4e962867c2 Revert "SERVER-77561: configurable resmoke logger and buffered file handler for resmoke logging"
This reverts commit 9627f667c70d6ee3d4958c2a41f3502ecfce6548.
2025-12-22 14:53:00 -08:00
Dylan Richardson
81af44905b Revert "SERVER-90264 Delete references to distsrc in evergreen config (#21965)"
This reverts commit aa98242b1cfe6b1d557401aab6c937684e5c8e89.
2025-12-22 14:53:00 -08:00
Dylan Richardson
dab5cce7b6 Revert "Import wiredtiger: 45abc546f55273dcbb226354b7e0e350e039e4e9 from branch mongodb-4.4"
This reverts commit 3ae3eddb3ba5cb7dd27c00db69097ee0747e2255.
2025-12-22 14:53:00 -08:00
Dylan Richardson
c45e4ec6fb Revert "Import wiredtiger: ec263e21b9912502a1f134f901e47aa155bdcc38 from branch mongodb-4.4"
This reverts commit 8b55f100b4e952428403aad44879852de71dd754.
2025-12-22 14:53:00 -08:00
Dylan Richardson
3c0717202f Revert "Import wiredtiger: 002ce30f6845d6d070252a5b014168f7265a9448 from branch mongodb-4.4"
This reverts commit af23f9edcd07d80f8483cac1291c3196dc2fa1a3.
2025-12-22 14:53:00 -08:00
Luke Chen
b1e55e285f Import wiredtiger: 002ce30f6845d6d070252a5b014168f7265a9448 from branch mongodb-4.4
ref: ec263e21b9..002ce30f68
for: 4.4.30

WT-13262 Limit the number of btrees processed for obsolete time window info in eviction (4.4)

GitOrigin-RevId: af23f9edcd07d80f8483cac1291c3196dc2fa1a3
2024-07-23 13:25:35 +00:00
Luke Chen
e9bc8d0215 Import wiredtiger: ec263e21b9912502a1f134f901e47aa155bdcc38 from branch mongodb-4.4
ref: 45abc546f5..ec263e21b9
for: 4.4.30

WT-13092 Perform dirty eviction when the page has obsolete time window (4.4 backport)

GitOrigin-RevId: 8b55f100b4e952428403aad44879852de71dd754
2024-07-23 13:25:24 +00:00
Luke Chen
afb9c53d1b Import wiredtiger: 45abc546f55273dcbb226354b7e0e350e039e4e9 from branch mongodb-4.4
ref: d79240a8f5..45abc546f5
for: 4.4.30

WT-12379 Fix incorrect version of Python on Windows (4.4)

GitOrigin-RevId: 3ae3eddb3ba5cb7dd27c00db69097ee0747e2255
2024-07-23 13:25:16 +00:00
stevegrossmongodb
34dc146293 SERVER-90264 Delete references to distsrc in evergreen config (#21965)
GitOrigin-RevId: aa98242b1cfe6b1d557401aab6c937684e5c8e89
2024-05-07 21:59:07 +00:00
julianedwards
f3a9397b83 SERVER-77561: configurable resmoke logger and buffered file handler for resmoke logging
GitOrigin-RevId: 9627f667c70d6ee3d4958c2a41f3502ecfce6548
2024-05-03 21:32:37 +00:00
julianedwards
e2b1ef7fbd SERVER-77559, SERVER-77560: Implement Evergreen file system log handler for resmoke and update resmoke test results (#21826)
GitOrigin-RevId: 7f15b1145e41081994fe250dba9e1e0347794aae
2024-05-03 20:33:34 +00:00
Benety Goh
22589098e4 SERVER-79999 reduce macOS test coverage (#18350)
SERVER-86822 remove sharding_gen task from macos builders (#19213)

(cherry picked from commit c1af0ac85c39053cac9c5af72f6bc98a8d0f79c5)
(cherry picked from commit b2938cc626880035b472eaa24209637927ea66c1)
(cherry picked from commit 4f213041bbf4ae7921a6d5ceae6e8c8309912f39)
(cherry picked from commit 2102185f4b905a55e8f75f1f73d021e7b8eb7e97)
(cherry picked from commit 61195834375810da948861fba7ebe9ee83fc23c9)

GitOrigin-RevId: 410adbfe7484ef18bd90213b2828661b273906e5
2024-04-05 18:32:34 +00:00
blagoev
7b21d49729 SERVER-88212 No op commit 3 of 3 to populate perf data (#20132)
GitOrigin-RevId: ae1112d05445ad6e690f440b1eee962747267124
2024-04-05 18:32:25 +00:00
blagoev
cd0b1cae81 SERVER-88212 No op commit 2 of 3 to populate perf data (#20130)
GitOrigin-RevId: e9cb02b38dee4eaa033ebce00e7b9154e3ffc5ab
2024-04-05 18:32:17 +00:00
John Daniels
f740efbefd SERVER-85368: Update genny module organization to mongodb. (#20089)
GitOrigin-RevId: e05155572030b3aa6a8f3cc794ec5be8bc17acee
2024-04-05 18:32:09 +00:00
blagoev
b62f278d1e SERVER-88212 No op commit 1 of 3 to populate perf data (#20129)
GitOrigin-RevId: 3609b7fcfc39b8b449a9b601d85a3d7562d3a33d
2024-04-05 18:32:02 +00:00
Mathis Bessa
c01ffd06a8 SERVER-87567 The SessionWorkflow should correctly return a response error on malformed requests
GitOrigin-RevId: 695dee0c78e78d029e1d2eeb2c82b6b938c5e324
2024-03-11 14:11:38 +00:00
dylrich
bdc04208b2 SERVER-86363: Make container registry login silent (#18796)
GitOrigin-RevId: b1c5279044e35a16389c1157cf63f332f19006ea
2024-02-16 21:52:06 +00:00
3 changed files with 68 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ cat << 'EOF' > jsign_signing_commands.sh
function sign(){
if [ -e $1 ]
then
jsign -a mongo-authenticode-2021 --replace --tsaurl http://timestamp.digicert.com -d SHA-256 $1
jsign -a mongo-authenticode-2024 --replace --tsaurl http://timestamp.digicert.com -d SHA-256 $1
else
echo "$1 does not exist. Skipping signing"
fi

View File

@@ -167,6 +167,26 @@ void checkOverflow(std::unique_ptr<MessageCompressorBase> compressor) {
compressor->decompressData(tooSmallRange, DataRange(scratch.data(), scratch.size())));
}
void checkUndersize(const Message& compressedMsg,
std::unique_ptr<MessageCompressorBase> compressor) {
MessageCompressorRegistry registry;
const auto compressorName = compressor->getName();
std::vector<std::string> compressorList = {compressorName};
registry.setSupportedCompressors(std::move(compressorList));
registry.registerImplementation(std::move(compressor));
registry.finalizeSupportedCompressors().transitional_ignore();
MessageCompressorManager mgr(&registry);
BSONObjBuilder negotiatorOut;
auto negotiator = BSON("isMaster" << 1 << "compression" << BSON_ARRAY(compressorName));
mgr.serverNegotiate(negotiator, &negotiatorOut);
checkNegotiationResult(negotiatorOut.done(), {compressorName});
auto swm = mgr.decompressMessage(compressedMsg);
ASSERT_EQ(ErrorCodes::BadValue, swm.getStatus());
}
Message buildMessage() {
const auto data = std::string{"Hello, world!"};
const auto bufferSize = MsgData::MsgDataHeaderSize + data.size();
@@ -252,6 +272,52 @@ TEST(ZstdMessageCompressor, Overflow) {
checkOverflow(std::make_unique<ZstdMessageCompressor>());
}
TEST(ZlibMessageCompressor, Mismatch) {
checkOverflow(std::make_unique<ZlibMessageCompressor>());
}
TEST(SnappyMessageCompressor, Undersize) {
std::vector<std::uint8_t> payload = {
0x41, 0x0, 0x0, 0x0, 0xad, 0xde, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xdc,
0x7, 0x0, 0x0, 0xdd, 0x7, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x1, 0x27,
0x0, 0x0, 0x1, 0x1, 0x84, 0xfb, 0x1f, 0x0, 0x0, 0x5, 0x5f, 0x69, 0x64,
0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x48, 0x45, 0x41, 0x50, 0x4c, 0x45, 0x41,
0x4b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
auto buffer = SharedBuffer::allocate(payload.size());
std::copy(payload.begin(), payload.end(), buffer.get());
checkUndersize(Message(buffer), std::make_unique<SnappyMessageCompressor>());
}
TEST(ZlibMessageCompressor, Undersize) {
std::vector<std::uint8_t> payload = {
0x3c, 0x00, 0x00, 0x00, 0xad, 0xde, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdc, 0x07, 0x00,
0x00, 0xdd, 0x07, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x78, 0xda, 0x63, 0x60, 0x00,
0x82, 0xdf, 0xf2, 0x0c, 0x0c, 0xac, 0xf1, 0x99, 0x29, 0x0c, 0x0c, 0x02, 0x40, 0x9e, 0x87,
0xab, 0x63, 0x80, 0x8f, 0xab, 0xa3, 0x37, 0x03, 0x12, 0x00, 0x00, 0x6d, 0x26, 0x04, 0x97};
auto buffer = SharedBuffer::allocate(payload.size());
std::copy(payload.begin(), payload.end(), buffer.get());
checkUndersize(Message(buffer), std::make_unique<ZlibMessageCompressor>());
}
TEST(ZstdMessageCompressor, Undersize) {
std::vector<std::uint8_t> payload = {
0x44, 0x0, 0x0, 0x0, 0xad, 0xde, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xdc, 0x7,
0x0, 0x0, 0xdd, 0x7, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x3, 0x28, 0xb5, 0x2f,
0xfd, 0x20, 0x27, 0x15, 0x1, 0x0, 0xe0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfb, 0x1f,
0x0, 0x0, 0x5, 0x5f, 0x69, 0x64, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x48, 0x45,
0x41, 0x50, 0x4c, 0x45, 0x41, 0x4b, 0x0, 0x1, 0x0, 0x18, 0xc0, 0x9};
auto buffer = SharedBuffer::allocate(payload.size());
std::copy(payload.begin(), payload.end(), buffer.get());
checkUndersize(Message(buffer), std::make_unique<ZstdMessageCompressor>());
}
TEST(MessageCompressorManager, SERVER_28008) {
// Create a client and server that will negotiate the same compressors,

View File

@@ -74,7 +74,7 @@ StatusWith<std::size_t> ZlibMessageCompressor::decompressData(ConstDataRange inp
}
counterHitDecompress(input.length(), output.length());
return {output.length()};
return length;
}