aboutsummaryrefslogtreecommitdiffstats
path: root/mdbc-server/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2019-10-22Hot restartTschaen, Brendan4-10/+91
Issue-ID: MUSIC-421 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: Id8657485e11edba35d854c131fa2824c9bef28df
2019-10-09Various bug fixes and code cleanupTschaen, Brendan5-13/+22
Issue-ID: MUSIC-524 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: I20bb92f820ae373dfd1b365e8e279431aa999af0
2019-09-27Deadlock detection and recovery with new Music versionArthur Martella6-21/+34
Update MDBC to new Music version Fix errors caused by update Deadlock detection and recovery Replaces improperly stacked commits at https://gerrit.onap.org/r/c/music/mdbc/+/96357/2 Issue-ID: MUSIC-502 Signed-off-by: Martella, Arthur <arthur.martella.1@att.com> Change-Id: I96b87ba73b811a672e03895e0124d78d9bf409b1
2019-09-19Remove duplicate table creationsubhash.kumar.singh2-26/+2
Remove code to create table as it is already done by the MusicMixin constructor. Added java8 syntax enhancement. Change-Id: Ic04987d701e969466f40fbe255576b85206032f9 Signed-off-by: subhash.kumar.singh <subhash.kumar.singh@huawei.com> Issue-ID: MUSIC-412
2019-08-06Replay Transaction UpdatesTschaen, Brendan2-10/+11
Simplify replay logic, already applied datastructure Remove table from txdigest column Issue-ID: MUSIC-421 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: Ic757e6302e05d188704e625c76a77b106e000152
2019-07-25Split partition using MRUTschaen, Brendan2-2/+2
Most recently used approach to splitting a partition. Split happens when committing, we see what we've used from existing partition and splits accordingly. This feature is configurable via the mdbc.properties file. Issue-ID: MUSIC-404 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: Ie33f4d1ae0e6253678062558015c2a10c4fae614
2019-07-24Replay transaction bugfixTschaen, Brendan1-1/+1
Must replay all transaction in current partition's history Issue-ID: MUSIC-464 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: I4e0cc7f1aca0b8506f2ca617169a427cc85bbbeb
2019-07-09Merge if necessary after ownershipTschaen, Brendan5-74/+75
Cleaned up merge if necessary code Change List to Set, which caused cascading changes.... Issue-ID: MUSIC-404 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: Ie7aaeb3ff43073eb3947515523e73037089e763d
2019-07-01Maintain server checkpoint locationsTschaen, Brendan1-0/+1
Issue-ID: MUSIC-421 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: I39d3eec764e55b6544add41acbd2a86bde532262
2019-06-24Keep history of MRI rows in tableTschaen, Brendan2-4/+3
Remove unused functions, and various code cleanup Issue-ID: MUSIC-414 Signed-off-by: Tschaen, Brendan <ctschaen@att.com> Change-Id: I57885d01723d5fb9e8aa449774da9269a4073932
2019-05-22Read write lock implementationTschaen, Brendan3-6/+39
Change-Id: Ifd680da39305adf36e8a4946643a17e9e0a4df97 Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-05-15Merge "Implement postgres, fixes to eventual, and many bug fixes"Brendan Tschaen8-446/+711
2019-05-03Implement postgres, fixes to eventual, and many bug fixesArthur Martella8-446/+711
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, Brendan1-10/+45
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, Brendan2-43/+62
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-05Optimize eventual readsstatta1-17/+52
Issue-ID: MUSIC-371 Change-Id: Ica2a27a16dd82e5c99cb5775d39c6526ed086187 Signed-off-by: statta <statta@research.att.com>
2019-03-27Improve commit log and benchmarksArthur Martella5-46/+46
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-20Warm up ranges across sitesTschaen, Brendan1-0/+137
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-05Remove ownership logic from mixinTschaen, Brendan2-97/+117
Change-Id: I70d62e76e23c690726294c62b9222c4cd9659c70 Issue-ID: MUSIC-326 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2019-02-26Improve serialization and table ownEnrique Saurez3-63/+37
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-07Update sql parse interfaceTschaen, Brendan1-0/+105
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-01-29Keyspace creation, and handling of mdbc_cuidEnrique Saurez1-2/+3
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 Saurez3-21/+28
Change-Id: Ia442afe3146a532b01f8e7ef0f26c2dcbfdf4334 Issue-ID: MUSIC-281 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2019-01-22Add Eventual consistency logicst782s2-8/+4
Issue-ID: MUSIC-276 Change-Id: Ie6b2508c57f0a7b677f48f87c991adcd613147cc Signed-off-by: st782s <statta@research.att.com>
2019-01-15Dag, Ownership and Checkpoint (ignore some tests)Enrique Saurez6-97/+798
Change-Id: Ia720ba45b4f9c8687f5eac5b0d64fd2be19fedaa Issue-ID: MUSIC-269 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2018-12-07Clean up ownership workTschaen, Brendan1-26/+30
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-11-30Upgrade to MUSIC 3.2.1Rob Daugherty3-17/+52
Add license headers to new files Change-Id: I1a557dbafbd29ce457b545dbd1ca2bc0db62a085 Issue-ID: MUSIC-219 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-11-29ownership and relinquishEnrique Saurez3-3/+322
Change-Id: I625bd61adfac11febdb25b179efbc6134a276f12 Issue-ID: MUSIC-219 Signed-off-by: Enrique Saurez <enrique.saurez@gmail.com>
2018-11-26MySQL JUnit testTschaen, Brendan1-0/+80
and code cleanup, renaming variable for clarity, updating stale interfaces Change-Id: I766267c442b7b037b41fe9f2f33092a1c01669ca Issue-ID: MUSIC-205 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-11-20Replay operations into SQL DBTschaen, Brendan1-2/+7
Change-Id: Id90c311b701e27aebd53afbde9cab851fa17ce60 Issue-ID: MUSIC-166 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-11-20MusicSqlManager Removal, othe code refactorsTschaen, Brendan2-4/+12
MusicSqlManager not required in current setup Current code condensed and absorbed into MdbcConnection and MusicMixin Modify deprecated names "CassandraMixin" to "MusicMixin" Change-Id: If68f8937a385c19d901c56e5795ddc0acf45d399 Issue-ID: MUSIC-198 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-11-20Merge "TxDigest replay and code restructure"Bharath Balasubramanian3-482/+46
2018-11-19Query processing with CalciteVikram Potturi3-0/+0
Change-Id: Id8ebbc48159810ca782081bb4f63071071c926dd Issue-ID: MUSIC-164 Signed-off-by: Vikram Potturi <vikramaditya.potturi@att.com>
2018-11-16TxDigest replay and code restructureTschaen, Brendan3-482/+46
Spin off replay daemon in its own object Create musictxdaemon test Fix licensing issue MusicRow Info has database partition object Change-Id: I22117f8e9309fb5d8bc99ec35d4145e655f4e5a2 Issue-ID: MUSIC-166 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-11-14Remove unwanted Trigger creationst782s2-9/+11
Issue-ID: MUSIC-186 Change-Id: I81863e57912d72360676e7d38ed414da4c9e8b17 Signed-off-by: st782s <statta@research.att.com>
2018-11-06Self contain the unit testsTschaen, Brendan6-449/+48
Change-Id: Ib160116a075a1634f9d9cb6bf2527a010fc0e573 Issue-ID: MUSIC-177 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
2018-11-05Modularized mdbc buildRob Daugherty11-0/+1890
The mdbc pom should inherit from oparent. The top-level pom should not build the jar directly. It should be a parent pom for mdbc submodules. The first submodule will be called mdbc-server. Note: the "mdbc" jar will now be called "mdbc-server". Change-Id: I4456e659b7494641e5b3cefd540eb62a149b79a4 Issue-ID: MUSIC-175 Signed-off-by: Rob Daugherty <rd472p@att.com>