Moiz Raja [Fri, 20 Feb 2015 11:38:18 +0000 (03:38 -0800)]
BUG 2676 : Add diagnostic message when AppendEntriesReply comes in very late
Log an error message when an AppendEntriesReply arrives beyond the ElectionTimeout
period. This may help detect cases where messages are not being processed
fast enough by the actor system. This particular condition can cause a Leader to
become an IsolatedLeader even if the remote Follower is receiving heartbeats.
Change-Id: Id6a797820b63cb4f18c3d1bbd2781e72674aa9d8
Signed-off-by: Moiz Raja <moraja@cisco.com>
Moiz Raja [Fri, 20 Feb 2015 11:20:38 +0000 (03:20 -0800)]
BUG 2676 : Add some tuning parameters to improve performance of CDS
Added two parameters,
- throughput = 1 this is to make the dispatcher fair, which helps in preventing
actor starvation
- SingleConsumerOnlyUnboundedMailbox which is a more efficient and recommended
Mailbox to use in our case
I've tested both these settings and they seem to work pretty well and do not
contribute to destabilization
Change-Id: I5072f7dad7ad862eaafaada3e88d78600fb3665d
Signed-off-by: Moiz Raja <moraja@cisco.com>
tpantelis [Wed, 18 Feb 2015 02:26:21 +0000 (21:26 -0500)]
Refactor AbstractRaftActorBehaviorTest and IsolatedLeaderTest
Removed the Within blocks in tests.
Used TestActorFactory to create and cleanup actors.
Added some more assertions in some tests.
Change-Id: Idd790b97dd396c75676843779ceab192b848aa17
Signed-off-by: tpantelis <tpanteli@brocade.com>
Moiz Raja [Fri, 20 Feb 2015 00:13:32 +0000 (00:13 +0000)]
Merge "InstallSnapshot does not pass the term to the protobuff instance"
tpantelis [Wed, 11 Feb 2015 07:43:28 +0000 (02:43 -0500)]
InstallSnapshot does not pass the term to the protobuff instance
Change-Id: If84d7ddc81fd1ea154477fe9795bba9e748af24c
Signed-off-by: tpantelis <tpanteli@brocade.com>
tpantelis [Wed, 11 Feb 2015 02:41:12 +0000 (21:41 -0500)]
Refactor CandidateTest
Removed the Within blocks in tests.
Used TestActorFactory to create and cleanup actors.
Added some more assertions in some tests.
Change-Id: I558876cd058a0ad7818317ec98fc93c4bde95630
Signed-off-by: tpantelis <tpanteli@brocade.com>
tpantelis [Tue, 10 Feb 2015 21:08:36 +0000 (16:08 -0500)]
Refactor FollowerTest
Removed the Within blocks in tests.
Changed all the tests to use the leaderActor and followerActor class
members for consistency. The actors are killed on tearDown by the TestActorFactory.
The creation of a JavaTestKit block is no longer necessary and was removed from each test.
Added some more assertions in some tests.
Change-Id: Iee793c2b1129b5826dbd3c267c404aae30418fdb
Signed-off-by: tpantelis <tpanteli@brocade.com>
Moiz Raja [Thu, 19 Feb 2015 21:34:47 +0000 (21:34 +0000)]
Merge "Refactor LeaderTest"
Tom Pantelis [Thu, 19 Feb 2015 20:57:45 +0000 (20:57 +0000)]
Merge "Bug 2538: Remove redundant Augmentation checks and tests"
Michal Rehak [Thu, 5 Feb 2015 11:32:33 +0000 (12:32 +0100)]
BUG-2682: switch sal-binding-dom-it to sal test models
- DilcardedDataChangeListenerTest
- ConcurrentImplicitCreateTest
- BrokerIntegrationTest
- ChangeOriginatedInDomBrokerTest
Change-Id: I20f2c6d5d93a535f0ccfb0efc484ec099a75f53b
Signed-off-by: Michal Rehak <mirehak@cisco.com>
Tony Tkacik [Thu, 19 Feb 2015 17:09:32 +0000 (17:09 +0000)]
Merge "Bug 2682 - Switch sal-binding-dom-it to sal-test-model"
Michal Rehak [Thu, 19 Feb 2015 12:39:06 +0000 (13:39 +0100)]
Bug 2682 - Switch sal-binding-dom-it to sal-test-model
* Migration to sal-test-model
Change-Id: If46014ec4cc8b3311a7766bcb2cb9a61b9e71592
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Michal Rehak <mirehak@cisco.com>
Tony Tkacik [Thu, 19 Feb 2015 08:15:32 +0000 (08:15 +0000)]
Merge "Initial message bus implementation"
Tony Tkacik [Thu, 19 Feb 2015 08:09:00 +0000 (08:09 +0000)]
Merge "BUG-2634 Config binding for netconf server"
Tony Tkacik [Thu, 19 Feb 2015 08:07:49 +0000 (08:07 +0000)]
Merge "BUG-2633 - Netconf northbound mapping."
Tony Tkacik [Thu, 19 Feb 2015 08:07:18 +0000 (08:07 +0000)]
Merge "BUG-2633 - Added Operation Service Factory Filtering for Netconf."
Robert Varga [Sat, 7 Feb 2015 21:55:46 +0000 (22:55 +0100)]
Initial message bus implementation
This patch follows up on the API definition and builds a simple
implementation.
Change-Id: Ic128538a02d71a40ea44efe53f3c4b4503c068ac
Signed-off-by: Robert Gallas <rgallas@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 7 Feb 2015 20:12:07 +0000 (21:12 +0100)]
Introduce message bus models
This patch introduces the basic mechanics for integrating various event
sources across MD-SAL, effectively forming a message bus.
Change-Id: I5cbaf9c0975f38c3e3c05ab9862aacf20d2b57c6
Signed-off-by: Robert Gallas <rgallas@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
tpantelis [Tue, 10 Feb 2015 06:07:28 +0000 (01:07 -0500)]
Raft behavior logging
Added more logging in the raft behavior classes where appropriate.
Reduced logging in some places to trace or removed redundant logging to
avoid too much output when debug level is enabled.
Removed isDebugEnabled() checks in various places where not needed to
improve test line coverage.
Also I found it useful to see the behavior's state in the log messages.
So I added a logName field and method to AbstractRaftBehavior that
is printed in each log message instead of just context.getId().
Also added/modified toString() in a few RaftRPC message classes.
Change-Id: Ic4d3c93e25d5caf16319b8433d54cab69b26f5c0
Signed-off-by: tpantelis <tpanteli@brocade.com>
Moiz Raja [Wed, 18 Feb 2015 22:38:50 +0000 (22:38 +0000)]
Merge "Bug-2692:Real snapshots should use the replicatedToAllIndex for clearing in-mem log"
Tom Pantelis [Wed, 18 Feb 2015 21:51:47 +0000 (21:51 +0000)]
Merge "Make ReadData exception logging less noisy"
Tom Pantelis [Wed, 18 Feb 2015 21:50:49 +0000 (21:50 +0000)]
Merge "Minor enhancements to dummy datastore"
Moiz Raja [Tue, 17 Feb 2015 17:46:03 +0000 (09:46 -0800)]
Minor enhancements to dummy datastore
- Log Duplicate AppendEntries
- Enhance AppendEntries logging
- Make logging configurable
- Handle append entries with multiple entries
- Do not delay append entry reply for heartbeats, do so only for messages with entries
Change-Id: Ife856bb469e81c42d22ff4a6f13637ee2cf00cce
Signed-off-by: Moiz Raja <moraja@cisco.com>
Moiz Raja [Tue, 17 Feb 2015 17:52:33 +0000 (09:52 -0800)]
Make ReadData exception logging less noisy
There is some component (openflow) which is reading data on a ClosedTransaction.
This is causing logging on the datastore side. The component itself seems to handle
the error reported by the datastore quietly, so switching the logging the error to
debug and logging full stack trace at trace level.
Change-Id: I3c118765dca7f4a50d26c8dd50eee96c65de1871
Signed-off-by: Moiz Raja <moraja@cisco.com>
Tony Tkacik [Wed, 18 Feb 2015 16:12:06 +0000 (16:12 +0000)]
Merge "Introduce message bus models"
Tony Tkacik [Wed, 18 Feb 2015 09:31:01 +0000 (09:31 +0000)]
Merge "BUG-2573: mark CompositeNode-based RPC APIs obsolete"
Tony Tkacik [Wed, 18 Feb 2015 09:27:26 +0000 (09:27 +0000)]
Merge "Marked as deprecated all classes within protocol-framework."
Robert Varga [Mon, 16 Feb 2015 08:46:53 +0000 (09:46 +0100)]
Migrate to MoreObjects.ToStringHelper
Objects.ToStringHelper has been deprecated and moved to MoreObjects.
Adjust to this change.
Change-Id: Ibcaaebfe8e2cbbd77e624a53fc153d857b373a81
Signed-off-by: Robert Varga <rovarga@cisco.com>
tpantelis [Tue, 10 Feb 2015 13:15:07 +0000 (08:15 -0500)]
Refactor LeaderTest
Removed the remaining Within blocks in tests.
Changed each test to use the leaderActor and followerActor class members for
consistency. The actors are killed on tearDown. The creation of a
JavaTestKit block is no longer necessary and was removed from each test.
Added a shorcut method createActorContextWithFollower that creates the
leader context and adds a peer follower. This eliminates some duplicate code
in the tests.
Added an expectFirstMatching method to MessageCollector that waits for
the message in contrast to getFirstMatching.
Added some more assertions in some tests.
Change-Id: Id4ee0291352999b31e40abd9895e3d0237acf432
Signed-off-by: tpantelis <tpanteli@brocade.com>
Kamal Rameshan [Wed, 11 Feb 2015 07:24:55 +0000 (23:24 -0800)]
Bug-2692:Real snapshots should use the replicatedToAllIndex for clearing in-mem log
Similar to fake snapshots, real snapshots should also be using the replicatedToAllIndex.
replicatedToAllIndex is part of the RaftActorBehavior.
A performSnapshotWithoutCapture helper method is part of the AbstractRaftActorBehavior.
On CaptureSnapshotReply, we clear the log based on replicatedToAllIndex and the corresponding term.
Many of the existing tests seem to test out this changes and some were added and enhanced.
Bug-2715: Fix in-mem log cleanup for an Inactive follower
In case if one of the follower is down, rely on the memory usage to clear the log.
This is done in CaptureSnapshotReply
Change-Id: Ifb3ca19691f20735e3f84b968a7adf01398c20e0
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
Tom Pantelis [Tue, 17 Feb 2015 18:01:19 +0000 (18:01 +0000)]
Merge "Bug-2692 : Eliminate InitiateInstallSnapshot"
Dana Kutenicsova [Tue, 17 Feb 2015 10:28:04 +0000 (11:28 +0100)]
Marked as deprecated all classes within protocol-framework.
- this part of controller will be removed between M3 and M5
- if you're using it, rewrite your code to use netty directly
Change-Id: I864b914d885e15029bca903829c683306780a69d
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
Maros Marsalek [Mon, 9 Feb 2015 14:44:01 +0000 (15:44 +0100)]
BUG-2634 Config binding for netconf server
MD-SAL based netconf northbound is activated using feature: odl-netconf-mdsal
Change-Id: I6b0ae0db30bb239fcd073883ffe76ff7c5fc0143
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Mon, 16 Feb 2015 09:36:48 +0000 (10:36 +0100)]
BUG-2633 - Netconf northbound mapping.
Supported operations for now are:
get, get-config - candidate and running datastore, without filtering
edit-config - only on candidate datastore
discard-changes
lock, unlock - supported only for compatibility reasons since we don't support locking of running datastore, and each session has it's own candidate datastore.
commit
Change-Id: Idb0bad09dc1d8925674576290fecb47ccd1e5dbd
Signed-off-by: Tomas Cere <tcere@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Mon, 16 Feb 2015 09:36:38 +0000 (10:36 +0100)]
BUG-2633 - Added Operation Service Factory Filtering for Netconf.
Since getting services is done by class name, we needed to add additional filtering by
name to not get controller subsystem netconf operations mixed up with md-sal northbound.
Change-Id: I6aeb161ae0ace977f590d73e4fcb98c0898b1956
Signed-off-by: Tomas Cere <tcere@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Mon, 16 Feb 2015 16:05:36 +0000 (17:05 +0100)]
Remove source element from get netconf rpc
Change-Id: Ibe30fa36d7cfe86f908a296c7e4f50cc59453c9c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Kamal Rameshan [Fri, 13 Feb 2015 07:40:38 +0000 (23:40 -0800)]
Bug-2692 : Eliminate InitiateInstallSnapshot
Change-Id: I7b8f68dc4a2fab9cc61776fe9ce0c58c8ded5242
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
Kamal Rameshan [Mon, 16 Feb 2015 22:07:17 +0000 (14:07 -0800)]
Fix Guava 18 upgrade issue , Objects to MoreObjects
Change-Id: I0792fc09fa18614b84a7b24601b08b8b3c2c1abf
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
Tony Tkacik [Mon, 16 Feb 2015 11:26:50 +0000 (11:26 +0000)]
Merge "Fix reading operaional data for netconf mountpoint"
Tony Tkacik [Mon, 16 Feb 2015 09:22:26 +0000 (09:22 +0000)]
Merge "Do not override odlparent properties"
Tony Tkacik [Mon, 16 Feb 2015 09:22:13 +0000 (09:22 +0000)]
Merge "Remove xtend.version property"
Maros Marsalek [Mon, 16 Feb 2015 08:44:26 +0000 (09:44 +0100)]
Fix reading operaional data for netconf mountpoint
Change-Id: I3c273500f0df6cfeed626a917a7039c8fc648fbf
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Robert Varga [Sat, 14 Feb 2015 20:02:34 +0000 (21:02 +0100)]
Do not override odlparent properties
These properties are defined upstream, no need to define them here.
Change-Id: Ieb5e12b74e5d333948410fa5329446ab59ad6967
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 14 Feb 2015 19:56:51 +0000 (20:56 +0100)]
Remove xtend.version property
It is no longer needed, as odlparent has been fixed.
Change-Id: I56b891e6232e074bb5fed56b819312fb1305c4b9
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 14 Feb 2015 09:48:09 +0000 (10:48 +0100)]
Add more context if a config push fails
This adds the current state to the error message.
Change-Id: I3c165d7aae7dcb7dba4a374e17390d643c6ed40b
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 14 Feb 2015 10:35:09 +0000 (11:35 +0100)]
Fix neutron implicit osgi import
Neutron northbound requires osgi-core but fails to mention it in
pom.xml. Fix that.
Change-Id: Id73bc2550c10268e30a852fb2dbde19a04c8b24d
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 9 Jun 2014 17:35:21 +0000 (19:35 +0200)]
BUG-1173: ensure compatibility with Guava 17+
This migrates the sole user to the Guava-15+ API, as the API is removed
in version 17.
Change-Id: I3bf52fb89116024e7305a142e6b1f6fec9985488
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 14 Feb 2015 09:16:52 +0000 (10:16 +0100)]
Define xtend.version until it is remove from odlparent
https://git.opendaylight.org/gerrit/15313 will remove references to it,
but until that happens, we need to provide an override.
Change-Id: Idfc7eef4e194d7011a608392de07813d7cc15113
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 9 Jun 2014 17:35:21 +0000 (19:35 +0200)]
BUG-1173: ensure compatibility with Guava 17+
This migrates the sole user to the Guava-15+ API, as the API is removed
in version 17.
Change-Id: Ia587465e0289f5d98ec3da83cc3fc6765f8a8b38
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 4 Feb 2015 15:29:25 +0000 (16:29 +0100)]
BUG-1173: remove explicit guava version
Removes an explicit mention of 14.0.1 in favor of odlparent-provided
version.
Change-Id: Iea11d3a207ae4799ef736ef5804649a11340e3be
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sat, 14 Feb 2015 07:58:45 +0000 (08:58 +0100)]
Make sure config-api brings in osgi-core
config-api is used in config-generated code, which needs osgi for
compilation. Unfortunately augmenting all current users is prohibitive,
so just make sure all users inherit osgi-core as a compile-time
dependency.
The real fix is to create a parent, which will pull osgi-core into
artifacts which actually invoke yang-jmx-plugin.
Change-Id: I24caf20ea1ab0ce32f9d259ca650f38668a8c7a5
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 2 Feb 2015 17:36:30 +0000 (18:36 +0100)]
BUG-2573: mark CompositeNode-based RPC APIs obsolete
With the advent of the NormalizedNode-based APIs, the users should be
moving towards implementation of those.
This is a placeholder, to be merged once a reference implementation is
available.
Change-Id: I7e321861d5100554dfde30c31ed47e585573be0a
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Fri, 13 Feb 2015 09:30:12 +0000 (09:30 +0000)]
Merge "BUG-2573: create DOMRpcRouter"
Tony Tkacik [Fri, 13 Feb 2015 09:29:35 +0000 (09:29 +0000)]
Merge "BUG-2626: activate enunciate only on jdk-1.7"
Tony Tkacik [Fri, 13 Feb 2015 09:29:16 +0000 (09:29 +0000)]
Merge "BUG-2626: Do not override enunciate version"
Tony Tkacik [Fri, 13 Feb 2015 09:17:59 +0000 (09:17 +0000)]
Merge "Bug-2674 Notification support for netconf testtool"
Tony Tkacik [Fri, 13 Feb 2015 09:16:37 +0000 (09:16 +0000)]
Merge "BUG-2573: add NormalizedNode-based RPC API"
Maros Marsalek [Mon, 9 Feb 2015 10:40:57 +0000 (11:40 +0100)]
Bug-2674 Notification support for netconf testtool
Change-Id: Ib301e2cccf85d4eae75629ddf681d9157b0cb585
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Moiz Raja [Fri, 13 Feb 2015 04:15:44 +0000 (04:15 +0000)]
Merge "(Fix: Bug 2711) - Match RPC actor system's Netty TCP settings with existing cluster DATA actor system setting to avoid oversized Gossip RPC messages."
Tom Pantelis [Fri, 13 Feb 2015 02:40:13 +0000 (02:40 +0000)]
Merge "Try to eliminate random failures in RaftActorTest"
Moiz Raja [Thu, 12 Feb 2015 23:49:20 +0000 (23:49 +0000)]
Merge "Add slf4j SimpleLogger properties file for unit tests"
Moiz Raja [Thu, 12 Feb 2015 23:48:37 +0000 (23:48 +0000)]
Merge "Added LeaderElectionScenariosTest class"
Moiz Raja [Thu, 12 Feb 2015 20:22:11 +0000 (12:22 -0800)]
Try to eliminate random failures in RaftActorTest
This patch attempts to add the following enhancements,
1. All test actors get created using a TestActorFactory which when closed
automatically kills the actors created by it
2. Provide a method to auto generate a friendly actor name/id for cases
where we need to use such names
Change-Id: Ia1fd81f08baf00dfc614dfa8466be2a62f18952d
Signed-off-by: Moiz Raja <moraja@cisco.com>
mark.mozolewski [Thu, 12 Feb 2015 23:22:19 +0000 (15:22 -0800)]
(Fix: Bug 2711)
- Match RPC actor system's Netty TCP settings with existing cluster DATA actor system setting to avoid oversized Gossip RPC messages.
Change-Id: I3e2c13cc23aa29052c5ed5096a887c563469d59e
Signed-off-by: mark.mozolewski <mark.mozolewski@hp.com>
Ed Warnicke [Thu, 12 Feb 2015 22:39:52 +0000 (22:39 +0000)]
Merge "Neutron to return ServiceUnavailable if no providers registered"
Ryan Moats [Thu, 12 Feb 2015 21:40:05 +0000 (15:40 -0600)]
Neutron to return ServiceUnavailable if no providers registered
opNFV interwork revealed that neutron returns 200 in error cases
where no SB providers are registered and if there is an error getting
the list of SB providers. Close both of these holes by returning
Service Unavailable Status
Change-Id: Iefa092a35bdc178f632373eac3b84578028d3768
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Ed Warnicke [Thu, 12 Feb 2015 21:29:54 +0000 (21:29 +0000)]
Merge "Mark yang generated source location as a source directory."
Tom Pantelis [Thu, 12 Feb 2015 21:15:39 +0000 (21:15 +0000)]
Merge "Stop scheduling the Install Snapshot check"
Moiz Raja [Thu, 12 Feb 2015 20:30:03 +0000 (20:30 +0000)]
Merge "(Bug 2035) - Increasing default Akka config for auto-down of unreachable nodes from 10sec to 5min to avoid locking out nodes during transient network blips, etc. "
Tom Pantelis [Thu, 12 Feb 2015 19:38:51 +0000 (19:38 +0000)]
Merge "BUG 2705 : No need to ReadData asynchronously in ShardTransaction"
Robert Varga [Thu, 12 Feb 2015 18:16:37 +0000 (19:16 +0100)]
BUG-2626: activate enunciate only on jdk-1.7
The plugin is not supported with JDK8. Create two parent pom.xmls, one
of which defines the activation on JDK7 only and the second one
centralizes the AD-SAL definitions for it.
Change-Id: I791847d6e27dae0f51499b303cbea9163f5f184a
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 12 Feb 2015 18:18:23 +0000 (19:18 +0100)]
BUG-2626: Do not override enunciate version
The overall version is 1.28, so do not downgrade it.
Change-Id: I4611091ab3c2f9ec58debb3a39ed82992e98338e
Signed-off-by: Robert Varga <rovarga@cisco.com>
Moiz Raja [Thu, 12 Feb 2015 03:46:39 +0000 (19:46 -0800)]
BUG 2705 : No need to ReadData asynchronously in ShardTransaction
Change-Id: I15a065e5fbc67c0c1d82e98e28252dd4ce0c983c
Signed-off-by: Moiz Raja <moraja@cisco.com>
Tony Tkacik [Thu, 12 Feb 2015 17:36:39 +0000 (17:36 +0000)]
Merge "Do not duplicate OSGi dependencyManagement"
Tony Tkacik [Thu, 12 Feb 2015 17:14:31 +0000 (17:14 +0000)]
Merge "BUG-2673: Introduced new more low-level DOM Data Change APIs"
Tony Tkacik [Thu, 12 Feb 2015 16:53:24 +0000 (16:53 +0000)]
Merge "BUG-1511 - Datastore: cleanup ListenerTreeAPI"
Tony Tkacik [Thu, 12 Feb 2015 15:54:19 +0000 (15:54 +0000)]
Merge "BUG-2632 Netconf connector (optionally) reconnects after a schema change is detected"
Tony Tkacik [Thu, 12 Feb 2015 15:52:54 +0000 (15:52 +0000)]
Merge "BUG-2600 Dynamic schemas in netconf server"
Ed Warnicke [Thu, 12 Feb 2015 14:53:48 +0000 (14:53 +0000)]
Merge "Bug 2684 - Fixing support for Neutron binding extended attributes"
Robert Varga [Thu, 21 Aug 2014 12:54:37 +0000 (14:54 +0200)]
BUG-1511 - Datastore: cleanup ListenerTreeAPI
- split ListenerTree two static inner classes to ListenerWalker and ListenerNode
- fix refences [ResolvedDataChangeState]
- improve performance of ListenerWalker.close()
Change-Id: Ide82bc6caeaca1aa5c9080f134d570cf7a1571d6
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 27 Jan 2015 14:05:38 +0000 (15:05 +0100)]
BUG-2673: Introduced new more low-level DOM Data Change APIs
As it turned out abstraction provided by Helium Data Change
API was CPU costly and calculated lot of unnecessary data,
and did not provide necessary navigation for some use-cases.
This new API contract defines more low-level data change
APIs, where application is more in control, how it will
process / consume / decompose Data Change by providing
DataTreeCandidate.
Change-Id: I468c9583c7999bc02101a18a8adf5dc1a084f1d9
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Thu, 12 Feb 2015 12:18:47 +0000 (12:18 +0000)]
Merge "BUG-2627: do not duplicate descriptions"
Tony Tkacik [Thu, 12 Feb 2015 12:18:10 +0000 (12:18 +0000)]
Merge "BUG-2627: JMX interfaces need to be public"
Robert Varga [Thu, 12 Feb 2015 10:36:08 +0000 (11:36 +0100)]
BUG-2627: do not duplicate descriptions
This class effectively creates a repeateable annotation. Unfortunately
in Java 8, we get twice as many annotations, which leads to duplicate
entries. Instantiate an intermediate Set, so we suppress potential
duplicates.
Change-Id: I0377d439260c2b3793c972c73373f5f6c6a7f119
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 12 Feb 2015 10:18:32 +0000 (11:18 +0100)]
BUG-2627: JMX interfaces need to be public
Java 8 enforces the specification's required for MXBean interfaces to be
public. The mock interfaces were not public, hence were failing the test
automatically.
Change-Id: I4a358ff750da6c91571847b650ef0746e9da3621
Signed-off-by: Robert Varga <rovarga@cisco.com>
Moiz Raja [Thu, 12 Feb 2015 03:45:37 +0000 (03:45 +0000)]
Merge "Initial heartbeats not sent by Leader"
Moiz Raja [Wed, 11 Feb 2015 22:31:38 +0000 (14:31 -0800)]
Stop scheduling the Install Snapshot check
We only schedule it once and even that is unneccessary
because we check if a snapshot needs to be triggered in
sendUpdatesToFollower and that should be good enough
Change-Id: I4da5d3452dbdb261738587f41201611ef891bec1
Signed-off-by: Moiz Raja <moraja@cisco.com>
Tom Pantelis [Wed, 11 Feb 2015 22:00:53 +0000 (22:00 +0000)]
Merge topic 'bug/2676'
* changes:
Store the datastore type in dataStoreContext
Refactor DataStoreContext
BUG 2676 : Apply backpressure when creating transactions
Tony Tkacik [Wed, 11 Feb 2015 21:06:51 +0000 (21:06 +0000)]
Merge "Run SingleFeatureTest on features/netconf"
Moiz Raja [Wed, 11 Feb 2015 19:53:08 +0000 (11:53 -0800)]
Add a diagnostic message to figure out why test fails
Adding a message to figure out why testFakeSnapshotsForLeaderWithInInitiateSnapshots
fails sometimes
Change-Id: I5c6f7d33e429a7497fa28ad99c316be2def59422
Signed-off-by: Moiz Raja <moraja@cisco.com>
Moiz Raja [Thu, 5 Feb 2015 23:38:38 +0000 (15:38 -0800)]
Store the datastore type in dataStoreContext
This way we do not need to pass it to DistributedDataStoreFactory,
DistributedDataStore and ShardManager as it is already present in
dataStoreContext
Change-Id: Id9aa1541728f3632a46d67f3bdbacb87fd39783f
Signed-off-by: Moiz Raja <moraja@cisco.com>
Moiz Raja [Thu, 5 Feb 2015 19:58:06 +0000 (11:58 -0800)]
Refactor DataStoreContext
It was getting difficult to maintain because we had the same field defined
in the Builder and the DatastoreContext and we were passing the fields along
using the DatastoreContext constructor. This meant that every new setting that
we added required multiple changes to be made to DatastoreContext.
Refactored for the Builder to create the DatastoreContext upfront and directly set
it's fields.
Change-Id: I8060c4ea3dfd02a5cac20e28fb5be2f26b1e1dbd
Signed-off-by: Moiz Raja <moraja@cisco.com>
Moiz Raja [Thu, 5 Feb 2015 02:19:14 +0000 (18:19 -0800)]
BUG 2676 : Apply backpressure when creating transactions
This patch uses a rate limiter to limit the number of write transactions
that can be created on the datastore at any given point of time (within a
second).
We also have added a metric that is trackable using JMX which will show
exactly how much time we take in committing a transaction.
Could this rate limiter have been on the DataBroker? Yes it could have been
but I think we need to go granular on this one. Ideally the ratelimiter would
be for every shard transaction but it's not trivial to do in a way that would
actually block the consumer for now - this is because creating a transaction on
Shard itself is an async operation.
Change-Id: I3d8e3baeb892ba494c0ab0d13a0d6226c1516511
Signed-off-by: Moiz Raja <moraja@cisco.com>
mark.mozolewski [Tue, 10 Feb 2015 18:51:01 +0000 (10:51 -0800)]
(Bug 2035)
- Increasing default Akka config for auto-down of unreachable nodes from 10sec to 5min to avoid locking out nodes during transient network blips, etc.
Change-Id: I3528b34373af192ff6b58b214ba9313b379e9828
Signed-off-by: mark.mozolewski <mark.mozolewski@hp.com>
Ed Warnicke [Wed, 11 Feb 2015 16:59:15 +0000 (09:59 -0700)]
Run SingleFeatureTest on features/netconf
Change-Id: Ibc60948413f633b4954ff603ad6a951658a95132
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Maros Marsalek [Thu, 5 Feb 2015 14:49:44 +0000 (15:49 +0100)]
BUG-2632 Netconf connector (optionally) reconnects after a schema change is detected
A notification listener is used for schema change detection
Change-Id: Ieab4eaf9e87b2b88dd2dc5429039494c8f9b5731
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Kiran Sreenivasa [Mon, 26 Jan 2015 22:08:36 +0000 (14:08 -0800)]
Bug 2538: Remove redundant Augmentation checks and tests
Change-Id: Ifa19661df9d3ba9cc8b93e0203bb760b792d8689
Signed-off-by: Kiran Sreenivasa <kkoushik@brocade.com>
Tom Pantelis [Fri, 13 Feb 2015 13:49:13 +0000 (13:49 +0000)]
Merge "Fix issue with TransactionProxy throttling test failures"
Tony Tkacik [Fri, 13 Feb 2015 13:40:23 +0000 (13:40 +0000)]
Merge "Bring features/neutron into the same parent dir as everything else"
Moiz Raja [Thu, 12 Feb 2015 20:52:42 +0000 (12:52 -0800)]
Fix issue with TransactionProxy throttling test failures
Make the measurement a little bit more precise by using nanoTime
instead of currentTimeMillis
Change-Id: I983ea1d176b65dacdb28e74a50f32623632442cf
Signed-off-by: Moiz Raja <moraja@cisco.com>