Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Blake Niemyjski
@niemyjski
@ejsmith
we WILL have to go to elastic 2.x before elastic 5
Eric J. Smith
@ejsmith
they are killing us
Lord-Hasek
@Lord-Hasek
@niemyjski I messaged you a link to a join.me so we can continue troubleshooting
Blake Niemyjski
@niemyjski
sounds good
Blake Niemyjski
@niemyjski
he gets all the clicks
Sander Rijken
@srijken
Been fighting with calling async/await code from an Rx Subscribe(Observer). Problem was that IObserver only contains void OnNext(T item). Because there’s nothing that returns task, you can’t do .Subscribe(async item => { await ProcessAsync(item) }).
it’s fixed now by doing: .Subscribe(item => { ProcessAsync(item).GetAwaiter().Result(); })
in the process I learned the difference between Task.Wait() and Task.Result vs Task.GetAwaiter().Result()
it’s explained best over here: aspnet/Security#59
"One last remark: you should avoid using Task.Result and Task.Wait as much as possible as they always encapsulate the inner exception in an AggregateException and replace the message by a generic one (One or more errors occurred), which makes debugging harder. Even if the synchronous version shouldn't be used that often, you should strongly consider using Task.GetAwaiter().GetResult() instead."
Blake Niemyjski
@niemyjski
+1
learned a few things today
Eric J. Smith
@ejsmith
?
Sander Rijken
@srijken
I learned that I’ve got a lot to learn about mixing Rx and async/await
basically it’s pretty much impossible to do nicely
Eric J. Smith
@ejsmith
yeah, I keep wanting to get into Rx
wonder if we should think about hosting our jobs that way.
Blake Niemyjski
@niemyjski
welp
next step
everything compiles
Eric J. Smith
@ejsmith
nice!
Blake Niemyjski
@niemyjski
now I guess get foundatio tests passing and work and get that published
Eric J. Smith
@ejsmith
so no blockers in the way, eh?
Blake Niemyjski
@niemyjski
would like to finish up the users stuff first but should get this done
well there will be with index names
lol
Eric J. Smith
@ejsmith
the functions thing looks interesting...
but don’t think it’s quite there yet.
you can make a storage folder the trigger… so just putting the postdata there would trigger it to run.
can run C# code and it scales on its own based on triggers.
but it looks like you have to just run some c# code from a text box vs triggering a exe or being able to use full assemblies.
guess you can add nuget packages and external references
but you have to put the core logic in a .csx script file.
Blake Niemyjski
@niemyjski
elastic/elasticsearch#17459
hmm
Sander Rijken
@srijken
@niemyjski what’s the status of the .Count property on event? is it too early to make changes to the deduplication plugin?
Blake Niemyjski
@niemyjski
it’s pushed
won’t be live until 8pm tonight
:)
Sander Rijken
@srijken
that’s fine, cause it’s 10:18pm
Blake Niemyjski
@niemyjski
haha
Eric J. Smith
@ejsmith
LOL
time travel
Sander Rijken
@srijken
this difference isn’t that bad
I worked on an open source project with a guy in Australia once
that’s impossible