Github user tnine commented on a diff in the pull request:
https://github.com/apache/incubator-usergrid/pull/160#discussion_r24773689
--- Diff: stack/core/src/test/java/org/apache/usergrid/mq/MessagesIT.java
---
@@ -100,13 +102,16 @@ public void testMessages() throws Exception {
LOG.info(JsonUtils.mapToFormattedJsonString(messages));
assertEquals(3, messages.size());
*/
- TimeUnit.SECONDS.sleep( 2 );
- Map<String, Long> counters = qm.getQueueCounters( "/" );
- LOG.info( "dumping counters...." + counters );
- LOG.info( JsonUtils.mapToFormattedJsonString( counters ) );
- assertEquals( 1, counters.size() );
- assertNotNull( counters.get( "/foo/bar/" ) );
- assertEquals( new Long( 3 ), counters.get( "/foo/bar/" ) );
+
+ //wait for counters for flush\
+
+ //TODO Re-evaluate queues and make a cleaner interface
--- End diff --
Yeah, Queue is generally broken. IMHO this feature (queues) should be
removed from 2.0 completely since it's unstable at best. We should focus on
entities and graph first, then build our Queue features.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---