aboutsummaryrefslogtreecommitdiffstats
path: root/mdbc-server
AgeCommit message (Collapse)AuthorFilesLines
2019-05-30Relinquish locks for each transactionTschaen, Brendan4-6/+23
Change-Id: I44c10c0cc7857cfb647386507218a4e608b24687 Issue-ID: MUSIC-399 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-05-30Don't create extra locks while claiming ownershipArthur Martella3-9/+19
Issue-ID: MUSIC-402 Signed-off-by: Martella, Arthur <arthur.martella.1@att.com> Change-Id: I12b9ff80be0429ff7a9fc68074a3ca2ec133aee2
2019-05-22Move trigger creation to startupTschaen, Brendan6-54/+18
Change-Id: I0f06d0d704914299ff8dd6dbda2517fd7518507a Issue-ID: MUSIC-396 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-05-22Read write lock implementationTschaen, Brendan10-1338/+132
Change-Id: Ifd680da39305adf36e8a4946643a17e9e0a4df97 Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-05-17Fix Clob,Blob read and writesstatta4-62/+2389
Issue-ID: MUSIC-388 Change-Id: I3ddd84f097231a21423325b04c34a4a90e4ea0e0 Signed-off-by: statta <statta@research.att.com>
2019-05-15Merge "Implement postgres, fixes to eventual, and many bug fixes"Brendan Tschaen34-431/+2320
2019-05-03Implement postgres, fixes to eventual, and many bug fixesArthur Martella34-431/+2320
Streamline upper and lower cases for Ranges Fix initialization of system Merged version of commit https://gerrit.onap.org/r/#/c/86160/ Change-Id: I169ed56ff79ff0a2e14ab9bc5e0467d1c0b9f0a9 Issue-ID: MUSIC-387 Signed-off-by: Arthur Martella <arthur.martella.1@att.com>
2019-04-30Fall back sql parsing optionTschaen, Brendan3-14/+87
If we can't parse the sql query, use basic string analysis to attempt to find the tables Change-Id: Ibb81186e1fb768ee2c7c39b11922c99b79bf942d Issue-ID: MUSIC-391 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-04-18Switch to calcite query parserTschaen, Brendan11-229/+215
Handle SQL Joins Return Schema/DB and table as range Change-Id: I9455da1e9118bc547bf28e5f22cce2cf044ce75a Issue-ID: MUSIC-380 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-04-16Row re-use fixTschaen, Brendan3-8/+23
This prevents rows from being split properly, will follow up on issue Change-Id: I6d9ebbf8cf9abd2cac4992be407fb6cb44cb318b Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-04-15Merge "Close connection also updates StateManager"Thomas Nelson2-1/+4
2019-04-15Merge "Reuse current musicrangeinformation row if possible"Thomas Nelson3-4/+25
2019-04-08Merge "New test script for MDBC"Thomas Nelson1-0/+379
2019-04-08Close connection also updates StateManagerArthur Martella2-1/+4
Change-Id: I5861e06a5d11e8bf58a5ae5c470cc62e1861b77f Issue-ID: MUSIC-369 Signed-off-by: Arthur Martella <arthur.martella.1@att.com>
2019-04-05Optimize eventual readsstatta3-139/+193
Issue-ID: MUSIC-371 Change-Id: Ica2a27a16dd82e5c99cb5775d39c6526ed086187 Signed-off-by: statta <statta@research.att.com>
2019-04-04New test script for MDBCArthur Martella1-0/+379
Change-Id: If38bcf83a3d4f6209907f24b358477d158d9eecd Issue-ID: MUSIC-376 Signed-off-by: Arthur Martella <arthur.martella.1@att.com>
2019-04-04Reuse current musicrangeinformation row if possibleTschaen, Brendan3-4/+25
Change-Id: I748a43cefada08df42894968698adcf48a635afb Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-04-04Merge "Remove benchmarks"Thomas Nelson1-1/+1
2019-04-03Remove benchmarksTschaen, Brendan1-1/+1
Will be moved elsewhere Issue-ID: MUSIC-376 Change-Id: Ieee0ff444e79c71443ff396b69b6a6c113e8ca7e Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-04-03Don't call newLocks.put when lockId isn't setArthur Martella1-3/+2
Change-Id: I77f5870265712958979d7832eeb845d51e35cfe3 Issue-ID: MUSIC-374 Signed-off-by: arthur.martella.1@att.com
2019-04-02Merge "Adding to current partition, and releaseLock bug"Thomas Nelson4-53/+61
2019-03-28Adding to current partition, and releaseLock bugTschaen, Brendan4-53/+61
Change-Id: I9801656a32480c26b39dea5ae59fd27053d92f29 Issue-ID: MUSIC-374 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-03-28Add primary key for delete in tx replayArthur Martella1-3/+4
Change-Id: Ic8a2e8c311dd657fbdb5936568bc8d168458d3b2 Issue-ID: MUSIC-371 Signed-off-by: Arthur Martella <arthur.martella.1@att.com>
2019-03-28Merge "Include primary key in insert query"Bharath Balasubramanian1-6/+23
2019-03-27Improve commit log and benchmarksArthur Martella27-721/+876
Attempting to reconcile Enrique's change at https://gerrit.onap.org/r/#/c/82999/ with the current master. Change-Id: Id669c267e89d185a18d4dfa9a24852ddefcd83eb Issue-ID: MUSIC-369 Signed-off-by: Arthur Martella <arthur.martella.1@att.com>
2019-03-26Include primary key in insert queryTschaen, Brendan2-8/+25
Allows replays to easily modify an insert into an update if needed Change-Id: Ibd0c077240a23aeff3d82ec171c1cecb3274e211 Issue-ID: MUSIC-371 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-03-25Merge "Warm up ranges across sites"Bharath Balasubramanian11-58/+296
2019-03-22Insert/update interchange and PS issuestatta4-109/+177
Issue-ID: MUSIC-276 Change-Id: I9c9b990cb362adae81e621db527a0f890e00c7eb Signed-off-by: statta <statta@research.att.com>
2019-03-20Warm up ranges across sitesTschaen, Brendan11-58/+296
Add configuration to select which ranges we warm up. Default (null) is all ranges Change-Id: I0f241563959cc9fb673ab6d8a87c45e8399086c2 Issue-ID: MUSIC-287 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-03-14Shutdown hook logicTschaen, Brendan2-0/+10
Release connections and partitions owned by this server instance Change-Id: I293705b0d212fcba7e6f80678dee70130a8abe25 Issue-ID: MUSIC-361 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-03-05Remove ownership logic from mixinTschaen, Brendan12-331/+453
Change-Id: I70d62e76e23c690726294c62b9222c4cd9659c70 Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-03-05Refactorization of musicmixin's own codeTschaen, Brendan5-51/+104
Issue-ID: MUSIC-326 Change-Id: Ia07ff8e6e5c6bd9444f8967eae392a67bf08b7f2 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-02-26Improve serialization and table ownEnrique Saurez17-355/+2311
Reimplement benchmark Improve serialization using proto Change staging table structure Change-Id: Ic13787f81eb7443807efde0e407ab3a4c71a5d64 Issue-ID: MUSIC-327 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2019-02-18Use MariaDB librariesTschaen, Brendan1-7/+0
Change-Id: I240b94f7381c45b548b8d70714a4fcdb383a14aa Issue-ID: MUSIC-337 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-02-11Fix Eventual consistencyst782s3-172/+191
Issue-ID: MUSIC-319 Change-Id: I7433e7d71c44ffe623e560863e7e1fd9c0f247ce Signed-off-by: st782s <statta@research.att.com>
2019-02-07Update sql parse interfaceTschaen, Brendan3-197/+287
Created junit tests Fix files code formatting Issue-ID: MUSIC-311 Change-Id: I9e11a17482a2567055fdee0da8e206ac92235d5f Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-02-05Increase timeout on junitsTschaen, Brendan1-1/+1
Issue-ID: MUSIC-309 Change-Id: Ic3d1095e4fa10da8ef06b62884db0c9e6ebb7612 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-02-01Add optimization to Eve Logicst782s5-58/+171
Issue-ID: MUSIC-276 Change-Id: I5c2e7ee79301ebca71abda952153eed89eea3f8f Signed-off-by: st782s <statta@research.att.com>
2019-01-31Merge "Switch to using mariadb connector"Thomas Nelson1-0/+7
2019-01-31Switch to using mariadb connectorTschaen, Brendan1-0/+7
Change-Id: I24a756971b8b653cf2c753f76995b53c53b68d52 Issue-ID: MUSIC-289 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-01-29Keyspace creation, and handling of mdbc_cuidEnrique Saurez14-79/+168
Issue-ID: MUSIC-281 Signed-off-by: Enrique Saurez<enrique.saurez@gmail.com> Change-Id: I3bc685e30e064c1c93386301385115632b179449
2019-01-23Fix node configuration/executable, and minor bugsEnrique Saurez16-105/+234
Change-Id: Ia442afe3146a532b01f8e7ef0f26c2dcbfdf4334 Issue-ID: MUSIC-281 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2019-01-22Add Eventual consistency logicst782s14-153/+624
Issue-ID: MUSIC-276 Change-Id: Ie6b2508c57f0a7b677f48f87c991adcd613147cc Signed-off-by: st782s <statta@research.att.com>
2019-01-17mdbc-server throws exceptionRob Daugherty1-0/+5
This happens when the TablesConfiguration is done. It's apparently caused because music jar was compiled with netty 4.1, but the version present at runtime is 4.0. The solution I propose is to add an explicit dependency in mdbc for netty 4.1, which should override the 4.0 version pulled in by cassandra. Exception (java.lang.AbstractMethodError) encountered during startup: io.netty.util.concurrent.MultithreadEventExecutorGroup.newChild(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Lio/netty/util/conc urrent/EventExecutor; java.lang.AbstractMethodError: io.netty.util.concurrent.MultithreadEventExecutorGroup.newChild(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Lio/netty/util/concurrent/EventExecutor; Change-Id: Ie658ce4a7621eb2a0d2417d35e0fd2bd96565c8c Issue-ID: MUSIC-271 Signed-off-by: Rob Daugherty <rd472p@att.com>
2019-01-15Dag, Ownership and Checkpoint (ignore some tests)Enrique Saurez26-419/+2758
Change-Id: Ia720ba45b4f9c8687f5eac5b0d64fd2be19fedaa Issue-ID: MUSIC-269 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2018-12-20Remove netty dependency pulled in by music libraryTschaen, Brendan1-0/+6
Issue-ID: MUSIC-265 Change-Id: I04a403653db4bb989901a565cf64f85a0ed2239b Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-12-13Deprecated unused method. logged CREATE statement.Vikram Potturi1-6/+24
Change-Id: I39155ef4e523fe4a643089eb26be388ca47aa4d2 Issue-ID: MUSIC-164 Signed-off-by: Vikram Potturi <vikramaditya.potturi@att.com>
2018-12-13Allow configurable database nameTschaen, Brendan2-2/+4
Change-Id: I967df28f2f5281e7eee6a03087a279cbbe9f6e3e Issue-ID: MUSIC-258 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-12-07Clean up ownership workTschaen, Brendan9-267/+224
leverage DatabasePartition class remove extra classes, improve workflow remove failing unit test ensure example runs all the way through Change-Id: If8d59d207d093d4245b9d6cb5bd59c7fe1ebfb19 Issue-ID: MUSIC-230 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-12-04CreateNodeConfigurations never exitsRob Daugherty1-0/+1
A non-daemon background thread is keeping the process alive even when the main method is done. Change-Id: I707a30df758e847a160f55512219add37eddaab1 Issue-ID: MUSIC-217 Signed-off-by: Rob Daugherty <rd472p@att.com>