Commit graph

  • 098e7367d5 Merge branch 'develop' master Greg Burd 2018-11-10 08:50:20 -0500
  • 9db3500e3a Repair the copyright per Casser author's request. Also fix DOS line endings. develop Greg Burd 2018-11-10 08:50:02 -0500
  • 10138e82bf Enable cache iterators to remove from the statement cache. 2.1.x-SNAPSHOT Greg Burd 2018-04-23 13:03:17 -0400
  • d179539a31 Only unwrap cache implementation for clients who are expecting the Map interface. Greg Burd 2018-04-23 12:37:49 -0400
  • 06fe21d08e Update visibility to allow subclasses to change log message. Greg Burd 2018-04-19 10:44:39 -0400
  • 099fd999ee Don't stop the stopwatch if it's not running. Greg Burd 2018-04-04 14:34:59 -0400
  • 662a697d03 Changes to andThen/orElse and adding exceptionally logic. On commit one or the other of andThen or orElse will fire based on the path (commit, abort). If during any of those an exception is thrown the exceptionally is called with the exception. Greg Burd 2018-04-02 11:45:49 -0400
  • b449817659
    Merge pull request #2 from onshape/jgdef_delete_and_fixes Gregory Burd 2018-04-01 08:59:41 -0400
  • e6051b12e9 Delegate-based delete-tracking cache implementation, fixes to javax.cache.Cache implementation, and unit tests jgdef_delete_and_fixes John de Freitas 2018-03-31 22:24:12 -0400
  • 9f511cde74 Revert "Not-yet-tested tracking of UOW deletes" John de Freitas 2018-03-31 22:21:28 -0400
  • 4b9187ebe5 Revert "Delegate-based evict-tracking cache, fixes to core javax.cache.Cache implemenation MapCache, and unit tests" John de Freitas 2018-03-31 22:21:18 -0400
  • 93a81e7fd0 Delegate-based evict-tracking cache, fixes to core javax.cache.Cache implemenation MapCache, and unit tests John de Freitas 2018-03-31 22:18:28 -0400
  • 3169d0c100 Not-yet-tested tracking of UOW deletes John de Freitas 2018-03-30 11:12:00 -0400
  • b27bc7d9a9 Not-yet-tested tracking of UOW deletes John de Freitas 2018-03-30 11:12:00 -0400
  • 1f4c2154e2 Remove purpse guessing logic, it's overhead and buggy. Greg Burd 2018-03-29 11:57:43 -0400
  • 6788cea1a0 Fix array out of bound bug in UnitOfWork purpose discovery logic. Greg Burd 2018-03-29 11:16:57 -0400
  • 9d94e865b6 Allow subclasses access to the session. Greg Burd 2018-03-28 09:15:15 -0400
  • 166368c9dc Merge branch 'develop' Greg Burd 2018-03-28 08:29:06 -0400
  • 654f4434bf Remove Zipkin. Revert abstracted UnitOfWork into single class. Greg Burd 2018-03-28 08:27:49 -0400
  • 6c245c121e Avoid NPE when batch passed in was null. Greg Burd 2018-03-05 08:37:48 -0500
  • ef455ac032 Find table name after binding facets. Revert duplicate null check. Greg Burd 2018-03-01 06:38:47 -0700
  • b1e333009c Don't merge in keys with null values, JCache doesn't support null values. Greg Burd 2018-03-01 05:23:43 -0700
  • ca6afc326c Qualify index names with their table name. Greg Burd 2018-02-28 06:48:30 -0500
  • af4156079d Formatting and fixes to use MapCache in the UOW. Greg Burd 2018-02-10 12:32:54 -0500
  • b023ec359b Moving toward javax.cache.Cache-based UOW cache API. Greg Burd 2018-02-09 21:55:23 -0500
  • 76b603f3d3 Move the Guava JCache provider into the test targets only, don't assume a CacheManager instance exists. Greg Burd 2018-02-08 14:46:31 -0500
  • d69d8a3b1e Finish first steps of JCache integration, UnitOfWork statement cache now merges into available JCache at commit. Greg Burd 2018-02-08 10:09:23 -0500
  • 6858cf6f48 Integrate JCache for cached objects outside of a UnitOfWork. Greg Burd 2018-02-07 18:41:39 -0500
  • 5215749de1
    Merge pull request #1 from onshape/pbeaman/remove-jamm-0.2.5-dependency Gregory Burd 2018-01-27 06:41:46 -0500
  • 2299939be3 Remove test-scope dependency on jamm-0.2.5 because it conflicts with a later version and causes NoSuchMethodError when running unit tests in Eclipse pbeaman/remove-jamm-0.2.5-dependency pbeaman 2018-01-26 10:42:13 -0500
  • 0ddacec354 Removing Gradle files until switch is complete. Greg Burd 2018-01-25 16:45:13 -0500
  • 287e1a5b8b Use DataStax/Cassandra timestamp generator. Greg Burd 2018-01-25 14:21:12 -0500
  • 8b9d582fa5 Mutation only needs to be different and can occur even when current is null. Greg Burd 2018-01-25 12:57:37 -0500
  • 96a8476fd8 Null values have no keys in the map, so this test fails. In most casses we're here after we resolve a getter so we know this key is valid. Skip the check. Greg Burd 2018-01-25 12:41:13 -0500
  • f168b33f6a Formatting. Greg Burd 2018-01-25 11:30:41 -0500
  • 11de7015c2 Change mutate on drafts to be a bit faster. Greg Burd 2018-01-25 11:26:12 -0500
  • f9b1563bdd Ensure there is a batch. Greg Burd 2018-01-24 16:11:44 -0500
  • e2f45f82c9 Fix logged batch syntax and timestamp logic. Greg Burd 2018-01-24 14:33:37 -0500
  • 27dd9a4eff Include the post commit/abort function execution time that happens within/associated-with the scope of a UOW. Fix reset method to check both maps for updates. Greg Burd 2018-01-24 09:28:19 -0500
  • 26f41dab75 Add notion of statement cache to UnitOfWork. Ignore call to useKeyspace when session isn't valid. Greg Burd 2018-01-17 12:38:33 -0500
  • 1da822ce57 Fix build. Change scripts to use /usr/bin/env so that they work on NiXOS. Revert abort() logic. Greg Burd 2018-01-16 13:10:12 -0500
  • 1ef50ae179 Allow an init path that doesn't require a non-null Cassandra/DataStax session/cluster context. Greg Burd 2018-01-16 11:59:51 -0500
  • 26c67e391a Review related fixes. Greg Burd 2018-01-15 11:28:04 -0500
  • 3554b7ecb5 Add isDone() method on UnitOfWork. Greg Burd 2018-01-14 12:51:49 -0500
  • 7b4e46431f Update DataStax driver version. Greg Burd 2017-12-14 10:19:38 -0500
  • 60b040e7a9 Always start the timer. Greg Burd 2017-12-11 16:03:52 -0500
  • 7a470bd5d7 Formatting. Greg Burd 2017-11-15 22:39:50 -0500
  • 0827291253 Spoil futures not completed before an abort/commit of the UOW they belong too. Track read set for Entity/Drafted model objects. Greg Burd 2017-11-15 13:56:03 -0500
  • 50f656bc8a Fix commit.andThen() logic. Greg Burd 2017-11-15 09:16:15 -0500
  • 9df97b3e44 WIP: commit.exceptionally() is working but somehow in the process I broke commit.andThen(). Greg Burd 2017-11-14 22:37:37 -0500
  • 33b4b35912 Formatting. Greg Burd 2017-11-14 15:42:16 -0500
  • 1eccb631f3 Fix logic that was failing to cache results on cache miss. Greg Burd 2017-11-14 15:26:16 -0500
  • e932d0dcf2 Check to ensure value not null. Greg Burd 2017-11-14 10:06:13 -0500
  • 618a7ea380 Draft instances map is mutable and so are collection values inside the map, this makes the UPDATE logic straight forward when mutating in-cache draft objects. Also, fix one or two logic bugs with isAssignableFrom(). Greg Burd 2017-11-14 09:55:03 -0500
  • 7a56059036 Fix misuse of Drafted interface in tests. WIP fixing use of immutable collections in UPDATE/draft logic. Greg Burd 2017-11-13 15:55:24 -0500
  • 33d2459538 Sometimes there are no filters. Greg Burd 2017-11-13 11:01:30 -0500
  • a63a1be4b6 Paranoia. Greg Burd 2017-11-13 10:47:48 -0500
  • d30361538c Operations now default to non-idempotent unless explictly set in the statement or if they contain fields that are idempotent (e.g. @Column(idempotent=true) or part of the primary key for the row). Greg Burd 2017-11-13 10:36:16 -0500
  • a993af6c29 Enable toggle for showing values in logged CQL statements. Default to true. Greg Burd 2017-11-12 22:32:58 -0500
  • 39a8643103 Fix a few things. Greg Burd 2017-11-12 21:37:59 -0500
  • c025dc35a7 Formatting. Greg Burd 2017-11-12 20:14:31 -0500
  • d19a9c741d Fixing a few corners of caching when using drafted entity objects. Working out kinks in merge logic for entity instances in UOWs. Greg Burd 2017-11-10 22:48:40 -0500
  • 6ff188f241 Move statement logging into Operation, cover special case for batches. Cleanup UOW commit logging a bit. Greg Burd 2017-11-09 15:03:30 -0500
  • 2f0801d36f Fix test to see if select is of Fun<?> type. Greg Burd 2017-11-09 13:32:16 -0500
  • ad9261fda3 WIP: started with wal idea, shifting to accounting table. gburd/txn Greg Burd 2017-11-09 12:05:09 -0500
  • b4dca9c710 finish up batch feature for now Greg Burd 2017-11-08 21:11:58 -0500
  • 41e5d8c1e5 wip: working on batch update times. Greg Burd 2017-11-08 15:40:56 -0500
  • 5570a97dff Improved support for batched statements. Greg Burd 2017-11-08 13:50:39 -0500
  • a198989a76 Cleanup. Greg Burd 2017-11-07 23:01:43 -0500
  • eb22e3c72e Added batch() to perform mutations as a batch at the commit of a unit of work. Lots of fixes. Greg Burd 2017-11-07 21:23:33 -0500
  • a79e7dacf1 Cache data from MaterializedViews under their parent name. Add some relationship constraints that can decorate getters in model classes and be used in some cases to better cache data. Greg Burd 2017-11-06 13:49:34 -0500
  • fe47531984 Formatting. Greg Burd 2017-11-03 13:32:57 -0400
  • a600c0bd23 Correct logic error. Greg Burd 2017-11-03 11:41:09 -0400
  • b777e9c051 Remove redundant dependency. Greg Burd 2017-11-03 10:42:46 -0400
  • 0b86d33725 Change ALLOW FILTERING logic and session cache merge a bit. Greg Burd 2017-11-03 08:49:31 -0400
  • 9eaa53c5f0 Merge branch 'develop' Greg Burd 2017-11-02 16:32:22 -0400
  • 690cd1e064 Formatting. Greg Burd 2017-11-02 16:32:09 -0400
  • ef4f9054ac Formatting. Greg Burd 2017-11-02 16:23:45 -0400
  • 465c7d6f2a Don't reset is first index every iteration Greg Burd 2017-11-02 16:12:46 -0400
  • 864c4af5af We only transition to allow filtering and only if we've not already set it. Greg Burd 2017-11-02 16:09:47 -0400
  • d1fe54b0ce Add ALLOW FILTERING in the cases Cassandra requires it based on query. More result info formatting. Greg Burd 2017-11-02 15:46:49 -0400
  • 962145bf46 Formatting. Greg Burd 2017-11-02 15:08:58 -0400
  • e4cda1a268 Re-enable (for now) the addition of ALLOW FILTERING to SELECT statements that include a filter column indexed by a non-standard index type (e.g. SASI, Lucene, etc.) as that's required and mysterious to end users. Greg Burd 2017-11-02 15:05:43 -0400
  • 377191f12a No longer add allowFiltering based on entity properties, force user to add as required. Add information about Cassandra execution to the UOW log line when DEBUG. Throw errors when execution doesn't complete properly. Greg Burd 2017-11-02 14:46:55 -0400
  • 792d2b6598 Find proper stack frame to use for purpose. Greg Burd 2017-11-02 10:42:15 -0400
  • 2ee300e420 Formatting. Greg Burd 2017-11-01 16:19:07 -0400
  • 13eaa7e7ea Change how we find the frame to use for the UOW's purpose. Greg Burd 2017-11-01 16:17:00 -0400
  • 5905663c58 Cached values were being updated to their database-specific values (Enum -> String) rather than their intended values. Greg Burd 2017-11-01 14:24:03 -0400
  • 857eadff45 Avoid complications with merges in the session cache, evict and then update. Greg Burd 2017-11-01 11:09:14 -0400
  • e1884cf52d Remove the 'final' from HelenusSession. Greg Burd 2017-10-31 12:59:54 -0400
  • 09a7fbc405 Address some issues identified by FindBugs. Greg Burd 2017-10-31 21:10:15 -0400
  • 01a458a7f6 A few minor fixes. Greg Burd 2017-10-31 17:43:52 -0400
  • 9675c10772 Merge branch 'develop' Greg Burd 2017-10-30 15:59:38 -0400
  • 48545c1e84 Finish implementation of proxy model objects. Greg Burd 2017-10-30 15:21:43 -0400
  • dcea254fdb Formatting. Greg Burd 2017-10-30 11:52:12 -0400
  • 5605824886 Minor fixes. Greg Burd 2017-10-30 11:49:48 -0400
  • c3f9b83770 Log the purposes of nested UOWs as well as the parent. Create a serialization proxy for mapped objects. Greg Burd 2017-10-30 09:40:41 -0400
  • 52dab5872c Formatting. Also, need to redo merge so as to avoid ValueProviderMap immutability. Greg Burd 2017-10-27 15:05:08 -0400
  • a65b775faa Abstract the SessionCache and allow outside implementations. Greg Burd 2017-10-27 14:33:04 -0400
  • 62be0e6ccd Merge branch 'gburd/wip-abstract-cache' into develop Greg Burd 2017-10-27 14:01:08 -0400