1436 Commits

Author SHA1 Message Date
Aaron Kruglikov
a26f6544c5 Adding commands for the distributed multimap.
Change-Id: Ieecfea9aaabefa1f95918d4f95c489a0e94b01a9
2016-04-26 01:06:50 +00:00
Madan Jampani
dc012974e2 ONOS-4396: Fix for EC Map synchronization failing silently due to serialization failures.
With this change we proactively fail map updates when serialization failures can occur and immediately notify the caller

Change-Id: I62a8a84731b9c2a6eeff7fa6f8336dc74234bf30
2016-04-25 11:16:28 -07:00
kircaali
28d67687d0 Fix for ONOS-3183
Stream processes by Lambda queries in collection objects has a known performance bottleneck. For each create and update link data operations, this  kind of queries are frequently used and this causes inefficient topology discovery operation. For to solve that problem i analize thread dump during discovery process and i saw that especially getAllProviders method uses high cpu. than i change the provider search operation with additional map data which holds linkkey and its providers. by this way provider search operation not only gets faster but also uses minimum resource. Before that change, i can discover only 4XX number of switches at one controller, but later number grows to 15XX switches

Change-Id: I65ed71b7f295917c818b2f9227d0fc070aa4a29b
2016-04-22 17:07:23 +00:00
Madan Jampani
e337506565 Fixes for ONOS-4192
- Do not include known peers in heartbeat message and instead each node relies on cluster metadata to add/remove nodes from inventory
 - Ignore heartbeats from nodes that are removed

Change-Id: Ia20ce84ad88aa6c723a21af1fe7f6899821181ed
2016-04-19 16:47:55 -07:00
Madan Jampani
d5714e09fd New and direct StorageService method for creating an AtomicCounter
Change-Id: I8c189584dde590842075bea7e03c4c8ecf8d72c2
2016-04-19 21:37:35 +00:00
Aaron Kruglikov
56423ba9bf Changing docstrings in atomixMapCommands.
Change-Id: I0b98de095a03a7baedc884f913d42db386dcb163
2016-04-19 13:56:28 -07:00
HIGUCHI Yuta
d9e0105d79 log uncaught Exception
- Use execute instead of submit so that uncaught Exception will
  be dealt and logged by ExecutorService's handler.
- Use component's own logger

Change-Id: I761264aea00748980929b5048e111756776dd2f6
2016-04-19 17:10:00 +00:00
sangyun-han
cce07c5cad Add constructor for configuration of CacheSize
Change-Id: Ifdac489d87ad1b1ab23e43f05980f9cf0e5b834e
2016-04-19 15:59:15 +00:00
Madan Jampani
a8f919e5b9 Ensure tombsone purge logic works correctly after a cluster scale down
Change-Id: I94a4c234982a9e8f44af5078b3cbcee13e4b93cb
2016-04-19 15:33:38 +00:00
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