-
Notifications
You must be signed in to change notification settings - Fork 72
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
Changes to support Edge Server #2202
Open
snej
wants to merge
49
commits into
master
Choose a base branch
from
feature/edge-server
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Removed RESTListener - Misc. internal API additions / changes / fixes
WITH_ERROR can't use Catch's UNSCOPED_INFO(), but I've amended it to use WARN(), which will also show up in the test results.
If the pool is opened with a read-only db, then borrowWriteable() should immediately throw NotWriteable, not wait for a db to be returned and then throw Busy.
c4Replicator+Pool.hh defines factory functions to start a replicator given a DatabasePool* not a C4Database*. This shields callers from having to include c4DatabaseImpl.hh etc., which drag in a buttload of internal replicator headers.
Gives Task subclasses more control over when a finished task should be removed from the listing. Needed for ChangesTask.
Return value is true if index was created or replaced, false if nothing changed.
Requires updating EE repo
- clang-format - BorrowedCollection retains its C4Collection - Fixed warnings about out-of-order initializers - Fixed some params that needed C4NULLABLE - Removed unused SyncListener member variables
CBL_CORE_API shouldn't be used on the _definitions_ of data values, only their _declarations_.
This occurs when EdgeServer sends an HTTP response but the client has closed the socket.
clang-format reformats the declaration of "challengeAuth" weirdly, with a two-line comment that has a '\' at the end of the first line. GCC warns about this with -Wall. Moved the doc-comment above the declaration to prevent this.
Internally, I streamlined the RecordEnumerator API by folding the other initialization parameters into the Options struct.
- ICU is now downloaded as part of the build - No more top level build server CMake wrapper is needed - LiteCore and LiteCoreStatic targets can be disabled to avoid having needless install output - Move sTempDir into LogEncoderTest.cc so it can be shared between CppTests and cbl-logtest
for EdgeServer, as part of creating Etags
It caused errors when LITECORE_BUILD_TESTS or LITECORE_BUILD_SHARED were turned off.
It's a no-op that got left in a commit (27d3530) by accident.
- HTTPLogic::parseHeaders() rejects control characters - Added constant for status 415 - Proper errors in TCPSocket::readHTTPBody()
Jenkins builds are failing due to a CMake error:
|
Ubuntu in GitHub CI is failing a test due to a runtime exception:
I know how to fix this... |
The index is created lazily. If a collection doesn't have one, an operation using a read-only db from the pool might trigger creating it, which will fail because it's read-only. To work around this, DBAccess's constructor uses the writeable db to call call `getDocumentBySequence` on every collection, forcing the index to be created.
The search for ICU needs to happen on Linux desktop only. Also, ensure that the BUILD_ENTEPRISE flag is properly set now that we don't use the wrapper CMake project anymore (also on Windows this happened)
Code Coverage Results:
|
and bump compiler version to gcc 11 (required for using cbdeps ICU)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch contains all the LiteCore enhancements & fixes needed to implement Edge Server.
IMPORTANT: There are also changes in the EE repo: https://github.com/couchbase/couchbase-lite-core-EE/pull/47