1427 Commits

Author SHA1 Message Date
Madan Jampani
29f52a3e30 ONOS-2322: Support for periodic purging of ECMap tombstones
Change-Id: I6fe5475a472c383c4a51bd61446fba8f1dba1d37
2016-04-18 23:35:37 +00:00
Madan Jampani
e9c9a71cd3 Ensure serialization exceptions are appropriately reported
Change-Id: Ib7a11f246a79e84e7d1a9e4bddc85d08e0f0cbf0
2016-04-18 18:48:32 +00:00
HIGUCHI Yuta
caad26b86f Fix for ONOS-4315
- Additional log on error
- Allow count=0 using CountDownCompleter
- test case to detect the issue (@Ignored by default right now)
- other bug fixes found along the way

Based on patch by Madan@China

Change-Id: I7d6cb8c214052859900ef7ee0337a7e1c8a9d295
2016-04-16 16:06:11 -07:00
HIGUCHI Yuta
16e9d28261 Attemp to improve hasPendingUpdates()
- Create update list using Stream, so that
  hasPendingUpdates() can short cut on first update found.
- Might improve performance when there is large number of updates in a Tx.

Change-Id: I20820b7212c642315a620d715b5c750e35d31dd0
2016-04-13 18:46:29 +00:00
Jonathan Hart
26bd81332e Add encapsulation classes to Kryo
Change-Id: I37c9858f611a31a7949de7cf9000d1131203ae71
2016-04-13 10:39:55 -07:00
Jonathan Hart
6552b8d6f9 Fix Kryo issues with FlowObjective-based intents
Addresses ONOS-4206.

Change-Id: Ia66e2d227c7f68053fbf7f404b76bc411ab2eeb5
2016-04-12 21:56:16 +00:00
Sho SHIMIZU
7d4f2f7c8f Tighten visibility
Change-Id: I5ae3c63d4e8361c488a06f71ff83cb1ff8ca5f4e
2016-04-11 17:20:45 +00:00
Andrea Campanella
c8eca242e4 Detect circular app dependency
Change-Id: Ib3e2d802dfe3675ef5c8ef8818c1127ed145adf1
2016-04-11 17:17:57 +00:00
Brian O'Connor
7cbbbb7009 Adding Copyright notice to files that are missing it
Change-Id: Ic08aad8906dbd4dd062e7adcec7465475cf2bdda
2016-04-09 09:51:27 +00:00
Brian O'Connor
5ab426f9ff Updating copyrights
New format: 'Copyright .year-present Open Networking Laboratory'

Change-Id: I1a9e58b355b775e75245ad875a2d7a4df3f03098
2016-04-09 01:20:21 -07:00
Ray Milkey
7c25182db9 Fix buck tests
Change-Id: I3d681e6e5c1d3e98c87ccb3d20a619b216ae6133
2016-04-06 19:04:52 -07:00
Brian O'Connor
b86c920526 Updating Buck files to build OSGi jars
- Using osgi_jar for all modules except apps
- Adding target for installation of core modules to .m2 repo

Change-Id: I65d9e3a9567918e275191724842d7d9b1f485128
2016-04-06 18:17:37 +00:00
Brian O'Connor
96f689b317 Renaming onlab-thirdparty to atomix
Change-Id: I258b80c9bd6481664585812bca738651fd348363
2016-04-06 17:39:54 +00:00
Madan Jampani
68b1f5a117 Fixes NPE in AtomixLeaderElector
Change-Id: I0db39b4e09af10f92fe06ba8c7372994e776a6e2
2016-04-06 16:46:55 +00:00
Charles Chan
c72271ffb2 Add flow objective related classes into KryoNamespaces
Change-Id: Ide9e6ab3108c1ad1d6701f1308ed72c282c20693
2016-04-05 23:42:23 +00:00
Madan Jampani
542d9e2285 Performance improvements
- Fast path of transactions updating a single key.
 - Bug fix in StoragePartitionClient where we were always creating a CachingMap

Change-Id: Ide117fba34fd12a9ff4aabd5fb7a21952bae672b
2016-04-05 15:41:11 -07:00
Madan Jampani
832686da5f Post DatabaseManager deprecation code cleanup
- Dropping MutexExecutionService as there are now better alternatives
- Dropping New from class names that were added during transition phase

Change-Id: If0cdd3321081c3f8fda81441ef2c84549b616edd
2016-04-05 20:36:11 +00:00
Madan Jampani
38f01690db Dropping DatabaseManager and related code. Goodbye!
Change-Id: I5d90d62678402234462dad8be455903de481da21
2016-04-05 17:10:59 +00:00
Madan Jampani
3780d4b021 ONOS-4218: Fixes for resource store transaction failures
Change-Id: Ie48bb04d7daf6ed7b63c33a3c3c2703496179aa6
2016-04-05 03:05:25 +00:00
Brian O'Connor
344ea7a714 Removing commons-io and concurrent-trees from onlab-thirdparty
Change-Id: Id65a4e05292d9ca2e7a743c48b96c09767602e1d
2016-04-05 00:28:17 +00:00
Rimon Ashkenazy
27438ffa64 Add Optical ODU cross-connect Intent
Create a new intent: OpticalOduIntent in the OTN Topology.
 - This intent finds a path of OTU links, and
 - Allocates TributarySlots resources on the OTU ports (in the path)
 - also add a utility for converting various SignalTypes to
   OduSignalType, and to build the OduSignalId.

Note: this patch follows the example given in patch
https://gerrit.onosproject.org/#/c/7321 of
separate resource search from resource allocation.

Change-Id: Id9808f61aebb80a21481f3882aff23b236b68078
2016-04-04 16:53:43 +00:00
Madan Jampani
5ddaf19fbe Ensure exceptions in map event handling do not prevent event acknowledgement
Set default consistency for ConsistentMap operations to SEQUENTIAL

Change-Id: I8896ae953932bf323c4512842000e78bf395f9b1
2016-04-04 16:38:26 +00:00
Madan Jampani
1ffa46b5b3 Using AsyncLeaderElector primitive for Leadership
Change-Id: I0ff91ddaa3b5dec79e073496044c2f860ae94616
2016-04-04 14:36:55 +00:00
Naoki Shiota
3bac1c378a bugfix: Partial allocation of ContinuousResource always allocates full amount of the resource.
Change-Id: Ie147f8d55ae3be6e94382bbd773940a11cfd3b5f
2016-04-01 23:55:58 +00:00
Madan Jampani
b825aebe03 Reply with error status on receiving message with incorrect preamble
Change-Id: I0d17dc74c817546f221fbcade1d5642c8f29b0fe
2016-04-01 22:41:39 +00:00
Madan Jampani
b98d97ed61 Enabling StorageManager
Change-Id: Ice415dc217d8cf6fc990776ed4d71c1bafe55ccb
2016-04-01 11:08:25 -07:00
Madan Jampani
966a585e7e Chnage AtomixLeaderElector resource id to avoid collisions
Change-Id: I2d7ecdbe589ebd8640958d5a188feafd9097617b
2016-04-01 10:39:57 -07:00
Madan Jampani
4c211c9dbf Do not purge group store state when a node is shutdown
Change-Id: Ia33519613006d1960bd6f9d436b55426ec707c69
2016-03-31 21:25:05 +00:00
alshabib
b028599214 adding group garbage collection functionality
If a group has a reference count of zero for more than
a configurable timeout, it is garbage collected.

This feature can be deactivated by component config.

Change-Id: I254d62a90ef7ac8d2ce2f406b67957455a5bf4d0
2016-03-31 17:48:04 +00:00
sangyun-han
f98df542d0 [Goldeneye][ONOS-4038] Support configurable heartbeat on DistributedClusterStore
- Add readComponentConfiguration method for @Modified
- Apply updated Tools
- Add unit test code
- Add checkNotNull about NodeId

Change-Id: If8b7d4c00f2c72d29c0abb6407530d76bc3f6d80
2016-03-31 14:57:48 +00:00
Ray Milkey
f80bbb22c2 Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
2016-03-29 21:39:14 +00:00
HIGUCHI Yuta
67023a2132 Minor javadoc fixes.
Change-Id: I1488e7f26a447543191aaa46070a16c5968db0b6
2016-03-28 13:35:44 -07:00
Saurav Das
80980c7382 CORD-45 CORD-394
Bugfix in group store - group delete state updated correctly.
SR app no longer deletes buckets in existing groups - workaround for OFDPA bug.
Instead it invalidates the entire group, thereby forcing new group creation.
Also incorporating Charles' changes to remove state from group and flow stores,
and the SR app when device goes offline.

Change-Id: I162d3fb6bf709a8f02b01b8d57e131c2bac9b46b
2016-03-28 20:21:35 +00:00
Sho SHIMIZU
e91e572617 Remove ModLambdaInstruction because we don't use indexed lambda
Change-Id: I6b9ec8f4bd4a6620ee87c11d1787a8f0c0c7fa7a
2016-03-28 18:44:15 +00:00
Madan Jampani
6f74371b5e Misc bug fixes in preparation for enabling StorageManager
Change-Id: I953414891c901e5d1f92844ca8c4eaa8c042dd53
2016-03-28 18:13:25 +00:00
sangyun-han
888d4c5582 [ONOS-4214]Implement NewDefaultDistributedQueueBuilder
- Revise incomplete method(queueBuilder) in StorageManager

Change-Id: I16cc1eb02fa01a4762fecc3c3c0472555fb45d04
2016-03-28 16:48:45 +09:00
Sho SHIMIZU
a114d89a58 Remove IndexedLambda deprecated in Emu
Change-Id: I3dc3ea90049dd3331090472f8c4a0e83d430ba37
2016-03-25 15:43:31 +00:00
Sho SHIMIZU
cc137a9058 Remove method Lambda.indexedLambda() deprecated in Emu
Change-Id: Ie5a50d9d3df7b4af7af2d42edef3a63d622a721c
2016-03-24 17:10:33 -07:00
Sho SHIMIZU
0681016966 Remove IndexedLambdaCriterion deprecated in Emu
Change-Id: If1976963b49d28139d0002d9cd44414e4a8d9d50
2016-03-24 17:10:33 -07:00
Sho SHIMIZU
57f2efd60e Remove Instruction.DROP deprecated in Emu
Change-Id: Ida5a5f489815dd1e972f6bfc8646e1e1bf0e8edd
2016-03-24 23:50:22 +00:00
Sho SHIMIZU
e18cb12e94 Move files under newresource package to resource package
Change-Id: Ifedb99be4671ada97fafe3ecfd196939207baa86
2016-03-24 23:16:59 +00:00
Sho SHIMIZU
25e32ec5e3 Remove constructs deprecated in Emu from old resource API
Change-Id: Ia4fd5d4c45d91b82b78ace18e96512c800adfcd6
2016-03-24 19:29:33 +00:00
Sho SHIMIZU
05b24f8fd1 Remove LinkResourceStore and its implementations
They were deprecated in Emu

Change-Id: I4272c7788bcd74ad7f272392a67b07bde6b09df4
2016-03-24 19:28:38 +00:00
Thomas Vachuska
fba7f3d972 ONOS-4137 Adding a "ready" check-mark glyph to the node instances.
Introduced a new INSTANCE_READY type of ClusterEvent.

Change-Id: I7f77ebae56cb18c196cd3ec7f2735faa4ca363db
2016-03-23 23:10:44 +00:00
Jonathan Hart
b11c4d0ae9 Allow list-type config to be POSTed to subjectkey/subject/configkey endpoint.
Also add validation that the given JSON node is appropriate for the config
type (list vs object).

Change-Id: Ib1c12b538860a6f18b8311c5f5a786608c04beb8
2016-03-23 20:54:02 +00:00
Thomas Vachuska
7a8de847ad Added ability to track whether or not node has all components running fully.
Change-Id: Ib2b90c7a842976a3b3a9711367fa1eed43103b17
2016-03-23 19:10:15 +00:00
HIGUCHI Yuta
060da9a13a Improve Executors related logging behavior
- Specify Logger for the Executor
- Use Executor#execute instead of ExecutorService#submit for
  fire and forget type of usage.
   Note: submit() will swallow thrown Exception

Change-Id: I507b841dc3feedf4ad20a746c304518d68fb846a
2016-03-23 17:57:16 +00:00
Madan Jampani
65f24bb7f3 Moving to Atomix version 1.0.0-rc3
Change-Id: I75572a52b530741f482455d59922327121a03999
2016-03-22 22:38:10 +00:00
Madan Jampani
0da01a47f8 Do not wrap exception with TransportException
Change-Id: Ifd59da2a78a7c95a78758cbcf7a5fe015ed25f13
2016-03-22 22:37:58 +00:00
Saurav Das
8be4e3a4cb In this commit:
Removing dependence on hashing for unique groupkeys in ofdpa driver.
    Group-store no longer removes groups from store if a group-operation fails due to GROUP_EXISTS.
    Group-store also checks for unique group-id when given by app.
    Group-provider now logs warning before making call to core.

Change-Id: I4a1dcb887cb74cd6e245df0c82c90a50d8f3898a
2016-03-22 18:26:04 +00:00