Переглянути джерело

release: 0.5.1

Fixes on top of 0.5.0, no new database floor - still requires client >= 2.12.0,
and 2.12.1 satisfies it with no rebuild (identical exported symbols, same
soname), so the database and the app can move independently.

- an index drop is idempotent and a falsey drop is a failed call, not a 404
- a recycled collection name no longer inherits the previous one's constraints
- Intl.DateTimeFormat in the runner, ctx.* increment
- the job worker reports itself in the runner's /health, so an absent worker
  cannot be misread as an idle one again (the 0.5.0 defect)

794/794 in the Debian container and 794/794 natively.
fszontagh 1 місяць тому
батько
коміт
7c34f69b9a
2 змінених файлів з 9 додано та 2 видалено
  1. 1 1
      VERSION
  2. 8 1
      tests/api_fixture.hpp

+ 1 - 1
VERSION

@@ -1 +1 @@
-0.5.0
+0.5.1

+ 8 - 1
tests/api_fixture.hpp

@@ -57,7 +57,12 @@ protected:
         // Dropping each index before its collection is therefore the only way
         // to reach a clean slate. The project name is fixed, so without this
         // the suite is not idempotent.
-        {
+        // Best-effort, and it has to be: on a database with no previous run
+        // there is no registry collection to read and listing it throws, which
+        // is every fresh container. Nothing here is required for correctness -
+        // it only removes state a previous run on a PERSISTENT database left
+        // behind - so a failure to find anything is the normal case.
+        try {
             CollectionRegistry stale(*db_);
             for (const auto& m : stale.list(project_)) {
                 const std::string qc = qualify(project_, m.name);
@@ -67,6 +72,8 @@ protected:
                     db_->client().dropCompositeUniqueIndex(qc, fields);
                 db_->client().dropCollection(qc);
             }
+        } catch (const std::exception&) {
+            // No previous run to clean up.
         }
         db_->dropProject(project_);
         db_->client().dropCollection(qualify(project_, "vectorapi_collections"));