Skip to content

Conversation

@mogadanez
Copy link
Contributor

No description provided.

Alexander Popov and others added 30 commits September 4, 2013 18:03
… of Object[Object], because buffer is often looks like:

{
   phase: 0
   error: "[{<<"lineno">>,466},{<<"message">>,<<"SyntaxError: syntax error">>},{<<"source">... (length: 92)"
   input: "{ok,{r_object,<<"users">>,<<"b1f0e0b64f8143a6a45977db8e29ff89">>,[{r_content,{di... (length: 515)"
}
either we use asi or we don't mixing is bad
Since just dumping data in Riak without ever cleaning up is not nice I
added a cleanup for all writen keys in the tests. This should also make
sure that we don't have dependend tests

Also commeted out search tests relying in pre solar functionaliy
this should only return the keys added (4) since we clean the bucket
between tests
only expect keys this tests explicitly saves
otherwise riak.conf will be ignored due to a present app.config
locally 1 sec is more than enough wait for indexes to propagate but on
travis this seems to not be the case let's see...
@Quentin01
Copy link
Contributor

Your build don't pass with Travis CI

@Quentin01
Copy link
Contributor

Oops, I haven't seen your previous comment.
You may need to wait Riak for the service to start.

@mogadanez
Copy link
Contributor Author

It passed now.
Actually some tests is very unstable and failing time to time even locally due some timings
But problems is in test not library.

@Quentin01
Copy link
Contributor

It's dirty to use many setTimeout. Can you use another solution or look at why it is mandatory to use setTimeout?

PS : Maybe a riak-admin wait-for-service?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On this test, and many others, you are not in agreement with the PR #201 which we have merged into master

@mogadanez
Copy link
Contributor Author

Its come to our repository from https://github.com/sideshowcoder/riak-js

SetTimeouts is really hack. But for now I don't know better alternative.
Inside test it is not wait for service. But wait for index propagation, and data indexed. Since it is async operation
metacommunications@0ac9d6c
http://lists.basho.com/pipermail/riak-users_lists.basho.com/2014-November/016198.html

Probably it can be extracted from test to setup required test schema in install_riak.sh script.

@Quentin01
Copy link
Contributor

OK, so can you make a more proper code by using async module or another async library?
#225 (diff)

@mogadanez
Copy link
Contributor Author

Yes, but probably only on weekend

On Thu, Nov 27, 2014 at 6:22 PM, Quentin Buathier notifications@github.com
wrote:

OK, so can you make a more proper code by using async module or another
async library ?


Reply to this email directly or view it on GitHub
#225 (comment).

@Quentin01
Copy link
Contributor

Any news for the updating of the tests ? Or for that comment : #225 (diff) ?

@mogadanez
Copy link
Contributor Author

Sorry for delay, test updated and test client now used.

@mogadanez
Copy link
Contributor Author

ping

@mogadanez
Copy link
Contributor Author

BTW, official node library is in active development
https://github.com/basho/riak-nodejs-client
probably good alternative

@zowers
Copy link

zowers commented May 15, 2015

any eta on when somebody can merge this?

@Quentin01
Copy link
Contributor

This PR looks good. So, I merge it now. But I think we must do some refactor later on some things.
And sorry for the long time without answers :S

Quentin01 added a commit that referenced this pull request May 18, 2015
Support for Riak 2.0. Ability to use special indices $bucket, $key. Ability to provide max_results and continuation in db.query and get continuation back.
@Quentin01 Quentin01 merged commit a033839 into mostlyserious:master May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants