Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade realm-core to v13.20.1 #1398

Merged
merged 6 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
* `SyncClientError`, `SyncConnectionError`, `SyncSessionError`, `SyncWebSocketError`, `GeneralSyncError`
* `SyncClientErrorCode`, `SyncConnectionErrorCode`, `SyncSessionErrorCode`, `SyncWebSocketErrorCode`, `GeneralSyncErrorCode, SyncErrorCategory`
* Added new Sync errors types `BadFlexibleSyncQueryError`, `WrongSyncTypeError` and `UnrecoverableSyncError`. ([#1387](https://github.com/realm/realm-dart/pull/1387))
* Throw an exception if `File::unlock` has failed, in order to inform the SDK that we are likely hitting some limitation on the OS filesystem, instead of crashing the application and use the same file locking logic for all the platforms. (Core upgrade)

### Fixed
* Crash when querying the size of a Object property through a link chain (Core upgrade, since v13.17.2)
* Deprecated `App.localAppName` and `App.localAppVersion`. They were not used by the server and were not needed to set them. ([#1387](https://github.com/realm/realm-dart/pull/1387))
* Fixed crash in slab allocator (Assertion failed: ref + size <= next->first) Many issues like (Core upgrade, since 13.0.0)
* When using OpenSSL (i.e. on non-Apple platforms) the `TlsHandshakeFailed` error code would never be reported and instead TLS errors would be reported as `SyncConnectFailed` (Core upgrade).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not remove this? We don't show this errors to the users anymore.

* Sending empty UPLOAD messages may lead to 'Bad server version' errors and client reset. (Core upgrade, since v11.8.0)

### Breaking Changes

Expand All @@ -26,7 +30,7 @@
* Sync protocol version bumped to 10. (Core upgrade)
* Handle `badChangeset` error when printing changeset contents in debug. (Core upgrade)

* Using Core 13.19.0.
* Using Core 13.20.1.

## 1.4.0 (2023-08-16)

Expand Down
19 changes: 10 additions & 9 deletions lib/src/native/realm_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11293,15 +11293,16 @@ abstract class realm_errno {
static const int RLM_ERR_SYNC_CLIENT_RESET_REQUIRED = 1032;
static const int RLM_ERR_SYNC_COMPENSATING_WRITE = 1033;
static const int RLM_ERR_SYNC_CONNECT_FAILED = 1034;
static const int RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE = 1035;
static const int RLM_ERR_SYNC_PERMISSION_DENIED = 1036;
static const int RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED = 1037;
static const int RLM_ERR_SYNC_PROTOCOL_NEGOTIATION_FAILED = 1038;
static const int RLM_ERR_SYNC_SERVER_PERMISSIONS_CHANGED = 1039;
static const int RLM_ERR_SYNC_USER_MISMATCH = 1040;
static const int RLM_ERR_TLS_HANDSHAKE_FAILED = 1041;
static const int RLM_ERR_WRONG_SYNC_TYPE = 1042;
static const int RLM_ERR_SYNC_WRITE_NOT_ALLOWED = 1043;
static const int RLM_ERR_SYNC_CONNECT_TIMEOUT = 1035;
nielsenko marked this conversation as resolved.
Show resolved Hide resolved
static const int RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE = 1036;
static const int RLM_ERR_SYNC_PERMISSION_DENIED = 1037;
static const int RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED = 1038;
static const int RLM_ERR_SYNC_PROTOCOL_NEGOTIATION_FAILED = 1039;
static const int RLM_ERR_SYNC_SERVER_PERMISSIONS_CHANGED = 1040;
static const int RLM_ERR_SYNC_USER_MISMATCH = 1041;
static const int RLM_ERR_TLS_HANDSHAKE_FAILED = 1042;
static const int RLM_ERR_WRONG_SYNC_TYPE = 1043;
static const int RLM_ERR_SYNC_WRITE_NOT_ALLOWED = 1044;
static const int RLM_ERR_SYSTEM_ERROR = 1999;
static const int RLM_ERR_LOGIC = 2000;
static const int RLM_ERR_NOT_SUPPORTED = 2001;
Expand Down
1 change: 1 addition & 0 deletions lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3426,6 +3426,7 @@ enum SyncErrorCodes {
syncClientResetRequired(realm_errno.RLM_ERR_SYNC_CLIENT_RESET_REQUIRED),
syncCompensatingWrite(realm_errno.RLM_ERR_SYNC_COMPENSATING_WRITE),
syncConnectFailed(realm_errno.RLM_ERR_SYNC_CONNECT_FAILED),
syncConnectTimeout(realm_errno.RLM_ERR_SYNC_CONNECT_TIMEOUT),
syncInvalidSchemaChange(realm_errno.RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE),
syncPermissionDenied(realm_errno.RLM_ERR_SYNC_PERMISSION_DENIED),
syncProtocolInvariantFailed(realm_errno.RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED),
Expand Down
2 changes: 1 addition & 1 deletion src/realm-core
Submodule realm-core updated 63 files
+50 −0 CHANGELOG.md
+1 −1 Package.swift
+1 −1 dependencies.list
+9 −0 evergreen/add_fake_appid.js
+36 −14 evergreen/config.yml
+6 −0 evergreen/install_baas.sh
+11 −12 evergreen/setup_baas_host.sh
+12 −6 evergreen/setup_baas_host_local.sh
+4 −1 src/external/IntelRDFPMathLib20U2/CMakeLists.txt
+4 −0 src/external/s2/util/math/mathutil.h
+1 −0 src/realm/alloc_slab.hpp
+0 −13 src/realm/array.cpp
+0 −15 src/realm/array.hpp
+1 −2 src/realm/array_basic_tpl.hpp
+1 −0 src/realm/array_bool.hpp
+1 −0 src/realm/array_list.hpp
+2 −1 src/realm/array_typed_link.hpp
+36 −32 src/realm/db.cpp
+13 −5 src/realm/db.hpp
+2 −0 src/realm/error_codes.cpp
+10 −9 src/realm/error_codes.h
+1 −0 src/realm/error_codes.hpp
+22 −13 src/realm/exec/CMakeLists.txt
+59 −41 src/realm/exec/importer.cpp
+10 −3 src/realm/exec/importer_tool.cpp
+9 −6 src/realm/exec/realm_browser.cpp
+2 −2 src/realm/exec/realm_decrypt.cpp
+41 −33 src/realm/exec/realm_dump.c
+0 −2 src/realm/exec/realm_encrypt.cpp
+2 −2 src/realm/exec/realm_enumerate.cpp
+15 −15 src/realm/exec/realm_trawler.cpp
+1 −0 src/realm/group.hpp
+109 −66 src/realm/group_writer.cpp
+59 −32 src/realm/group_writer.hpp
+1 −0 src/realm/object-store/CMakeLists.txt
+4 −4 src/realm/object-store/util/copyable_atomic.hpp
+54 −18 src/realm/parser/driver.cpp
+4 −1 src/realm/query.cpp
+23 −1 src/realm/sort_descriptor.cpp
+2 −0 src/realm/sync/CMakeLists.txt
+1 −1 src/realm/sync/network/default_socket.cpp
+14 −25 src/realm/sync/network/network_ssl.cpp
+3 −3 src/realm/sync/network/network_ssl.hpp
+32 −9 src/realm/sync/noinst/client_impl_base.cpp
+4 −3 src/realm/sync/socket_provider.hpp
+25 −11 src/realm/transaction.cpp
+18 −7 src/realm/transaction.hpp
+12 −11 src/realm/util/file.cpp
+5 −3 src/realm/util/file.hpp
+5 −0 src/realm/util/logger.hpp
+1 −2 src/realm/util/serializer.cpp
+44 −1 test/benchmark-common-tasks/main.cpp
+9 −1 test/object-store/CMakeLists.txt
+65 −0 test/object-store/realm.cpp
+70 −0 test/object-store/sync/flx_sync.cpp
+116 −115 test/object-store/sync/session/session.cpp
+10 −6 test/object-store/util/sync/session_util.hpp
+19 −13 test/object-store/util/test_file.cpp
+3 −1 test/object-store/util/test_file.hpp
+0 −71 test/test_array.cpp
+17 −6 test/test_metrics.cpp
+24 −4 test/test_parser.cpp
+36 −0 test/test_table_view.cpp
Loading