|
|
@@ -1037,6 +1037,16 @@ restart compacts every project again** (the same cost as the migration's seal:
|
|
|
about the time to copy the largest `data.mdb`), so plan it as a window, not as
|
|
|
an ordinary 15-second restart. Later restarts are ordinary.
|
|
|
|
|
|
+**This includes the defensive idiom.** A client that calls
|
|
|
+`createCollection(name, ..., encrypted=true)` on every startup changes nothing
|
|
|
+when the collection already has the flag, but the FIRST time it runs against
|
|
|
+2.17.x on a collection without its own flag (for example one encrypted only
|
|
|
+through a bare alias name) it switches the flag on and so requests that
|
|
|
+compacting restart. Upgrade the database, start such clients once, then
|
|
|
+restart the database inside the same maintenance window, so the compaction
|
|
|
+does not surface weeks later as an unexplained slow restart. (Reported by
|
|
|
+smartbotic-vectorapi, whose prod plan now has exactly these three steps.)
|
|
|
+
|
|
|
**Check the flag rather than assume it.** A bootstrap that calls
|
|
|
`createCollection(..., encrypted=true)` only when the collection does not exist
|
|
|
yet never sets it when an earlier write already created the collection
|