background preloader

Ayende Rahien

Ayende Rahien
In my previous post, I started to go over the go-raft implementation, after being interrupted by the need to sleep, I decided to go on with this, but I wanted to expand a bit first about the issue we discussed earlier, not checking the number of bytes read in log_entry’s Decode. Let us assume that we actually hit that issue, what would happen? The process goes like this, we try to read a value, but the Read method only return some of the information. We explicitly ignore that, and try to use the buffer anyway. Best case scenario, we are actually getting an error, so we bail early. At that point, we detect the error and truncate the file. I reported this issue, and I’m interested to know if my review is in any way correct. getEntriesAfter gives us all the in memory entries. setCommitIndex is interesting. And this one gives me a headache: Basically, this mean that we need to write the commit index to the beginning of the file. Then we have this: This seems pretty easy to follow, all told.

Omar AL Zabir on hard to find tech stuffs Scott Hanselman According to the Microsoft Support website: "Core isolation is a security feature of Microsoft Windows that protects important core processes of Windows from malicious software by isolating them in memory. It does this by running those core processes in a virtualized environment. Cool. Be aware: Do be conscious of each driver and what it does and consider what functionality - if any - you'll be losing if you remove them. Ok, ready? Turns out this was added way back in 2017 in Windows 10 build 17093. I ran the Windows Security app on my system and noticed a few things. In order to be considered enhanced, your system needs to support: TPM 2.0 Secure boot DEP - Data Execution Prevention UEFI MAT - Unified Extensible Firmware Interface Memory Memory Attributes Table Some of these technologies are quite old and have been in Windows for a while. I started digging to understand what was interesting or unique about my system that was preventing me from turning these new features on. About Scott

dasBlonde

Related: