summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
* New Key API in storage layerRémi Nicole2018-07-27
| | | | | | | | | | | | | | | | | Summary: - Use object oriented paradigm for Keys / Identifiers /Revisions - "Compress" keys by using byte representation of Uuids - Still some cleaning left to do - Also run some benchmarks - I'm questioning whether files other than entitystore (tests excluded) are allowed to access this API Reviewers: cmollekopf Reviewed By: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D13735
* Shouldn't be a warning if we expect to run into it.Christian Mollekopf2018-07-27
| | | | We always run into that when starting a resource.
* Only do partial matching (instead of wildcard) and limit expansion.Christian Mollekopf2018-07-27
|
* Better querytestChristian Mollekopf2018-07-27
|
* All xapian stuff in a central placeChristian Mollekopf2018-07-27
|
* There isn't even a resource which we could shutdown in this testChristian Mollekopf2018-07-26
|
* This is not a reliable test, so we turn it into a warning instead.Christian Mollekopf2018-07-25
|
* No random timeouts in testsChristian Mollekopf2018-07-25
|
* Avoid the socket probing and move the shutdown logic intoChristian Mollekopf2018-07-25
| | | | | | | | | | | | | | | resourceaccess. The problem was (as excercised by the last test in resourcecontroltest), that in this scenario we would: * trigger a synchronization that starts the resource, and then goes into a loop trying to connecting (KAsync::wait -> singleshot timer) * trigger a shutdown that would probe for the socket, not find it, and thus do nothing. * exit the testfunction, which somehow stops qtimer processing, meaning we are stuck in KAsync::wait. For now this is fixed by simply not probing for the socket.
* FixupChristian Mollekopf2018-07-25
|
* Same fix as last commit.Christian Mollekopf2018-07-25
|
* Fixed crash.Christian Mollekopf2018-07-25
| | | | Could be triggered by running the composerviewtest in kube.
* A faster method for a failing connectionChristian Mollekopf2018-07-24
|
* Wait for long enough so we can time-outChristian Mollekopf2018-07-24
|
* Also serialize single contactsChristian Mollekopf2018-07-24
|
* Use the qdebug serializer to print contactsChristian Mollekopf2018-07-24
|
* Print contactsChristian Mollekopf2018-07-24
|
* Always enable the inbox folder.Christian Mollekopf2018-07-16
| | | | | Some services don't have the inbox as part of the subscribed folders, at least not by default, so we just always enable it.
* Deal with modifications to filtered entitiesChristian Mollekopf2018-07-16
|
* Increase timeout to 5s also in tests.Christian Mollekopf2018-07-13
| | | | | The tests seem to be simply to slow right now, so let's bump this to avoid flaky tests.
* Readline is no longer requiredChristian Mollekopf2018-07-13
|
* test utf8Christian Mollekopf2018-07-13
|
* Bumped the version number in the spec fileChristian Mollekopf2018-07-12
|
* CleanupChristian Mollekopf2018-07-12
|
* Fixed the case when a dbi would leak through to a transaction where itChristian Mollekopf2018-07-12
| | | | | | shouldn't be visible yet. Was reproducible in the initial sync of the caldav resource.
* Going towards 0.8Christian Mollekopf2018-07-07
|
* Prepared release of v0.7.0v0.7.0Christian Mollekopf2018-07-07
|
* Document what copies and what doesn'tChristian Mollekopf2018-07-03
|
* A little extra testingChristian Mollekopf2018-07-02
|
* Fixed yet another reduction update codepathChristian Mollekopf2018-07-02
|
* Generate globally unique messageids without leaking the hostnameChristian Mollekopf2018-07-02
|
* Prevent a recycled session from timing out immediately.Christian Mollekopf2018-06-27
| | | | | This seems to happen sometimes (showed up in tests), and causes operations to fail.
* Check if libcurl is built with ssl support.Christian Mollekopf2018-06-27
| | | | On windows we lack ssl support it seems.
* Contains with an empty key doesn't make much sense.Christian Mollekopf2018-06-26
|
* Only modifications have changed propertiesChristian Mollekopf2018-06-26
|
* Avoid overwriting local changes with remote modifications.Christian Mollekopf2018-06-26
| | | | | | | | | | | | | | | | | | | The case we ran into is the following: * Fetching the full payload and marking all messages of a thread as read happens simultaneously. * The local modification to mark as read gets immediately overwritten when the full payload arrives. * Eventually the modification gets replayed to the server though (and the reversal isn't because coming from the source), so on next sync the situation fixes itself. To be able to improve this we try to protect local modifications in that properties that have been modified since baseRevision (which currently isn't, but should be equal to the last to the server replayed revision) are not overwritten. This conflict resolution strategy thus always prefers local modifications. baseRevision is currently set to the current maximum revision of the store at the time when the resource creates the modification.
* Fixed the lost update scenarioChristian Mollekopf2018-06-25
| | | | | | | If we get a fetchMore right between when the revision was updated and the incrementalQuery actually running, we ended up loosing the update because the result provider ended up with a too recent revision after the additional initial query.
* Try harder to avoid storing a revision that is too high in the resultChristian Mollekopf2018-06-22
| | | | | | | | | | | | set. We might miss some updates. This should not normally ever happen if we assume that we have a transaction from start to finish of the query (the maxRevision() call should be equivalent. We do have some cornercases in our lmdb implementation that breaks transactions when new databases are opened, so we try to be extra safe this way.... Let's see if it works.
* Log query resultsChristian Mollekopf2018-06-22
|
* Fixed the thread index.Christian Mollekopf2018-06-19
| | | | | | | | * Modifications could result in index changes because we lost the threadId due to remove + add. A modify was necessary (although we can ignore it for the email case). * The ThreadIndexer would try to lookup and potentially index threads for empty parent ids, which is clearly wrong.
* Asserts, debug messages and other cleanupChristian Mollekopf2018-06-19
|
* Implement Overlap queriesRémi Nicole2018-06-19
| | | | | | | | | | | | | | | | | | | | Summary: Notes: - Introduces the concept of queries on multiple properties (which meant changing query's internals a bit) - Dates are stored as well as the "reference" in the index to allow quick filtering without fetching the whole entity - Buckets are weeks starting on Monday (guaranteed by the use of the Julian calendar) - Some size improvements are definitely possible (dates are padded numbers again, not using integer databases, Julian calendar starts at a very old date, etc.) Test Plan: Tested in querytest Reviewers: cmollekopf Reviewed By: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D13477
* Debug outputChristian Mollekopf2018-06-18
|
* Reduce the maximum database size to 200MB until we have fixed the lmdbChristian Mollekopf2018-06-01
| | | | | | | | | | | issues. https://phabricator.kde.org/T8723 With 200MB we can both deal with the 200MB files on disk, and we could even load all of them (the 5 databases the resource uses), into memory. Once the open problems are resolved we should be able to bump it back to at least 20GB.
* Avoid trying to remove an item that we don't have in the model.Christian Mollekopf2018-06-01
| | | | This triggered the assert in createIndexFromId.
* CleanupChristian Mollekopf2018-05-29
|
* Log to qDebug which we then funnel to Sink::LogChristian Mollekopf2018-05-29
|
* CleanupChristian Mollekopf2018-05-29
|
* Reduce the maximum database size to 10GB on windows.Christian Mollekopf2018-05-29
|
* Only call the result handler if reading succeededChristian Mollekopf2018-05-29
|