github ravendb/ravendb 7.2.8

2 hours ago

Features

  • [AI] Anthropic (Claude) support for AI Agents and GenAI tasks Docs
  • [Client API] RavenDB.Analyzers: Roslyn analyzers and code fixes that report common mistakes in RavenDB client code at compile time Docs

Server

  • [AI] Server-wide AI connection strings now get the same identifier generation, format validation and uniqueness check as database ones
  • [AI Agents] Fixed an agent parameter declared with SendToModel = false and no supplied value letting the model choose its value; a conversation now requires a value for every declared parameter and a value the query cannot bind is refused instead of returning no results
  • [AI Agents] Fixed every turn of a conversation failing when its id was longer than 64 characters and prompt caching was enabled
  • [AI Agents] Fixed tools combined with structured output on Ollama thinking models
  • [Cluster] Fixed a node silently skipping a Raft command when applying it failed with an out-of-memory error on that node only, which left the cluster state (database record, cluster transactions) different between nodes; the command is now retried
  • [Compression] Updated libzstd to 1.5.7; native zstd contexts are reused across streams, dictionary-compressed documents are 4 bytes smaller, and SmallestSize now maps to zstd level 19 instead of 22, which needs far less memory for nearly the same size
  • [Configuration] Added Backup.Compression.Zstd.Workers and Export.Compression.Zstd.Workers configuration options to compress backups and exports with Zstd in parallel (by default 2 workers on 8-16 cores, 4 above, none below 8)
  • [Connection Strings] Deleting a connection string that is still used by a pull replication sink, an AI agent or a CDC Sink is now refused
  • [Corax] Fixed all in not matching a null value when it was the fifth or later value in the list
  • [Corax] Fixed count-only facets with a where clause running one term query per distinct term of a high-cardinality facet field, however few documents matched
  • [Corax] Added a cancellation token so scoring queries can be cancelled and optimized the scoring of multi-term queries
  • [Corax] Fixed PFor encoding of posting list blocks with 32-bit exceptions, which could make a term query silently return wrong or missing entries
  • [Corax] Improved the performance and correctness of scoring: scores are computed only when the query consumes them, scoring of and, and not and negated clauses was fixed, and a boost value must now be finite and not negative
  • [Corax] MoreLikeThis results are now ranked by score, paged by the page size and can be ordered with order by score()
  • [Corax] Fixed a char value in a compound field never being matched
  • [Corax] Fixed compound field indexing failing on long non-ASCII strings and on boosted documents
  • [Corax] Fixed where exists(x) order by x always returning the documents with a null x first
  • [Corax] Fixed indexing a value whose lowercase form is longer in UTF-8 failing
  • [Embedded] A failed .NET runtime discovery (dotnet --info) is now reported with the executable path, exit code and error output instead of 'Could not find a matching runtime' with an empty list
  • [Embeddings Generation] Fixed a model or dimensions change of an AI connection string used for embeddings not being refused, because the 'requires embeddings regeneration' check never matched
  • [Embeddings Generation] Fixed an embeddings worker that failed to start blocking the other tasks
  • [ETL] Fixed SQL, Elasticsearch, Queue, Snowflake and OLAP ETL processes not always restarting when destination-specific ETL configuration was changed
  • [ETL] Fixed ETL ignoring the batch limits and not advancing when all documents of a batch failed transformation
  • [ETL] Fixed the live performance stats not showing the final state of failed ETL batches
  • [GenAI] With EnablePromptCache unset, GenAI tasks without query tools no longer cache prompts (Google excepted)
  • [Indexing] Index definitions with deeply chained or nested method calls are now rejected at compile time with a clear error instead of crashing the server with a StackOverflowException
  • [Indexing] Fixed a new index with LoadDocument or LoadCompareExchangeValue re-indexing the same documents again and again when the referenced documents were modified during the initial indexing
  • [JavaScript] Fixed length of a string longer than 128 bytes returning its UTF-8 byte count, which made charAt, endsWith and substring throw on non-ASCII text (patches, ETL scripts, JavaScript indexes)
  • [JavaScript Indexes] Fixed object spread and destructuring in a JavaScript index map or an RQL JavaScript projection failing with InvalidCastException
  • [Linux] Fixed parsing of /proc/meminfo and added GPUActive and GPUReclaim to the memory information, also exposed via SNMP
  • [Memory] Fixed a leak of HTTP cache buffers returned to an already disposed pool and the 'UnmanagedBuffersPool for HttpCache wasn't properly disposed' errors in the logs; request executors finalized without dispose are now logged
  • [PAL] Added support for running natively on Windows ARM64
  • [Querying] Fixed order by spatial.distance() using the wrong point of documents with several points or spatial fields; the distance is now measured to the nearest point of the requested field (existing indexes need a reset)
  • [Querying] Documents without a spatial value are now sorted last when ordering by distance; on Lucene they were placed at an undefined position and failed sharded queries
  • [Querying] Fixed Lucene facets walking every distinct term of a high-cardinality facet field when the query matched fewer documents than the field has terms
  • [Querying] Fixed Lucene MoreLikeThis returning the base document in its own results, using a wrong page size and ignoring the offset
  • [Querying] The query memory usage warning now includes the result counts
  • [Querying/Memory] Fixed excessive string allocations when ordering Lucene query results by distance, which loaded the whole stored entry of every matching document
  • [Querying/Memory] Fixed sorted Lucene queries without a limit allocating arrays sized to the number of documents in the index
  • [Querying/Memory] Fixed Lucene facets allocating a closure and a delegate for every facet term
  • [Querying/Memory] Fixed large object heap allocations on every query with an aliased projection or time series
  • [Replication] Fixed a document write being permanently missed by one node of the database group when it was committed by the transaction merger re-running the commands of a failed merged transaction one by one, which did not update the database change vector
  • [Replication] Pull replication diagnostics now show the negotiated change vector wire mode of each connection
  • [Revisions] Fixed high unmanaged memory usage when updating a document, caused by reading all its revisions to count the conflict revisions
  • [Revisions] The database-wide default revisions configuration no longer applies to system collections (@hilo, @embeddings-cache, @embeddings/*, @cdc-states)
  • [Revisions] Reverting to a revision no longer restores its @expires, @refresh and @archive-at values
  • [Setup] Fixed rvn create-setup-package ignoring NodeSetupInfos.<TAG>.PublicServerUrl; provided PublicServerUrl and PublicTcpServerUrl are now validated against the certificate
  • [Sharding] Fixed compaction of a shard failing
  • [Sharding] Fixed a shard of a prefixed sharded database failing to load after the 6.2 to 7.2 documents schema upgrade
  • [Storage] The 62000 to 72000 documents schema upgrade now reports its progress in the database init log
  • [Storage] The internal documents storage schema changed, so a database opened by this version cannot be opened by an earlier one
  • [Time Series] Fixed a regression introduced in 7.2.5 where deleting a document with two or more time series could fail with VoronUnrecoverableErrorException
  • [Vector Search] Improved HNSW recall (existing indexes need a reset to benefit)
  • [Voron] Fixed the page locator cache not updating a page cached in a previous generation, so every lookup of that page missed the cache
  • [Voron] Fixed the journal checksum validation progress log on database startup
  • [Voron] Fixed VoronUnrecoverableErrorException 'page X was not allocated' in index and ETL progress on data written before 7.2.7
  • [.NET] Updated to .NET 10.0.15

Client API

  • [Monitoring] Isolated topology updates from the ambient trace context
  • [Querying] Fixed LINQ First(), Single(), Count() (and their OrDefault/LongCount variants) with a predicate after Where(a || b) returning documents that don't match the predicate, because the OR was not parenthesized
  • [Querying] Added translation of array Max()/Min() in LINQ projections and index definitions when compiled against .NET 11 (MemoryExtensions.Max/Min)
  • [Serialization] Fixed declared [JsonExtensionData] dictionaries not being written when a document is stored

Studio

  • [Attachments] Multiple attachments can now be uploaded at once from the document view
  • [Certificates] Certificate modals now show the 2FA status and are easier to use with the keyboard
  • [Certificates] Fixed a certificate with many database permissions pushing the Clone/Edit/Delete buttons off-screen
  • [Certificates] Renamed the 'Generate SSO user' menu item to 'Create SSO user' in Manage user access
  • [Certificates] Fixed the 'Your new certificate is ready' dialog being shown after renewing the server certificate
  • [Compare Exchange] Added the compare exchange tombstones count to the Detailed Database Stats
  • [Connection Strings] The AI license comparison now lists the AI connectors available in each license
  • [Connection Strings] Fixed the Mistral AI connection string form never requiring the API key, endpoint and model
  • [Connection Strings] The Google AI models list is now fetched from the endpoint
  • [Databases] Deleting a database from a node now requires a typed confirmation and explains the consequences
  • [Databases] Fixed the Databases view piling up state requests to a slow node and showing 'Making things happen' most of the time
  • [Documents] Rewrote the Documents view in React
  • [Import] Redesigned the Import database from file view: options are gated by license, sharding and access, collections can be added manually, and the result is shown in a modal with the import log
  • [Indexes] Added a warning that Indexing.Corax.VectorSearch.CacheSizeInMb is ignored on encrypted databases
  • [Notifications] Added a button to copy the full stack trace in failed operation details
  • [Notifications] Database import details in the notification center now open in the new import result modal
  • [Ongoing tasks] Fixed the Ongoing Tasks view never loading when a cluster node is down
  • [Querying] Fixed 'Cache enabled' in the Query view having no effect and the cached results message never being shown
  • [Querying] Fixed export from the Query view ignoring 'Ignore the index query size limit'
  • [Querying] Fixed the Load Query dropdown being cut off
  • [Setup] Fixed the Setup Wizard showing the no-license popover on 'Add another node' before the single-node limit was reached
  • [Sharding] Added sorting of the buckets report by range, non-empty buckets count, documents count and size
  • [Sharding] The buckets report now marks bucket copies pending removal after resharding
  • [Sharding] Fixed the Studio search listing the Buckets Report for a non-sharded database
  • [SSO] The node switcher in the footer now works through SSO proxy hosts
  • [Storage] The server storage report now lists the databases hosted on the node, shows disabled databases with a badge, and its tables can be sorted by any column
  • [Time Series] Replaced the time series date filter with a range picker with presets
  • Closing a sheet with unsaved changes (remote attachments destination, column layout settings) now asks for confirmation

Articles

Don't miss a new ravendb release

NewReleases is sending notifications on new releases.