468 Commits

Author SHA1 Message Date
Madan Jampani
ac201955fa DistributedLockManger creates a locks table if one does not exist
Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869
2014-11-18 10:36:23 -08:00
Yuta HIGUCHI
2fe6334c15 DatabaseService related fixes.
- Note: This patch does not fix the issue running as single node.

Change-Id: Iabfa548ca4e40e4ec5c9e76ae936300437e53d22
2014-11-17 21:33:38 -08:00
Toshio Koide
8e5e91e296 Update SimpleLinkResourceStore to obtain capacities from link annotations
Change-Id: I98f8959fdc00953c98a151ad7b0bfa1041b118d7
2014-11-17 20:22:30 -08:00
Yuta HIGUCHI
452071656a ClusterMessagingProtocolClient: less log for expected exception
Change-Id: Ifac94d2dc68144f126c9c6ab2cd4aedc712a10fe
2014-11-17 20:22:08 -08:00
Yuta HIGUCHI
8ba3ac05c2 MapDBLogTest: use Temp file
Change-Id: I7a6647ffa354913d3e6aa08de03f5a15e03753d7
2014-11-17 19:16:26 -08:00
Brian O'Connor
a8e7dd4b49 Adding DistributedIntentBatchQueue
Change-Id: I4ce3c2cb5a31ad8ace5d1d20830a49a869e63900
2014-11-17 17:28:37 -08:00
Ray Milkey
241b96accd Fix high priority findbugs reported issues
Fixed some code that was reporting findbugs errors

Implemented a suppression mechanism for findbugs
reported errors and a suppression file.

Change-Id: Ie8a2e84cc57ec6ddfa14d782ee89feb095b9dd59
2014-11-17 16:38:30 -08:00
Pavlin Radoslavov
20ded69934 Fix a bug inside DistributedLock.extendExpiration():
Return false (as per API) if we don't hold the lock.

Change-Id: Id3c314f6e374c92a73ce6f1aa4b6fbcef0a80697
2014-11-17 16:38:15 -08:00
Yuta HIGUCHI
3b29b79e6d DatabaseManager: client initialization bug fix
Change-Id: I62afbc2847728e304f90c13f8af284be89e84ab7
2014-11-17 15:28:41 -08:00
Brian O'Connor
faaedf485d Changing log level from warn to debug in Stats Store.
Change-Id: I7651427d317813775a2c729682001fb888b45f1c
Note: Optical flows don't have stats.
2014-11-17 14:48:48 -08:00
Brian O'Connor
fa81eaef06 Refactored intent framework to deal with batches.
There is still work to be done, but for now, submit, withdraw and reroute are working.

Change-Id: Ib94cf8c4be03786cc070f402d1f296f5dfa6588b
2014-11-17 14:46:09 -08:00
Madan Jampani
a88d1f5943 1. Fixed a synchronization issue with database update processing and expiry tracking.
2. Fixed a synchronization issue with MapDBLog appendEntries method.
3. DatabaseClient now uses ProtocolClient to interact with Raft cluster.
4. Misc javdoc and logging improvements

Change-Id: I147eb5bf859cf9827df452d62ab415d643a00aa4
2014-11-17 13:27:27 -08:00
Yuta HIGUCHI
3524229a98 DistributedLinkResourceStore
Change-Id: Ia45c221946693906c12d64f20f25e30786a04224
2014-11-17 01:36:28 -08:00
Yuta HIGUCHI
b9d68669e3 DatabaseClient: Add timeout
- timeout + retry to listTable
- timeout to service API

Change-Id: I8b54dd24d380dcc9e8d44baf3bbf5e379ccca53b
2014-11-17 01:36:26 -08:00
Yuta HIGUCHI
39da97989d Wait for Leader to appear
- DatabaseClient: wait for Leader before DB access
- DatabaseManager: wait for Leader before activate

Change-Id: I5102e7cae1d33f49662bf452b1fba020173a51a0
2014-11-17 01:35:15 -08:00
Yuta HIGUCHI
0b69a82256 DatabaseStateMachine: lower log level
Change-Id: Ied0c18ab498bf499d3e54aa170097ed4304368cb
2014-11-17 01:01:01 -08:00
Thomas Vachuska
badb93f54b Fixing optical link state issues; a few still remain.
Change-Id: I126f89384adbe5272bdaf4eb0e3b456984768a98
2014-11-16 09:40:38 -08:00
Thomas Vachuska
e4cebafa19 Adding support for link state to GUI.
Change-Id: I6476cf04810f7bc7e88af629a36ce671b42748d0
2014-11-15 18:58:41 -08:00
Ray Milkey
62709fc623 Add in a findbugs suppression to see if it works
Change-Id: I4ca6b65046df35e6d773b515ae819fffb81c43ba

Remove test suppression of findbugs error

Change-Id: I277ac9f5ff20c83e0208cb9adadc12d5a13723d2
2014-11-15 15:03:43 -08:00
Thomas Vachuska
57126feac1 Sketching out what link-state addition would look like; quite easy until we get to the distributed store.
Added unit tests to provide durable-nondurable transitions.
FIxed issue where link could be accidentally activated.
Renamed parameter.

Change-Id: I8aa19a6583ec50dbf28769995f0a8ea9be9a4daa
2014-11-15 11:14:47 -08:00
Yuta HIGUCHI
2b75f1a46e ClusterMessagingProtocolClient: changed thread pool
Change-Id: Ibb37bd2c7c94067336152f19412523dc4cda9722
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
fd0db4869a DatabaseStateMachine: return value on conditional failure
Change-Id: I579652659ea7281013c341c6ea9df2003b90bcdd
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
841c0b623a Add getAll to DatabaseService
Change-Id: I5fb9d52244b005dfc22e7faaa68341be3c3f3725
2014-11-14 18:05:25 -08:00
Thomas Vachuska
7c27ad7027 Added detection of traffic flowing using StatisticService.
Change-Id: I2044ec16fd722d953d0e2b2c955e4da2b1dab663
2014-11-14 16:20:18 -08:00
Ray Milkey
c5cd0d96c5 Findbugs fixes
Testing Sonar with a few findbugs fixes.  Suppressing a false
positive to see if it works.

Change-Id: I0cdf2921198787adc56c680840aa00bdd254269b
2014-11-14 15:39:25 -08:00
Yuta HIGUCHI
885868fc5b DistributedFlowRuleStore: synchronized -> Reader/Writer lock
fix for ONOS-195

Change-Id: I3e15104225878d1616fa790095695400bcc43697
2014-11-13 23:53:54 -08:00
Madan Jampani
f5d263b41f Bugfixes for DistributedLockManager functionality
Added a method called broadcastIncludeSelf to ClusterCommunicationService.
Cosmetic improvements: added toString methods

Change-Id: I1d58720c29e6f8642f950670c3a6d95a7019a491
2014-11-13 12:45:50 -08:00
Sho SHIMIZU
977cb60b98 Add unit tests for constraint object serializations
Duration is additionally registered because LatencyConstraint has it

Change-Id: Ibbf31761b789fa71fb6cb1a1155f5ea0680853ce
2014-11-13 10:44:43 -08:00
Yuta HIGUCHI
adac04a72d Support LinkResource related serialization
- DefaultLinkResourceRequest
- DefaultLinkResourceAllocations

Change-Id: I8ebb32d5cb96c8465a23a9a512d2e8a56b6fce56
2014-11-13 00:42:17 -08:00
Madan Jampani
def2c65d9b Support for expiring Database entries
Registering database entry expiration tracker with DatabaseStateMachine

Support for publishing database state machine snapshot installation events.
Expiry tracker will listen to these events to bootstrap its local state.

Change-Id: I8bf22c8d7bab38624341350ccc083c5ca2fcb117
2014-11-12 15:37:10 -08:00
Yuta HIGUCHI
71b9d09c84 ClusterMessagingProtocolClient: lazily bind to NodeId
fixes ONOS-185

Change-Id: Ibbe9624509964d7c3e7ac2c95c171e5cb20b0634
2014-11-12 13:36:36 -08:00
Madan Jampani
9b37d578ef Using net.jodah.expiringmap.ExpiringMap for tracking ttl expiration of database entries.
Minor javadoc updates.
2014-11-12 11:53:24 -08:00
Yuta HIGUCHI
d6ffa6a5ef ClusterMessagingProtocol: fix error message
Change-Id: I6123bfcbe1c668864691c87caaba0874fc3188e2
2014-11-12 10:58:03 -08:00
Yuta HIGUCHI
13a6f5a40b DatabaseManager: add FIXME for log path
Change-Id: I8daf762cd48bb4d53374fcdd40dc2f6747114303
2014-11-12 10:40:59 -08:00
Thomas Vachuska
2292567fc6 Fixing a defect where logical port numbers are listed as part of CLI arg completion.
Fixing a defect where devices imported with device id in uppercase are considered as different from those discovered in lowercase.
Fixed javadocs error from a rebase.

Change-Id: I76741022fb95d10a9a16fc9ce6d6443b166822ab
2014-11-12 02:35:01 -08:00
Madan Jampani
c22123dec7 Removed dead code 2014-11-12 02:12:19 -08:00
Madan Jampani
bd1f026526 Registering new batch read/write request classes with kryo 2014-11-12 01:51:25 -08:00
Madan Jampani
932c6ba1c6 Fixed wrong import 2014-11-12 01:36:04 -08:00
Madan Jampani
3865cd9be5 Disabling expiring map until the osgi issue is understood. 2014-11-12 01:24:19 -08:00
Madan Jampani
44e6a540a5 More checkstyle fixes. 2014-11-12 01:06:51 -08:00
Madan Jampani
12390c1203 Reworked DatabaseService API.
Initial implementation of LockManager.
2014-11-12 00:35:56 -08:00
Yuta HIGUCHI
f1ccee8d59 FlowRule : handle Future failure and timeouts.
Change-Id: Ie945b7ee936ae48ec3205592c309baebe8538ce0
2014-11-11 20:40:40 -08:00
Sho SHIMIZU
cd4bac85e4 Make constraint objects serializable by Kryo
Change-Id: I15e5a14b16fc1ab0416570fec176f18b713727a0
2014-11-11 17:07:25 -08:00
Pavlin Radoslavov
190f8f9d5c Fix a typo in a comment.
Change-Id: Ieebe534475c704d423ace478ab05f398fd16897d
2014-11-11 15:56:14 -08:00
Yuta HIGUCHI
f846844802 DatabaseClient: fixed to use copycat instance instead
Change-Id: If13ec051f362e0d3bc8311dc30e2c0f70e55c42e
2014-11-11 10:39:26 -08:00
Thomas Vachuska
21e03649dd Cleaning up Javadocs.
Change-Id: I41d075e3e6f6a26b340ce21a5baa8b238dc069ad
2014-11-11 10:23:08 -08:00
Yuta HIGUCHI
60731cb2b1 DatabaseService subsystem: add admin commands, etc.
Change-Id: I24124579f5e0b03ccbf35a03230ae5a7aff95f22
2014-11-11 09:20:20 -08:00
Yuta HIGUCHI
c53411edd0 DatabaseManager: removing Raft Member management code
Change-Id: Id7d773459e40e0ad51fa56026465b067f09b5b92
2014-11-11 09:20:20 -08:00
Yuta HIGUCHI
48ee992fc0 Adding async backups to MastershipStore
Change-Id: I36acece744b67a129a1073e08cd90690a91836ce
2014-11-11 09:20:19 -08:00
Thomas Vachuska
29a6a78310 Fixing ONOS-39 to allow configured links to be marked as durable.
Change-Id: I97b920bf5f597ddb8b64ecc5c4c3769527ad5260
2014-11-10 21:31:41 -08:00