Rubocop fails in auto-correct mode

When I'm try to run Rubocop in auto-correct mode I got this error:
Parser::Source::Rewriter detected clobbering
/gems/parser-<IP_ADDRESS>/lib/parser/source/rewriter.rb:177:in `append'
/gems/parser-<IP_ADDRESS>/lib/parser/source/rewriter.rb:86:in `replace'
/gems/rubocop-0.35.1/lib/rubocop/cop/corrector.rb:80:in `replace'
/gems/rubocop-0.35.1/lib/rubocop/cop/style/rescue_modifier.rb:38:in `block in autocorrect'
/gems/rubocop-0.35.1/lib/rubocop/cop/corrector.rb:46:in `call'
/gems/rubocop-0.35.1/lib/rubocop/cop/corrector.rb:46:in `block in rewrite'
/gems/rubocop-0.35.1/lib/rubocop/cop/corrector.rb:45:in `each'
/gems/rubocop-0.35.1/lib/rubocop/cop/corrector.rb:45:in `rewrite'
/gems/rubocop-0.35.1/lib/rubocop/cop/team.rb:91:in `autocorrect_one_cop'
/gems/rubocop-0.35.1/lib/rubocop/cop/team.rb:66:in `autocorrect'
/gems/rubocop-0.35.1/lib/rubocop/cop/team.rb:36:in `inspect_file'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:190:in `inspect_file'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:157:in `block in do_inspection_loop'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:151:in `loop'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:151:in `do_inspection_loop'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:93:in `process_file'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:58:in `block in inspect_files'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:56:in `each'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:56:in `inspect_files'
/gems/rubocop-0.35.1/lib/rubocop/runner.rb:34:in `run'
/gems/rubocop-0.35.1/lib/rubocop/cli.rb:26:in `run'
/gems/rubocop-0.35.1/bin/rubocop:13:in `block in <top (required)>'
/ruby/2.2.0/benchmark.rb:303:in `realtime'
/gems/rubocop-0.35.1/bin/rubocop:12:in `<top (required)>'
/bin/rubocop:23:in `load'
/bin/rubocop:23:in `<main>'
/bin/ruby_executable_hooks:15:in `eval'
/bin/ruby_executable_hooks:15:in `<main>'

By excluding files from auto-correct, I have found a line which falls Rubocop:
@current_school = @current_listing.role.schools.find(params[:school_id]) rescue @current_listing.role.schools.find(cookies[:school_id]) rescue nil

I refactored this code manually to this version and everything is running okay:
@current_school = begin
  @current_listing.role.schools.find(params[:school_id])
rescue
  @current_listing.role.schools.find(cookies[:school_id]) rescue nil
end

Rubocop version:
0.35.1 (using Parser <IP_ADDRESS>, running on ruby 2.2.3 x86_64-darwin15)

This is fixed on master. The only problem I see is that RescueModifier messes up the indentation of the code, and other cops don't correct that bad indentation.

Just opening a PR which fixes the trouble with indentation. Then this can be closed.

This is already fixed. Please close.


Visualization: India ICEMR Fever Surveillance has error of "Unexpected backend type(s) encountered" in box plot

India ICEMR Fever Surveillance has error of "Unexpected backend type(s) encountered" in box plot.
For example, when x= Medication provided and y= Temperature, error happens.

outliers needs to be an array of array, even when one of the x values only has a single outlier. this is a plot.data bug


Self opening web pages with automatic 5€ subsrciption

I have a big problem with my app, i received a lot of e-mail from users thet claims automatically open web pages and automatic subscription for 5€ at week!!!!!!! I tried myself and found that sometime it happens!!! I don't want this kind of things in my app!

Didn't get the last comment, but we now scan the demand for malicious ads so these kind of problems should not happen anymore.


build issues

Hey everyone, wanted to say I stumbled upon your repo by pure luck. I really need a library that I can do raw network requests since fetch() won’t work the way I need it to. I noticed you had taken down your npm so I forked the repo and published it myself. I rather not but I really want to try this library out.
Right now when I try to consume the published package I get the following error:
The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/greg/Documents/code/testo/tax-react-native-starterkit/node_modules/react-native-network-client/ios/WebSocketManager.swift
(2 failures)
not much description as to what is really wrong?

Hi @gregnb appreciate the time you took to try this out.. the fact is that we haven't publish it as it's not ready yet.
I must respectfully ask you to bring down the library from npm if you named it react-native-network-client if you named it differently feel free to keep it :)
Right that said, your error.. @migbot can you provide some directions here?

@enahum totally understand. It’s renamed and in fact it’s only published to my private enterprise org so it’s NOT public at all

@gregnb thank you for that!
As for the error, @migbot should be around in a few hours, he is probably the best fit to help you out here

Some more error detail i missed:
some more detail i missed:
act-native-starterkit/ios/Pods/Headers/Public/React-Core -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-callinvoker -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-cxxreact -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-jsi -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-jsiexecutor -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-jsinspector -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-perflogger -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/React-runtimeexecutor -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/Yoga -Xcc -I/Users//Documents/code/testo/tax-react-native-starterkit/ios/Pods/Headers/Public/glog -Xcc -I/Users//Library/Developer/Xcode/DerivedData/Taxreactnativestarterkit-gjnrxegcfaiahhhemubyqtpzgfop/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-network-client.build/DerivedSources-normal/x86_64 -Xcc -I/Users//Library/Developer/Xcode/DerivedData/Taxreactnativestarterkit-gjnrxegcfaiahhhemubyqtpzgfop/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-network-client.build/DerivedSources/x86_64 -Xcc -I/Users//Library/Developer/Xcode/DerivedData/Taxreactnativestarterkit-gjnrxegcfaiahhhemubyqtpzgfop/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-network-client.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -target-sdk-version 14.4 -module-name react_native_network_client -o /Users//Library/Developer/Xcode/DerivedData/Taxreactnativestarterkit-gjnrxegcfaiahhhemubyqtpzgfop/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-network-client.build/Objects-normal/x86_64/WebSocketManager.o -index-store-path /Users//Library/Developer/Xcode/DerivedData/Taxreactnativestarterkit-gjnrxegcfaiahhhemubyqtpzgfop/Index/DataStore -index-system-modules
/Users//Documents/code/testo/tax-react-native-starterkit/node_modules/@react-native-network-client/ios/WebSocketManager.swift:72:95: error: extra argument 'clientCredential' in call
let webSocket = WebSocket(request: request, certPinner: certPinner, clientCredential: clientCredential, compressionHandler: compressionHandler)
^~~~~~~~~~~~~~~~

@migbot thanks for the info Miguel! it got me one step further now I am facing this:
Undefined symbols for architecture x86_64:
"nominal type descriptor for (extension in Foundation):__C.NSURLSessionWebSocketTask.Message", referenced from:
_symbolic _____y___________pG s6ResultO So25NSURLSessionWebSocketTaskC10FoundationE7MessageO s5ErrorP in libStarscream.a(NativeEngine.o)
"enum case for (extension in Foundation):__C.NSURLSessionWebSocketTask.Message.data((extension in Foundation):__C.NSURLSessionWebSocketTask.Message.Type) -> (Foundation.Data) -> (extension in Foundation):__C.NSURLSessionWebSocketTask.Message", referenced from:
Starscream.NativeEngine.write(data: Foundation.Data, opcode: Starscream.FrameOpCode, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
closure #1 (Swift.Result<(extension in Foundation):__C.NSURLSessionWebSocketTask.Message, Swift.Error>) -> () in Starscream.NativeEngine.(doRead in _2D2A33380337B5EBE48BD9833E669011)() -> () in libStarscream.a(NativeEngine.o)
"(extension in Foundation):__C.NSURLSessionWebSocketTask.receive(completionHandler: (Swift.Result<(extension in Foundation):__C.NSURLSessionWebSocketTask.Message, Swift.Error>) -> ()) -> ()", referenced from:
Starscream.NativeEngine.(doRead in _2D2A33380337B5EBE48BD9833E669011)() -> () in libStarscream.a(NativeEngine.o)
"enum case for (extension in Foundation):__C.NSURLSessionWebSocketTask.Message.string((extension in Foundation):__C.NSURLSessionWebSocketTask.Message.Type) -> (Swift.String) -> (extension in Foundation):__C.NSURLSessionWebSocketTask.Message", referenced from:
Starscream.NativeEngine.write(string: Swift.String, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
closure #1 (Swift.Result<(extension in Foundation):__C.NSURLSessionWebSocketTask.Message, Swift.Error>) -> () in Starscream.NativeEngine.(doRead in _2D2A33380337B5EBE48BD9833E669011)() -> () in libStarscream.a(NativeEngine.o)
"type metadata accessor for (extension in Foundation):__C.NSURLSessionWebSocketTask.Message", referenced from:
Starscream.NativeEngine.write(string: Swift.String, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
Starscream.NativeEngine.write(data: Foundation.Data, opcode: Starscream.FrameOpCode, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
closure #1 (Swift.Result<(extension in Foundation):__C.NSURLSessionWebSocketTask.Message, Swift.Error>) -> () in Starscream.NativeEngine.(doRead in 2D2A33380337B5EBE48BD9833E669011)() -> () in libStarscream.a(NativeEngine.o)
outlined init with copy of Swift.Result<(extension in Foundation):__C.NSURLSessionWebSocketTask.Message, Swift.Error> in libStarscream.a(NativeEngine.o)
"(extension in Foundation):__C.NSURLSessionWebSocketTask.send(: (extension in Foundation):__C.NSURLSessionWebSocketTask.Message, completionHandler: (Swift.Error?) -> ()) -> ()", referenced from:
Starscream.NativeEngine.write(string: Swift.String, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
Starscream.NativeEngine.write(data: Foundation.Data, opcode: Starscream.FrameOpCode, completion: () -> ()?) -> () in libStarscream.a(NativeEngine.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@migbot no biggie man! appreciate even you responding tbh.
my end goal with this lib is to see if i can leverage it to complete a login flow in RN that allows me to extract the cookies which contain the token to leverage within the RN app itself. i see no path because of redirection/security issues with different attempts (ie: rn native, XMLHTTP etc)

@migbot cookies always come up empty. it’s an issue of redirects and http only headers.


Hard wraps in documentation on https://hubot.github.com/docs/

It looks like the documentation website is rendering hard wraps. Is there an option for GitHub Pages to use soft wraps? Otherwise we might need to reformat the docs.

Fixed on the site by changing the hard wrap config.


translate countries to Arabic

I noticed that you did fix positioning of table as well, so I translated countries as well.
Sorry that I made you clean behind me, I forgot to align worldwide title earlier and it's fixed here.
PS: I added all countries to the list.

Hey,
sure, thanks, I was a bit lazy to do the country translations but I'll get
back to it :)
And thanks!
On Thu, Mar 26, 2020 at 5:39 PM Gattal abderrraouf<EMAIL_ADDRESS>wrote:

I noticed that you did fix positioning of table as well, so I translated
countries as well.
Sorry that I made you clean behind me, I forgot to align worldwide title
earlier and it's fixed here.
PS: I added all countries to the list.
You can view, comment on, or merge this pull request online at:
https://github.com/Miloshinjo/covid19-info-portal/pull/4
Commit Summary

translate countries to arabic

File Changes

M components/Stats.tsx
https://github.com/Miloshinjo/covid19-info-portal/pull/4/files#diff-2a20c446f0d39674671ddbe498936287
(3)
M utils/countriesTranslations.ts
https://github.com/Miloshinjo/covid19-info-portal/pull/4/files#diff-fc0b37eb5b24fea311afa12e15960c1a
(1053)

Patch Links:

https://github.com/Miloshinjo/covid19-info-portal/pull/4.patch
https://github.com/Miloshinjo/covid19-info-portal/pull/4.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Miloshinjo/covid19-info-portal/pull/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHYOLK457365FPOV5FXCTL3RJOANDANCNFSM4LUL3KMA
.


Campaign | Posters: Take picture or upload picture from file

When adding a new poster location or replacing an existing photo, it is possible to add a photo. Once a picture is added, it is shown as a thumbnail.

Prototype:
https://www.figma.com/proto/7wE0Iveas3GGb8u4oL0714/App-Design-Mitglieder-App-(1)-(Copy)?node-id=2718-7292&t=b8swD5IOAFfZ0OSo-1&starting-point-node-id=2425%3A17429

Pollion reference: https://github.com/pollion/sunflower-app/issues/27

Taking a picture references the API in #41 and #42.

Review issue description and place in "Ready for Development" column. @leagerndt @JuliaFreitagBGSt

Issue is reviewed


feat: add support for<EMAIL_ADDRESS>

Pull Request Checklist

[ ] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description

Add Python 3.12 as a target - 3.12 Release Schedule is slated to arrive within the next 3 months, with RC 1 coming at the first of next week

Close Issue(s)

Closes #1862

It did not 😓

Seems like uvloop has some issues and no pre-built wheels?

Seems to be blocked by https://github.com/MagicStack/uvloop/issues/567


Release rosbridge_suite 0.11.6-1 for melodic

It was complaining about my not having a fork of rosdistro (which was false) and then failed trying to create it, so I made PRs that looked like the diff it showed me.


[WIP] Implement support for volume group mirroring

This PR does the required changes so that the volume group can also implement the Mirror interface and we do need to make many changes in the replication code to work differently for the mirroring of an image or a mirroring of a group.
Note:- The last commit to add use go-ceph is commented out, please don't review it, Will remove that code and make changes to the mirror implementation of the group. except that other commits can be reviewed.

@nixpanic This is ready for one more round of review :)


Map IntlRo key to Slash

Maps the IntlRo key to the slash key in the keyboard codemap
Fixes #831

Cheers!


Reduce screen flickering on pressing non-existing keybindings

Now, the screen is reloaded when whichever key is pressed, which causes a flick of the screen.
It should be that only functional keys reload the screen, while any other key presses are ignored.
In general, need to rewrite controls.py module.

Flickering shouldn't happen on the no-keypress as well.


Feature Request - Add stack to the UI

Hello, is it possible to add to the ui, when a container is created with docker compose, the name of the stack prior to the name of the container? this would help to identify the container quickly when multiple containers have similar names but are inside a stack!
Thank you
Best Regards

Hi,
Stacks only exist when using Docker Swarm if I'm not wrong.
As for now, Docker Swarm is not explicitly supported but maybe in the future...
=> https://github.com/getwud/wud/discussions/472


What does 'permissions relaxed on refs' mean?

https://github.com/kbase/nextgen/blame/master/docs/challenges/data.md#L10

I'm also curious what this means.

I have moved this issue to JIRA
https://atlassian.kbase.us/browse/NEXTGEN-10


No WSL2 network after windows update KB5044285/KB5045935

Windows Version
Microsoft Windows [Version 10.0.22631.4317]
WSL Version
No running it from the store I think as wsl.exe --version is not recognized
Are you using WSL 1 or WSL 2?

[x] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) <IP_ADDRESS>00220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
Distro Version
-bash: lsb_release: command not found (But I am running Debian)
Other Software
None
Repro Steps
Have a working Debian WSL2 installation that worked fine for 2 years.
Install updated KB5044285 and KB5045935 on windows.
Network is now broken in WSL2.
$ ping <IP_ADDRESS>
ping: socktype: SOCK_RAW
ping: socket: Operation not permitted
ping: => missing cap_net_raw+p capability or setuid?

Expected Behavior
Ping to work. Network used to work. I then was nagged into updating windows KB5044285/KB5045935. After that network does not work. I tried to uninstall the updates to ensure that is the issue, but when I restart, windows re-installs the updates again on it's own accord.
Actual Behavior
ping <IP_ADDRESS> should work. Accessing local DB should work.
Diagnostic Logs
WslLogs-2024-12-09_08-44-39.zip
UPDATE:
Got ping to work as none sudo by running: setcap 'cap_net_raw+p' /bin/ping, but still can't access local DB anymore
The update also took the liberty of clobbering my /etc/hosts file (thanks windows updates). After I remade it it's working.

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.
View similar issues
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Open similar issues:

no network any more (#10774),  similarity score: 0.78
No network connection in any distribution under WSL2 (#11131),  similarity score: 0.77
After Windows Update 24H2 WSL cannot access the internet (#12353),  similarity score: 0.76

Closed similar issues:

Network connectivity fails after update to KB5026361  (#10111),  similarity score: 0.77
Network is unreachable on ethernet connection but Ping, Traceroute work on Debian wsl2 on windows11 version 23H2 (#10744),  similarity score: 0.76

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information

Well then the pink command does not log and WSL traces


add button to toggle dark/light mode

This adds a simple button to the page to toggle between a light and dark mode. The dark mode is based on Bootstrap colors:

This is nice.
Maybe we can add this to the k8s.io/docs website as well?

/lgtm
/approve

For the Kubernetes website it might make sense to wait for it to use Bootstrap 5, which has better native support for it. This implementation here that I made is quite cheap, for the full website we probabl want something more robust/fine-tuned. But that's beyond my capabilities :-)

See https://github.com/kubernetes/website/issues/37444
I'd prefer to have the button act only as an override for the user's own preference, when that preference is available.


Added unirp.com.br domain

University website: https://www.unirp.edu.br
Course page: https://www.unirp.edu.br/Curso/5/2
Screenshot of the "student dashboard" called as "Aluno Online".
My institutional email is visible on the right.

For additional info: unirp.edu.br is for teachers, unirp.com.br is for students.

@HeyyCzer Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Reduce aggressiveness of mesh optimizer

It was fixed before, maybe should clean up the cache in browser.

Confirmed, this is no longer an issue, jacket is now not culling any mesh below of it :)


Create active-directory-aadconnect-health-faq.md

Added an FAQ for Synthetic Transaction alert.

@karavar : Thanks for your contribution to the Azure documentation! The author, @billmath, has been notified to review your proposed change.

#signoff

#sign-off

#sign-off


Add prometheus port to the container, Fixes #46

This automatically creates an additional container port if prometheus has been defined inside the plugins section.
Containers should export all ports if they are used. We found this issue with https://github.com/derailed/popeye

Waiting for this to be merged 🙂


Unable to make distributed requests to specific shards

Spark-Solr version : 3.0.1
Spark 2.1.0
Solr 6.4.1
The Spark-Solr connector is awesome, I am trying to use it through the JDBC/ODBC SQL. Many features explained in documentation are working except passing the shards parameter to restrict search on specific shards.
This is how I am trying to make it work
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z],shards:day8")
org.apache.spark.SparkException: Job aborted due to stage failure: Task 2 in stage 71.0 failed 1 times, most recent failure: Lost task 2.0 in stage 71.0 (TID 369, localhost, executor driver): java.lang.RuntimeException: java.io.IOException: --> http://localhost:8974/solr/cdr2_day3_replica2/:undefined field ,shards
	at com.lucidworks.spark.query.TupleStreamIterator.hasNext(TupleStreamIterator.java:50)
	at scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:42)
	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.agg_doAggregateWithoutKey$(Unknown Source)
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown Source)
	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
	at org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
	at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:126)
	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
	at org.apache.spark.scheduler.Task.run(Task.scala:99)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: --> http://localhost:8974/solr/cdr2_day3_replica2/:undefined field ,shards
	at org.apache.solr.client.solrj.io.stream.SolrStream.read(SolrStream.java:235)
	at com.lucidworks.spark.query.TupleStreamIterator.fetchNextTuple(TupleStreamIterator.java:81)
	at com.lucidworks.spark.query.TupleStreamIterator.hasNext(TupleStreamIterator.java:46)
	... 16 more

or
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]",solr.params="shards:day8")
org.apache.spark.sql.catalyst.parser.ParseException: Found duplicate keys 'solr.params'.(line 1, pos 57)
or
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]&shards:day8")
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="shards:day8")
This throws no error but ignores the shards params

CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z],shards:day8")

The query-params should be separated by & in solr.params not ,
Can you pass the logs from your application? anything in solr.params should be passed to Solr

For SQL
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]&shards:day8")
2017-07-31 12:48:17,517 [pool-20-thread-75] INFO  SolrQuerySupport$  - Constructed SolrQuery: q=*:*&rows=5000 from user-supplied query param: *:*
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - buildScan: push-down fields: [], filters: []
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Checking the query and sort fields to determine if streaming is possible for cdr2
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Added sort field 'id asc' to the query
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Using the /export handler because docValues are enabled for all fields and no unsupported field types have been requested.
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Sending q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id to SolrRDD using /export
2017-07-31 12:48:24,333 [pool-20-thread-78] INFO  SolrRDD  - Using splitField=None, splitsPerShard=None, and numReplicas=2 for computing partitions.
2017-07-31 12:48:24,333 [pool-20-thread-78] INFO  SolrRDD  - Found 10 partitions.
2017-07-31 12:48:24,342 [Executor task launch worker-174] INFO  SolrRDD  - Using the shard url http://localhost:8971/solr/cdr2_day2_replica2/ for getting partition data for split: 1
2017-07-31 12:48:24,342 [Executor task launch worker-174] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day2_replica2: url=http://localhost:8971/solr/cdr2_day2_replica2/, hostName=localhost:8971_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-172] INFO  SolrRDD  - Using the shard url http://localhost:8974/solr/cdr2_day4_replica1/ for getting partition data for split: 3
2017-07-31 12:48:24,342 [Executor task launch worker-172] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day4_replica1: url=http://localhost:8974/solr/cdr2_day4_replica1/, hostName=localhost:8974_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-173] INFO  SolrRDD  - Using the shard url http://localhost:8977/solr/cdr2_day8_replica2/ for getting partition data for split: 7
2017-07-31 12:48:24,342 [Executor task launch worker-169] INFO  SolrRDD  - Using the shard url http://localhost:8971/solr/cdr2_day1_replica1/ for getting partition data for split: 0
2017-07-31 12:48:24,342 [Executor task launch worker-176] INFO  SolrRDD  - Using the shard url http://localhost:8975/solr/cdr2_day6_replica2/ for getting partition data for split: 5
2017-07-31 12:48:24,342 [Executor task launch worker-176] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day6_replica2: url=http://localhost:8975/solr/cdr2_day6_replica2/, hostName=localhost:8975_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-169] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day1_replica1: url=http://localhost:8971/solr/cdr2_day1_replica1/, hostName=localhost:8971_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-173] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day8_replica2: url=http://localhost:8977/solr/cdr2_day8_replica2/, hostName=localhost:8977_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-171] INFO  SolrRDD  - Using the shard url http://localhost:8975/solr/cdr2_day5_replica1/ for getting partition data for split: 4
2017-07-31 12:48:24,342 [Executor task launch worker-171] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day5_replica1: url=http://localhost:8975/solr/cdr2_day5_replica1/, hostName=localhost:8975_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-175] INFO  SolrRDD  - Using the shard url http://localhost:8973/solr/cdr2_day3_replica1/ for getting partition data for split: 2
2017-07-31 12:48:24,342 [Executor task launch worker-175] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day3_replica1: url=http://localhost:8973/solr/cdr2_day3_replica1/, hostName=localhost:8973_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,343 [Executor task launch worker-170] INFO  SolrRDD  - Using the shard url http://localhost:8977/solr/cdr2_day7_replica1/ for getting partition data for split: 6
2017-07-31 12:48:24,343 [Executor task launch worker-170] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day7_replica1: url=http://localhost:8977/solr/cdr2_day7_replica1/, hostName=localhost:8977_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,349 [Executor task launch worker-171] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,350 [Executor task launch worker-171] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8975/solr/cdr2_day5_replica1/ for partition 4
2017-07-31 12:48:24,352 [Executor task launch worker-171] INFO  SolrRDD  - Using the shard url http://localhost:8980/solr/cdr2_day9_replica2/ for getting partition data for split: 8
2017-07-31 12:48:24,352 [Executor task launch worker-171] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day9_replica2: url=http://localhost:8980/solr/cdr2_day9_replica2/, hostName=localhost:8980_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,352 [Executor task launch worker-175] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,353 [Executor task launch worker-175] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8973/solr/cdr2_day3_replica1/ for partition 2
2017-07-31 12:48:24,354 [Executor task launch worker-175] INFO  SolrRDD  - Using the shard url http://localhost:8979/solr/cdr2_day10_replica2/ for getting partition data for split: 9
2017-07-31 12:48:24,354 [Executor task launch worker-175] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day10_replica2: url=http://localhost:8979/solr/cdr2_day10_replica2/, hostName=localhost:8979_solr, locations=/localhost for query: q=*:*&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,354 [Executor task launch worker-171] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,355 [Executor task launch worker-171] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8980/solr/cdr2_day9_replica2/ for partition 8
2017-07-31 12:48:24,356 [Executor task launch worker-174] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,357 [Executor task launch worker-174] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8971/solr/cdr2_day2_replica2/ for partition 1
2017-07-31 12:48:24,362 [Executor task launch worker-172] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,362 [Executor task launch worker-172] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8974/solr/cdr2_day4_replica1/ for partition 3
2017-07-31 12:48:24,367 [Executor task launch worker-175] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,367 [Executor task launch worker-175] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8979/solr/cdr2_day10_replica2/ for partition 9
2017-07-31 12:48:24,371 [Executor task launch worker-173] INFO  TupleStreamIterator  - Took 0 (ms) to read 2 from stream.
2017-07-31 12:48:24,371 [Executor task launch worker-173] INFO  SolrRDD  - Fetched 2 rows from shard http://localhost:8977/solr/cdr2_day8_replica2/ for partition 7
2017-07-31 12:48:24,860 [Executor task launch worker-170] INFO  TupleStreamIterator  - Took 439 (ms) to read 139000 from stream.
2017-07-31 12:48:24,861 [Executor task launch worker-170] INFO  SolrRDD  - Fetched 139000 rows from shard http://localhost:8977/solr/cdr2_day7_replica1/ for partition 6
[Stage 274:============================================>           (8 + 2) / 10]2017-07-31 12:48:25,034 [Executor task launch worker-176] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:25,034 [Executor task launch worker-176] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8975/solr/cdr2_day6_replica2/ for partition 5
2017-07-31 12:48:25,158 [Executor task launch worker-169] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:25,159 [Executor task launch worker-169] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8971/solr/cdr2_day1_replica1/ for partition 0

I was hoping it would only query the node hosting the directed shard. Apparently it iterates over all the nodes, maybe that is not part of functionality.

shards:day8 is not the right format. Try shards=day8
spark-solr built in model is to use all shards and replicas. It will still
query all shards individually but still Solr should honor the shards param
if it is there
On Mon, Jul 31, 2017 at 1:36 AM, imranrajjad<EMAIL_ADDRESS>wrote:

For SQL
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS
(zkhost="localhost:9983",collection="cdr2",solr.params="fq=dateTime:[
2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]&shards:day8")
2017-07-31 12:48:17,517 [pool-20-thread-75] INFO  SolrQuerySupport$  - Constructed SolrQuery: q=:&rows=5000 from user-supplied query param: :
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - buildScan: push-down fields: [], filters: []
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Checking the query and sort fields to determine if streaming is possible for cdr2
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Added sort field 'id asc' to the query
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Using the /export handler because docValues are enabled for all fields and no unsupported field types have been requested.
2017-07-31 12:48:24,318 [pool-20-thread-78] INFO  SolrRelation  - Sending q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id to SolrRDD using /export
2017-07-31 12:48:24,333 [pool-20-thread-78] INFO  SolrRDD  - Using splitField=None, splitsPerShard=None, and numReplicas=2 for computing partitions.
2017-07-31 12:48:24,333 [pool-20-thread-78] INFO  SolrRDD  - Found 10 partitions.
2017-07-31 12:48:24,342 [Executor task launch worker-174] INFO  SolrRDD  - Using the shard url http://localhost:8971/solr/cdr2_day2_replica2/ for getting partition data for split: 1
2017-07-31 12:48:24,342 [Executor task launch worker-174] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day2_replica2: url=http://localhost:8971/solr/cdr2_day2_replica2/, hostName=localhost:8971_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-172] INFO  SolrRDD  - Using the shard url http://localhost:8974/solr/cdr2_day4_replica1/ for getting partition data for split: 3
2017-07-31 12:48:24,342 [Executor task launch worker-172] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day4_replica1: url=http://localhost:8974/solr/cdr2_day4_replica1/, hostName=localhost:8974_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-173] INFO  SolrRDD  - Using the shard url http://localhost:8977/solr/cdr2_day8_replica2/ for getting partition data for split: 7
2017-07-31 12:48:24,342 [Executor task launch worker-169] INFO  SolrRDD  - Using the shard url http://localhost:8971/solr/cdr2_day1_replica1/ for getting partition data for split: 0
2017-07-31 12:48:24,342 [Executor task launch worker-176] INFO  SolrRDD  - Using the shard url http://localhost:8975/solr/cdr2_day6_replica2/ for getting partition data for split: 5
2017-07-31 12:48:24,342 [Executor task launch worker-176] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day6_replica2: url=http://localhost:8975/solr/cdr2_day6_replica2/, hostName=localhost:8975_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-169] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day1_replica1: url=http://localhost:8971/solr/cdr2_day1_replica1/, hostName=localhost:8971_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-173] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day8_replica2: url=http://localhost:8977/solr/cdr2_day8_replica2/, hostName=localhost:8977_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-171] INFO  SolrRDD  - Using the shard url http://localhost:8975/solr/cdr2_day5_replica1/ for getting partition data for split: 4
2017-07-31 12:48:24,342 [Executor task launch worker-171] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day5_replica1: url=http://localhost:8975/solr/cdr2_day5_replica1/, hostName=localhost:8975_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,342 [Executor task launch worker-175] INFO  SolrRDD  - Using the shard url http://localhost:8973/solr/cdr2_day3_replica1/ for getting partition data for split: 2
2017-07-31 12:48:24,342 [Executor task launch worker-175] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day3_replica1: url=http://localhost:8973/solr/cdr2_day3_replica1/, hostName=localhost:8973_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,343 [Executor task launch worker-170] INFO  SolrRDD  - Using the shard url http://localhost:8977/solr/cdr2_day7_replica1/ for getting partition data for split: 6
2017-07-31 12:48:24,343 [Executor task launch worker-170] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day7_replica1: url=http://localhost:8977/solr/cdr2_day7_replica1/, hostName=localhost:8977_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,349 [Executor task launch worker-171] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,350 [Executor task launch worker-171] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8975/solr/cdr2_day5_replica1/ for partition 4
2017-07-31 12:48:24,352 [Executor task launch worker-171] INFO  SolrRDD  - Using the shard url http://localhost:8980/solr/cdr2_day9_replica2/ for getting partition data for split: 8
2017-07-31 12:48:24,352 [Executor task launch worker-171] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day9_replica2: url=http://localhost:8980/solr/cdr2_day9_replica2/, hostName=localhost:8980_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,352 [Executor task launch worker-175] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,353 [Executor task launch worker-175] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8973/solr/cdr2_day3_replica1/ for partition 2
2017-07-31 12:48:24,354 [Executor task launch worker-175] INFO  SolrRDD  - Using the shard url http://localhost:8979/solr/cdr2_day10_replica2/ for getting partition data for split: 9
2017-07-31 12:48:24,354 [Executor task launch worker-175] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day10_replica2: url=http://localhost:8979/solr/cdr2_day10_replica2/, hostName=localhost:8979_solr, locations=/localhost for query: q=:&rows=5000&qt=/export&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2&sort=id+asc&fl=id
2017-07-31 12:48:24,354 [Executor task launch worker-171] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,355 [Executor task launch worker-171] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8980/solr/cdr2_day9_replica2/ for partition 8
2017-07-31 12:48:24,356 [Executor task launch worker-174] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,357 [Executor task launch worker-174] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8971/solr/cdr2_day2_replica2/ for partition 1
2017-07-31 12:48:24,362 [Executor task launch worker-172] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,362 [Executor task launch worker-172] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8974/solr/cdr2_day4_replica1/ for partition 3
2017-07-31 12:48:24,367 [Executor task launch worker-175] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:24,367 [Executor task launch worker-175] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8979/solr/cdr2_day10_replica2/ for partition 9
2017-07-31 12:48:24,371 [Executor task launch worker-173] INFO  TupleStreamIterator  - Took 0 (ms) to read 2 from stream.
2017-07-31 12:48:24,371 [Executor task launch worker-173] INFO  SolrRDD  - Fetched 2 rows from shard http://localhost:8977/solr/cdr2_day8_replica2/ for partition 7
2017-07-31 12:48:24,860 [Executor task launch worker-170] INFO  TupleStreamIterator  - Took 439 (ms) to read 139000 from stream.
2017-07-31 12:48:24,861 [Executor task launch worker-170] INFO  SolrRDD  - Fetched 139000 rows from shard http://localhost:8977/solr/cdr2_day7_replica1/ for partition 6
[Stage 274:============================================>           (8 + 2) / 10]2017-07-31 12:48:25,034 [Executor task launch worker-176] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:25,034 [Executor task launch worker-176] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8975/solr/cdr2_day6_replica2/ for partition 5
2017-07-31 12:48:25,158 [Executor task launch worker-169] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-07-31 12:48:25,159 [Executor task launch worker-169] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8971/solr/cdr2_day1_replica1/ for partition 0
I was hoping it would only query the node hosting the directed shard.
Apparently it iterates over all the nodes, maybe that is not part of
functionality.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lucidworks/spark-solr/issues/164#issuecomment-319003902,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEi5oOhu1W986-sOlenVWwFD10YyGHfnks5sTZH2gaJpZM4OiHO1
.

--
Kiran Chitturi

thanks for the response. I doubt the same, however when I send other parameters they also get ignored, such as sort, start and rows
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="<IP_ADDRESS>:9983",collection="cdr2",fields="aNumber,dateTime",solr.params="sort=dateTime asc&start=0&rows=100&fq=dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]")
I was expecting the above temp table to have 100 records only but it seems only the fq gets detected. Below please find the log

2017-08-01 11:44:29,527 [pool-20-thread-62] INFO  SolrQuerySupport$  - Constructed SolrQuery: q=:&rows=5000 from user-supplied query param: :
2017-08-01 11:44:32,747 [pool-20-thread-65] INFO  SolrRelation  - buildScan: push-down fields: [], filters: []
2017-08-01 11:44:32,747 [pool-20-thread-65] INFO  SolrRelation  - Checking the query and sort fields to determine if streaming is possible for cdr2
2017-08-01 11:44:32,747 [pool-20-thread-65] INFO  SolrRelation  - Using the /export handler because docValues are enabled for all fields and no unsupported field types have been requested.
2017-08-01 11:44:32,747 [pool-20-thread-65] INFO  SolrRelation  - Sending q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2 to SolrRDD using /export
2017-08-01 11:44:32,758 [pool-20-thread-65] INFO  SolrRDD  - Using splitField=None, splitsPerShard=None, and numReplicas=2 for computing partitions.
2017-08-01 11:44:32,766 [pool-20-thread-65] INFO  SolrRDD  - Found 10 partitions.
2017-08-01 11:44:32,774 [Executor task launch worker-237] INFO  SolrRDD  - Using the shard url http://localhost:8972/solr/cdr2_day1_replica2/ for getting partition data for split: 0
2017-08-01 11:44:32,774 [Executor task launch worker-239] INFO  SolrRDD  - Using the shard url http://localhost:8974/solr/cdr2_day3_replica2/ for getting partition data for split: 2
2017-08-01 11:44:32,775 [Executor task launch worker-237] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day1_replica2: url=http://localhost:8972/solr/cdr2_day1_replica2/, hostName=localhost:8972_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,775 [Executor task launch worker-239] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day3_replica2: url=http://localhost:8974/solr/cdr2_day3_replica2/, hostName=localhost:8974_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,774 [Executor task launch worker-238] INFO  SolrRDD  - Using the shard url http://localhost:8971/solr/cdr2_day2_replica2/ for getting partition data for split: 1
2017-08-01 11:44:32,776 [Executor task launch worker-238] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day2_replica2: url=http://localhost:8971/solr/cdr2_day2_replica2/, hostName=localhost:8971_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,777 [Executor task launch worker-240] INFO  SolrRDD  - Using the shard url http://localhost:8974/solr/cdr2_day4_replica1/ for getting partition data for split: 3
2017-08-01 11:44:32,777 [Executor task launch worker-240] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day4_replica1: url=http://localhost:8974/solr/cdr2_day4_replica1/, hostName=localhost:8974_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,777 [Executor task launch worker-242] INFO  SolrRDD  - Using the shard url http://localhost:8975/solr/cdr2_day6_replica2/ for getting partition data for split: 5
2017-08-01 11:44:32,778 [Executor task launch worker-242] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day6_replica2: url=http://localhost:8975/solr/cdr2_day6_replica2/, hostName=localhost:8975_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,778 [Executor task launch worker-241] INFO  SolrRDD  - Using the shard url http://localhost:8976/solr/cdr2_day5_replica2/ for getting partition data for split: 4
2017-08-01 11:44:32,778 [Executor task launch worker-244] INFO  SolrRDD  - Using the shard url http://localhost:8978/solr/cdr2_day8_replica1/ for getting partition data for split: 7
2017-08-01 11:44:32,778 [Executor task launch worker-241] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day5_replica2: url=http://localhost:8976/solr/cdr2_day5_replica2/, hostName=localhost:8976_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,779 [Executor task launch worker-244] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day8_replica1: url=http://localhost:8978/solr/cdr2_day8_replica1/, hostName=localhost:8978_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,779 [Executor task launch worker-243] INFO  SolrRDD  - Using the shard url http://localhost:8977/solr/cdr2_day7_replica1/ for getting partition data for split: 6
2017-08-01 11:44:32,780 [Executor task launch worker-243] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day7_replica1: url=http://localhost:8977/solr/cdr2_day7_replica1/, hostName=localhost:8977_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,782 [Executor task launch worker-239] INFO  TupleStreamIterator  - Took 1 (ms) to read 0 from stream.
2017-08-01 11:44:32,782 [Executor task launch worker-237] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,783 [Executor task launch worker-240] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,783 [Executor task launch worker-240] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8974/solr/cdr2_day4_replica1/ for partition 3
2017-08-01 11:44:32,785 [Executor task launch worker-240] INFO  SolrRDD  - Using the shard url http://localhost:8980/solr/cdr2_day9_replica2/ for getting partition data for split: 8
2017-08-01 11:44:32,785 [Executor task launch worker-240] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day9_replica2: url=http://localhost:8980/solr/cdr2_day9_replica2/, hostName=localhost:8980_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,786 [Executor task launch worker-241] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,787 [Executor task launch worker-242] INFO  TupleStreamIterator  - Took 1 (ms) to read 0 from stream.
2017-08-01 11:44:32,787 [Executor task launch worker-241] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8976/solr/cdr2_day5_replica2/ for partition 4
2017-08-01 11:44:32,787 [Executor task launch worker-242] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8975/solr/cdr2_day6_replica2/ for partition 5
2017-08-01 11:44:32,788 [Executor task launch worker-238] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,789 [Executor task launch worker-240] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,791 [Executor task launch worker-244] INFO  TupleStreamIterator  - Took 3 (ms) to read 2 from stream.
2017-08-01 11:44:32,791 [Executor task launch worker-244] INFO  SolrRDD  - Fetched 2 rows from shard http://localhost:8978/solr/cdr2_day8_replica1/ for partition 7
2017-08-01 11:44:32,792 [Executor task launch worker-241] INFO  SolrRDD  - Using the shard url http://localhost:8979/solr/cdr2_day10_replica2/ for getting partition data for split: 9
2017-08-01 11:44:32,792 [Executor task launch worker-241] INFO  SolrRDD  - Using export handler to fetch documents from SolrReplica(0) cdr2_day10_replica2: url=http://localhost:8979/solr/cdr2_day10_replica2/, hostName=localhost:8979_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2
2017-08-01 11:44:32,794 [Executor task launch worker-241] INFO  TupleStreamIterator  - Took 0 (ms) to read 0 from stream.
2017-08-01 11:44:32,815 [Executor task launch worker-239] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8974/solr/cdr2_day3_replica2/ for partition 2
2017-08-01 11:44:32,823 [Executor task launch worker-237] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8972/solr/cdr2_day1_replica2/ for partition 0
2017-08-01 11:44:32,831 [Executor task launch worker-238] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8971/solr/cdr2_day2_replica2/ for partition 1
2017-08-01 11:44:32,849 [Executor task launch worker-240] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8980/solr/cdr2_day9_replica2/ for partition 8
2017-08-01 11:44:32,849 [Executor task launch worker-241] INFO  SolrRDD  - Fetched 0 rows from shard http://localhost:8979/solr/cdr2_day10_replica2/ for partition 9
2017-08-01 11:44:33,186 [Executor task launch worker-243] INFO  TupleStreamIterator  - Took 335 (ms) to read 139000 from stream.
2017-08-01 11:44:33,187 [Executor task launch worker-243] INFO  SolrRDD  - Fetched 139000 rows from shard http://localhost:8977/solr/cdr2_day7_replica1/ for partition 6

It is evident that params are being passed but for some odd reason Solr is ignoring it. Ideally the Spark Table should have just 1000 records. We are basically trying to implement paging through Spark-SQL + Solr. Secondly the filters param is also going undetected
CREATE OR REPLACE TEMPORARY view cdr2 USING solr OPTIONS (zkhost="<IP_ADDRESS>:9983",collection="cdr2",fields="aNumber,dateTime",filters="dateTime:[ 2017-06-17T00:00:00Z TO 2017-06-18T00:00:00Z]",solr.params="sort=dateTime asc&start=101&rows=100")
2017-08-01 12:05:21,744 [pool-20-thread-83] WARN  SolrRelation  - Unknown parameters passed to query: Set(filters)
2017-08-01 12:05:21,758 [pool-20-thread-83] INFO  SolrQuerySupport$  - Constructed SolrQuery: q=*:*&rows=5000 from user-supplied query param: *:*

I would rather trouble shoot through the source code but eclipse is having some scala related issues.
regards,
Imran

Whatever is specified in solr.params is indeed getting passed in
2017-08-01 11:44:32,777 [Executor task launch worker-240] INFO SolrRDD - Using export handler to fetch documents from SolrReplica(0) cdr2_day4_replica1: url=http://localhost:8974/solr/cdr2_day4_replica1/, hostName=localhost:8974_solr, locations=/localhost for query: q=:&rows=100&qt=/export&fl=aNumber,dateTime&sort=dateTime+asc&start=0&fq=dateTime:[+2017-06-17T00:00:00Z+TO+2017-06-18T00:00:00Z]&collection=cdr2

The filters param is only available in 3.1.0 version

Closing this issue as the thread is inactive for few weeks. Please open a new issue if you are still having problems


search inside Json

a method that gives you the ability to to search inside a json based on the name that's given to it.
json = Json()
json.find(name='name to find')

add the metho find and added to it the method find_all for searching inside the whold Json about the values of the given name, getting in a return, the depth of the key, the key, parent_key and the value of that key.
more details about it in the release.


cant find discord.exe???????

Describe the Bug

To Reproduce

Expected Behavior

Screenshots

Discord Version

Additional Context

waddhek it says i cant find discord.exe for windows, tried this like 15 times its broken
i cant be the only one having this problem right?

Dude. It''s not that hard. Click "Browse" and follow this gif. If you can't see the AppData folder you need to enable show hidden folders. How to do that here: https://i.imgur.com/HZhDKM8.jpg

i cant find appdata on users?

tysm dude i  got this to work and yes the folder was hidden i see why now ty


Consistently display overseas-passport courier info

Consistently display the courier information in overseas-passports. The cost is now always on a separate line to the information about what you're paying for. This brings the display of this information inline with that for Tajikistan, Turkmenistan and Uzbekistan. This should help us remove duplication in future.
We spoke to Ben Mortimer about making this change and he's happy for it to be deployed. No fact check required.

Ideally I think it would be good if the message for commits involving changes in behaviour of groups of countries (e.g. "IPS 1") could list the countries that we expect to be affected and how this list was obtained. I don't think it's reasonable to expect a reviewer to know what "IPS 1" means.

Other than my comments, this looks good to me. 👍

Oh, also it would be nice to say something in the PR description about the missing regression test coverage you found and whether you are planning to do anything about it.

Ideally I think it would be good if the message for commits involving changes in behaviour of groups of countries (e.g. "IPS 1") could list the countries that we expect to be affected and how this list was obtained. I don't think it's reasonable to expect a reviewer to know what "IPS 1" means.

As per our comment above, we (@chrisroos and I) also don't know what the "IPS1" countries are. We've decided that it's not important to understand in this branch given that the changes to the artefacts match the changes to the templates. We've updated the commit notes to explain this. Apologies for not doing so earlier.

Oh, also it would be nice to say something in the PR description about the missing regression test coverage you found and whether you are planning to do anything about it.

We've expanded the commit notes of the three commits that didn't result in changes to the regression test artefacts:

NOTE. No regression tests failed after making this change. We've done
some initial investigation and think that this path of code might be
unreachable. We're not going to investigate any further at the moment as
our primary goal is to make the content consistent so that we can remove
duplication.

Thanks for reviewing, @floehopper. We've rebased this on master and force pushed in preparation for merging.


Can you please tell me what parameter you can configure grafana or zabbiks to monitor the hang of the service?

Can you please tell me what parameter you can configure grafana or zabbiks to monitor the hang of the service? Our latest version hangs every two weeks, and we learn about it from users and not from monitoring.

Hello @test-OnlyOffice Sorry, but we dont support any graphical monitors. In the next versions we will add healthcheck page.


modify table name for diesel v2

Background
The table name specification was changed from strings to modules in v2.
What
Remove double quotes from output table names.
Related issues
https://github.com/abbychau/diesel_cli_ext/issues/51

Schema modules must be specified in "--import-types".

lgtm


Can't open the link to the dataset

Hello, I cannot open the link of the dataset you shared. Could you please share another one? Thank you very much :)

I'm sorry, I solved the problem, It's my fault. Thanks~


Provider in cluster list is sometimes not translated

Rancher versions: 2.0 master 2/28
Steps to Reproduce:

Create a bunch of clusters
Click around and refresh browser

Results:  Sometime when coming out of Add cluster or refreshing browser, the provider on the cluster list page is showing the translation tag and not the text.

Version - 2.0 master 3/2
Verified fixed


feat: add api runtime flags

Is this to support the use case where the api runtime is not set in staticwebapp.config.json?

Yes, Yohan. But for this to work the code in the StaticSiteclient needs to be merged.

Could you also update the config schema in schema/?

Done. Please check now.

Thanks! Could you rebase your branch with latest changes from ga so I can merge it?

Done

Closes #519

Looks like there are few merge conflicts.. Can you please pull latest code

@sgollapudi77 thank you for adding these changes. Could you also update the docs to reflect these changes?

Closing this PR and re-opening new one against main branch.


Create SI Tests for Event Notification

Please make sure to only test /v2/events and not the event callback mechanism.

https://phabricator.mesosphere.com/D453


Multiple definitions found for I start application by name

When I grab the starter project kit from git, I am getting an error that I have multiple definitions found for I start application by name. I haven't added any steps. This is just the base import from maven and the sample example for starting calculator.

Is this issue still reproducible?
For me, it is working as expected.
We have seen that is there are multiple starter kit projects in your workspace then the eclipse get confused with the step definition.


Don't enable ccache when building for Emscripten.

Our runtime build is fast enough, and ccache just... doesn't work on my Windows machine with Emscripten:
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Could NOT find Threads (missing: Threads_FOUND)
-- Could NOT find Threads (missing: Threads_FOUND)
-- git version: v1.7.1-4-gda652a74 normalized to <IP_ADDRESS>
-- Version: <IP_ADDRESS>
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Failed
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Failed
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Failed

If it works on the CI then we should keep it IMO. If running locally it doesn't work for you, then just set the appropriate env variables to turn it off

It is "working" in the sense that CMake isn't falling over immediately (like on my Windows machine), but we aren't getting any benefit from it:
https://github.com/iree-org/iree/actions/runs/4130405154/jobs/7137141528
+ ((  IREE_USE_CCACHE == 1  ))
+ ccache --show-stats
Cacheable calls:    317 /  319 (99.37%)
  Hits:               0 /  317 ( 0.00%)
    Direct:           0
    Preprocessed:     0
  Misses:           317 /  317 (100.0%)
Uncacheable calls:    2 /  319 ( 0.63%)
Local storage:
  Cache size (GB): 0.00 / 5.00 ( 0.00%)
  Hits:               0
  Misses:             0
Remote storage:
  Hits:               0 /  317 ( 0.00%)
  Misses:           317 /  317 (100.0%)

(we don't write to the remote ccache for any cross compile jobs)

(we don't write to the remote ccache for any cross compile jobs)

We don't?

(we don't write to the remote ccache for any cross compile jobs)

We don't?

Ahh.. we do. Emscripten didn't. Now I'm wondering if https://github.com/iree-org/iree/pull/12081 will benefit from caching (on Linux) after merge.

Yeah, I think I'll drop this and see about just disabling locally / when working on Windows. Hopefully Linux ccache + Emscripten is stable and there's just something different about Windows or my machine.


Start fiddling with plot test

This test may be slightly insane.

This test is probably not really gonna work out.

@ebolyen suggested maybe forcing the viz to render as an svg during testing so we can just assert that divs exist


Improve text readability

Especially of modals — increase size, use better contrast.

hi can i take this issue?

let me take this issue first

can you please assign it to me?

Hello sir, how can i get your telegram handle to discuss a deeper understanding of the issue. Thank you

@norswap what's the update on this. it seems this is solved since you implemented sonner now.

Is this still available?

Can I take this issue?

Let me try this one!

Could I take on this issue?

I’d like to resolve this.


make: *** No rule to make target 'lib/mbedtls/library/aes.c', needed by 'build-BLACK_F407VE/genhdr/qstr.i.last'

Hi
I've got this error when compiling.
make V=1 BOARD=BLACK_F407VE make: *** No rule to make target 'lib/mbedtls/library/aes.c', needed by 'build-BLACK_F407VE/genhdr/qstr.i.last'.  Stop.
Any help will be greatly appreciated.
Thanks

fixed the above errors by going in micropython dir and issuing git submodule update --init
but now have lots of others:
../../lib/oofatfs/ff.c:26:10: fatal error: string.h: No such file or directory    26 | #include <string.h>       |          ^~~~~~~~~~ compilation terminated.
In file included from ../../lib/cmsis/inc/core_cm4.h:34,                  from ../../lib/stm32lib/CMSIS/STM32F4xx/Include/stm32f407xx.h:183,                  from ../../lib/stm32lib/CMSIS/STM32F4xx/Include/stm32f4xx.h:151,                  from ../../lib/stm32lib/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:48,                  from ../../lib/stm32lib/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:47,                  from ./boards/stm32f4xx_hal_conf_base.h:30,                  from boards/BLACK_F407VE/stm32f4xx_hal_conf.h:4,                  from ../../lib/stm32lib/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:48,                  from ./mpconfigboard_common.h:30,                  from ./mpconfigport.h:32,                  from ../../py/mpconfig.h:62,                  from ../../lib/oofatfs/ffconf.h:30,                  from ../../lib/oofatfs/ff.h:33,                  from ../../lib/oofatfs/ffunicode.c:26: /usr/lib/gcc/arm-none-eabi/10.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory     9 | # include_next <stdint.h>       |                ^~~~~~~~~~ compilation terminated. In file included from ../../lib/mbedtls/library/aes.c:31: ./mbedtls/mbedtls_config.h:88:10: fatal error: stdlib.h: No such file or directory    88 | #include <stdlib.h>       |          ^~~~~~~~~~ compilation terminated.

maybe I sould downgrade arm-none-eabi-10.1.0  to 9 or 8. Any idea?

Got it  Fixed!
on arch,  downgreaded to "arm-none-eabi-gcc55" 5.5.0-1  and was able to compile with no errors.


CListMempool has data race(s)

mempool.CListMempool.Update writes to the height field under the assumption that the updateMtx field on the CListMempool struct has been locked by its caller. But e.g. mempool.CListMempool.resCbFirstTime reads from the height field without taking that lock. And that method is called by reqResCb via abci/client.ReqRes.SetCallback, neither of which take the lock. This is a data race.
The height field (and others) are commented as "atomic" which suggests they are expected to be accessed with sync/atomic functions like mempoolTx.Height. But that's not the case at the moment. If that's the intent, then they should only be accessed with sync/atomic functions, and do not require the updateMtx to be locked. But this kind of mixing of individually-atomic fields and a mutex that governs (apparently arbitrary) fields in the type is basically impossible to get right :) and probably deserves a refactor.

Closed by #2021


⚠ ClamAV has degraded performance

In 87c5fe0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 102 ms

Resolved: ClamAV performance has improved in 201e4f8.


Crashes in process_initial_run

I've been working on writing up a CosmoSIS interface for dypolychord but I've been running into problems. I managed to distill it down to the toy problem of a 2d isotropic Gaussian (based on the example in the docs):
import dyPolyChord.python_likelihoods as likelihoods
import dyPolyChord.python_priors as priors
import dyPolyChord.pypolychord_utils
import dyPolyChord

ndim = 2
nderived = 0
likelihood = likelihoods.Gaussian(sigma=1.0, nderived=nderived)
prior = priors.Gaussian(sigma=2.0)

# Make a callable for running PolyChord
my_callable = dyPolyChord.pypolychord_utils.RunPyPolyChord(
    likelihood, prior, ndim, nderived=nderived)

# Specify sampler settings (see run_dynamic_ns.py documentation for more details)
dynamic_goal = 1.0  # whether to maximise parameter estimation or evidence accuracy.
ninit = 10          # number of live points to use in initial exploratory run.
nlive_const = 50   # total computational budget is the same as standard nested sampling with nlive_const live points.
settings_dict = {'file_root': 'gaussian',
                 'feedback' : 1,
                }

# Run dyPolyChord
dyPolyChord.run_dypolychord(my_callable, dynamic_goal, settings_dict,
                            ninit=ninit, nlive_const=nlive_const)

The error is (most of the time, it's a bit random if it occurs):
Traceback (most recent call last):
  File "mwe.py", line 29, in <module>
    ninit=ninit, nlive_const=nlive_const)
  File "/Users/yooken/Codes/miniconda/envs/test_cosmosis/lib/python3.7/site-packages/nestcheck-0.2.0-py3.7.egg/nestcheck/io_utils.py", line 28, in wrapper
    return func(*args, **kwargs)
  File "/Users/yooken/Codes/dypolychord/dyPolyChord/run_dynamic_ns.py", line 173, in run_dypolychord
    final_seed=final_seed)
  File "/Users/yooken/Codes/dypolychord/dyPolyChord/run_dynamic_ns.py", line 275, in process_initial_run
    resume_steps < dyn_info['peak_start_ind'])[0][-1]]
IndexError: index -1 is out of bounds for axis 0 with size 0

Sometime it finishes but gives warnings like
Warning, unable to proceed after      7: failed spawn events

@tilmantroester thank you for pointing this out!
This is error is caused by trying to start the dynamic nested sampling run by resuming the initial exploratory run whenever the optimal start point for the dynamic run is not sampling from the whole prior. However we do not save a resume file every step, so it throws an error if it tries to resume before the first resume file was saved. I fixed this in 0dd8636c9865632f1d11527193eda3254685d5ee - now the dynamic nested sampling starts from sampling the whole prior when there is no available resume file close enough to the start.
Let me know if any problems remain after this fix, and if not I will close the issue.

Apologies for the delay getting back to this. It was working on a simple toy model but I've now ran it at scale where I got the same error message again:
Traceback (most recent call last):
  File "/home/ttroester/Codes/dyPolyChord/dyPolyChord/run_dynamic_ns.py", line 193, in run_dypolychord
    dynamic_goal=dynamic_goal)
  File "/home/ttroester/Codes/dyPolyChord/dyPolyChord/output_processing.py", line 114, in process_dypolychord_run
    run = combine_resumed_dyn_run(init, dyn, dyn_info['resume_ndead'])
  File "/home/ttroester/Codes/dyPolyChord/dyPolyChord/output_processing.py", line 203, in combine_resumed_dyn_run
    nestcheck.ns_run_utils.get_run_threads(init),
  File "/home/ttroester/Codes/nestcheck/nestcheck/ns_run_utils.py", line 152, in get_run_threads
    samples = array_given_run(ns_run)
  File "/home/ttroester/Codes/nestcheck/nestcheck/ns_run_utils.py", line 65, in array_given_run
    samples[-1, 2] = -1  # nlive drops to zero after final point
IndexError: index -1 is out of bounds for axis 0 with size 0

@tilmantroester this actually looks like a different problem to me. I think what is happening is that one of the the initial ("init") or dynamic ("dyn") runs contains zero samples, which throws an error when they are split into threads here:
  File "/home/ttroester/Codes/dyPolyChord/dyPolyChord/output_processing.py", line 203, in combine_resumed_dyn_run
    nestcheck.ns_run_utils.get_run_threads(init),

Please can you provide an example I can use to replicate the error?
Otherwise I suggest adding some print statements printing properties of "init" and "dyn" before line 200 of output_processing.py so you can check what it is about these runs which means they cannot be split into threads.

This happens in a fairly complex pipeline, getting a simple example to replicate is going to be difficult.
Since I run this on a large number of MPI workers, each of which only gets one CPU, splitting into threads probably doesn't do much at best and might upset the scheduler at worst. Is it possible to disable running on multiple threads?
Are there constraints on n_init, e.g., that it needs to be larger than the number of dimensions of the parameter space?

"threads" in get_run_threads refers to splitting up the data into single live point runs ("threads") after PolyChord has finished sampling (not to multi-threading of the computer process).
The new error is occuring after both the initial and dynamic runs have finished and looks to me like either the initial or the dynamic run has no samples in it. I expect the dynamic run has no samples in it (if the initial one had no samples then I think it would have thrown an error earlier). If so the problem is all your allotted samples are being used on the initial run, so you need the total number of samples available to the dynamic run to be bigger - i.e. increase nlive_const or max_ndead (whichever you use) relative to n_init. What values are you using for these? There is not much I can say without being able to replicate the issue.
In general having n_init greater than the number of dimensions is a good idea, although if my theory is correct you will also need to increase (nlive_const or max_ndead) by a larger fraction to avoid this error.

Increasing n_init and nlive_const indeed seems to prevent the error from occurring.

Great! I will close this issue. If this occurs again then try printing out how many points there are in the initial and dynamic runs then increasing n_init and nlive_const to ensure this is more than zero.


cmake: Prevent it from searching for packages in / when cross-compiling for Windows

Motivation for this change
I was using the CMake from nixpkgs in my own project (outside of nixpkgs) to cross-compile some software for Windows.  That software uses the find_package command to find Qt5Widgets.  CMake was finding the Qt5Widgets package on my build system and trying (unsuccessfully) to use it.  Obviously, that goes against the whole point of purity in Nix.  This pull request adds a patch that comments out a line that adds / to the CMAKE_SYSTEM_PREFIX_PATH.  Thanks!
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

I wonder if it is enough of a rebuild to target into staging… GTK2, GTK3, Qt5, Qt4 all depend on CMake, for example.

I think this should go into staging.

Thank you for taking a look.  The new pull request is ready: #25330


Dialog flickering when contains a large amount of elements and uses animation keyframes without a destination

Bug report
Current Behavior
When opening Dialog, it flickers if these two conditions are both fulfilled:

It contains a large amount of elements
It uses animation keyframes without a destination (e.g. to or 100%)

https://github.com/radix-ui/primitives/assets/11325684/5e664f13-8733-47f3-9d63-09bb406113c9
Expected behavior
No flickering when opening Dialog.
Reproducible example
Stackblitz
Suggested solution

Additional context

Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-dialog
1.0.5

React
n/a
18.2.0

Browser
Edge
119.0.2151.46

Assistive tech

Node
n/a

npm/yarn

Operating System
macOS
12.4

Just a note: this is not happening on Linux on both Chrome and Firefox. Tested on Stackblitz link from OP.

This is happening to me aswell, is there any fix to this issue ?

Happening to me too. Seems to be worse on mobile, specifically chrome on IOS. Following.

@mosquitochang I am unable to reproduce on latest MacOS (I'm on Sonoma 14.2.1 / Edge 122.0.2365.80)
See video recording below:
https://github.com/radix-ui/primitives/assets/1539897/4ed15573-a27f-48e6-b998-ef8cc39b6d78

same here, can reproduce bug on Google Chrome: Version 124.0.6367.119 (Official Build) (64-bit), but can't on Firefox 125.0.3 (64-bit). Win 10 Version 10.0.19045 Build 19045

I'm on MacOS Sonoma 14.4.1 (23E224) and seeing the same issue in Google Chrome Version 124.0.6367.62 (Official Build) (x86_64) but not on Firefox 125.0.3 (64-bit).

MacOS Ventura 13.6.9. Same issue on Google Chrome 127.0.6533.120 (Official Build) (x86_64)

I'm on MacOS Sonoma 14.7(23H124) and seeing the same issue in Firefox 131.0.3 (aarch64) but not on Google Chrome Version 129.0.6668.71(Official Build) (arm64).


Create createLoadingAnimation Function

In the app.js file make a function called createLoadingAnimation
The function should

Create a div container and have the id loadingContainer
Create a circle that has an animation that spins around with the id loadingLogo
Append the loadingLogo to the loadingContainer
Append the loadingContainer to the mainSection id element when the getProductData / getCategoryData function(s) is running
Run the removeLoadingAnimation function when the data is received

Changes to the function name & dom container
Name changed to buildLoadingAnimation
dom container to cardsContainer


fix(action): link to comparadise from github status

:pencil: Description

When a Comparadise job fails due to new test creation or visual diff, link to the Comparadise URL from the GitHub status' target_url.

:tada: This PR is included in version 1.8.8 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Allow to pass types derived from CosmosContainer and CosmosDatabase to corresponding methods

Consuming Cosmos DB from F# I have a need to pass a container to a function. It is possible to pass not the right container to a function. The way you usually solve this issue is restricting received container by type. it is possible to derive from CosmosContainer but it is not possible to get an instance of it.
Please, add the ability to pass type derived from CosmosContainer to methods that produce a container from CosmosDatabase. And the same for CosmosDatabase from CosmosClient.
The most perfect solution would be to define a derived type with default constructor passing ContainerProperties to CosmosContainer constructor.
In C# you could create methods to work with that container on that derived class.

Composition is normally a better model over inheritance. Is there any reason you can't use composition to solve this issue?
public class MicrosoftContainer
{
     public CosmosContainer Instance {get;}
}

public class MicrosoftContainer : CosmosContainer
{
     private CosmosContainer container {get;}

     public override Task<ItemResponse<T>> CreateItemAsync<T>(
            T item,
            PartitionKey? partitionKey = null,
            ItemRequestOptions requestOptions = null,
            CancellationToken cancellationToken = default(CancellationToken))
    {
        return this.container.CreateItemAsync<T>(item, partitionKey, requestOptions, cancellationToken);
    }
}

Again, I can't produce MicrosoftContainer from Database. But what I want is to produce type guarded instance that can be statically checked on a build.

I'm not fluent on F# so I might make interpretation mistakes but this sounds like a Repository Pattern? Where you want to have a Container for a particular schema and you want to be able to identify them at compile?
So a Repository<T> can be the contract you use, and each Repository<T> has a reference to the Container and a method to obtain it. Each Repository<T> might have a naming rule to know which is the id/name of the container it needs to reference.

@xperiandri any chance you can provide an example of what the current code is and what you would like it to be if @ealsur suggestion didn't help? I'm also not fluent in F#, and having an example would make it easier to understand.

Option 1
type BooksDatabase () = inherit CosmosDatabase("Books")
// booksDatabase becomes of type BooksDatabase
let booksDatabase = client.CreateDatabaseIfNotExistsAsync<BooksDatabase>()

type UsersContainer () = inherit CosmosContainer("Users")
// usersContainer becomes of type UsersContainer
let usersContainer = booksDatabase.CreateContainerIfNotExistsAsync<UsersContainer>()

let asyncGetUser (container : UsersContainer) = ...

Option 2
// Books would be a phantom type/interface
// booksDatabase becomes of type CosmosDatabase<Books>
let booksDatabase = client.CreateDatabaseIfNotExistsAsync<Books>("Books")

// User can be a real entity used for that container of phantom type/interface
// usersContainer becomes of type CosmosContainer<User>
let usersContainer = booksDatabase.CreateContainerIfNotExistsAsync<User>(containerProperties)

let asyncGetUsers (container : CosmosContainer<User>) = ...

The main point of this is to know at compile time that you will never put a container with "books" where a container with "cars" expected.

The thing is that by definition, Cosmos DB is schemaless, so a container can contain items with different schemas. Adding a direct overload that takes a type would hint users that there is some sort of schema verification/validation, and sounds like it would set the wrong expectation. And it's for databases the conceptual gap is even larger (it does not even apply on a SQL world). What do you think @j82w ?
Build time validation can be again achieved by a Repository wrapping right? That repository can have it's on Container instance:
public class Repository<T>
{
    private readonly CosmosClient client;
    public Container Container {get;private set;}
    public Repository(CosmosClient client)
    {
        this.client = client;
        this.Container = client.GetContainer("database", typeof(T).Name);
    }

    public async Task CreateIfNotExists()
    {
        Database database = await client.CreateDatabaseIfNotExists("database");
        await database.CreateContainerIfNotExists(this.Container.Id);
    }
}

var repository = new Repository<Book>(client);

// Then you can use Repository<T> as input through the code

await repository.CreateIfNotExistsAsync();

Container container = repository.Container;

I agree with @ealsur that Cosmos DB doesn't have any schema validation. Is there any reason @ealsur sample won't work?

Why do you relate my request to schema existence or non-existence?
It is about compile-time guard against container and database mix up.

A Container related to a  conceptually translates to the Container for the Type, where the Type sounds in C# as the schema.
This conceptually aligns with other data handling libraries like Entity Framework (DbSet).
That is why I mention that adding Container would be interpreted that way by a C# user, and not as simply a compiler time guard. Which is something I wouldn't agree with, it gives the wrong expectations.
If your goal is to have a guard on compile time that a particular container is related to a particular type regardless of what is stored inside, it can be achieved as I described through a Repository. It achieves what you need and there is no type polluting needed on the SDK classes that could lead to confusion for users used to data libraries in C#.

OK, but why do you seal containers?

@xperiandri What do you mean? Container is not sealed https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/src/Resource/Container/Container.cs#L28
I still don't understand why the proposed code doesn't achieve what you need (build time checking). As explained before, Cosmos DB is schema-less, so adding any sort of <T> to the Container types would not make much sense, at least for me.

So the main flow is that you get Container from Database https://github.com/Azure/azure-cosmos-dotnet-v3/blob/94914c41aad9b1996599a515168fee3e710eb7fc/Microsoft.Azure.Cosmos/src/Resource/Database/Database.cs#L392
How do I need to achieve that in my case?

Imagine that I have a CosmosClient instance what code do I need to write to instantiate my derived Database and my derived Container classes?

You'd have to inherit from Database, make your GetContainer call return an instance of your class instead I guess.
You can read the container information as a Stream and deserialize it to a custom class, which could be inheriting from ContainerProperties and have the extra methods you need.
I still don't understand why you need a custom Container type, if it's the reason explained before, the Repository pattern solves it.

Because I already have an issue where I put one container where another is expected

I want to prevent that on compile time

@xperiandri I wonder can you use FSharp.UMX and/or the techniques therein to type-tag the containers the way you are seeking?

I want to prevent that on compile time

The Repository approach mentioned on the thread can address that without needing to override the Container or anything else, doesn't it?

Do you mean creating a decorator on top of the Container with the same API?
I don't use Repository pattern, it is not a functional way of doing things. I have a function that takes a Container.
I can only wrap a Container into a decorator with the same API.
Container has 46 abstract methods. This means that I need to write 93 lines of useless code just to create a decorator if possible.

I mean that your logic will request a Container<users>, which uses units of measure to make it different from Container<images>
its a strong type alias. There is no decorator of any kind - you are wrapping the actual container in a type alias that makes it not be interchanbgeable without you doing an explict mapping.
Then you have
type CosmosDatabase with
    member Users : UsersContainer = %this.Container("Users")
    member Images : UsersContainer = %this.Container("Images")

(obv you want to cache the container instance creation.

@xperiandri you'll need a line like this to make Containers type-taggable in this way.


[+] compress logo image from 4 MB to 500 KB

Compress logo image to get the same PNG quality but less filesize.

Oh wow! That explains a lot ... Thank you :)


Remove all "Science 101" information completely from the table introductions

Throughout the report, we have "Science 101" information that we want to remove. There is apparently additional documentation that will show where we want this all to live.

Closed in #273


Nep needs uppercase atom names

Since nep needs uppercased atom names build_nep_traj should generate output including the atomnames as their uppercase version.
To Reproduce
Run nep with test.xyz and train.xyz files with unchanged output files from build_nep_traj. Generates an input error when trying to read train.xyz

Should work now could you please test it

It is fixed thank you!


feat: Add Rust opcodes test against Madara/Katana

Feature Request
Currently have implemented running rust tests against the Kakarot contract deployed on Madara.
Steps to run the tests from the branch:

fork: https://github.com/danilowhk/kakarot-opcode-test
add "@view execute" function on Kakarot
adapt: .env (kakarot contract and class_hash)

View function code:
@view
func execute{
syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, range_check_ptr, bitwise_ptr: BitwiseBuiltin*
}(
starknet_contract_address: felt,
evm_contract_address: felt,
bytecode_len: felt,
bytecode: felt*,
calldata_len: felt,
calldata: felt*,
value: felt,
gas_limit: felt,
gas_price: felt,
) -> (
stack_accesses_len: felt,
stack_accesses: felt*,
stack_len: felt,
memory_accesses_len: felt,
memory_accesses: felt*,
memory_bytes_len: felt,
starknet_contract_address: felt,
evm_contract_address: felt,
return_data_len: felt,
return_data: felt*,
gas_used: felt,
) {
return Kakarot.execute(
starknet_contract_address,
evm_contract_address,
bytecode_len,
bytecode,
calldata_len,
calldata,
value,
gas_limit,
gas_price,
);
}
Current observations:

Results are not decoded and compared to expected results
Currently, we are only calling the @view function, might be worth testing calling a @external function with internal variables change.

Describe the Feature Request

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

Hello @danilowhk , I can work on this!

I just want to make the point that we should not replace our python tests with the rust-vm. If anything we should be comparing results between the two vms first.
you also dont necessarily need to add any function, just compile this EVM fixture we have and have it deployed: https://github.com/kkrt-labs/kakarot/blob/main/tests/fixtures/EVM.cairo

So, adding a scope of work here to make this task more specific.

Write a rust implementation using starkness-rs, which integrates the bytecode testing @danilowhk has done into our Kakarot main repo. This means running the tests defined in this JSON file and testing we are getting the desired output.
We can deploy the following  contract to the RPC to use the execute function exposed by it.
The choice of sequencer for this should be a real tenet of Starknet.

Questions I have:

The reason why we started with Rust was to make easy to use test sequencer of Katana and make this test run faster, but, now it seems like we want to test this onto the real testnet, do we still need Rust in that case? because I think a scripting language seems to be better suited for this and might want to add this one more test in python as well.

CC:
@Eikix , @danilowhk

I think it's because we trust starknet-rs more, and would like to not add too many languages in the repo (if we add TS, it now has lots of dependencies)
Happy to hear challenges
Ideally as well, your rust code would be used later when we refactor python to rust

That works for me btw!
@ClementWalter said we should deploy EVM.Cairo as part of our CI as well, I think it can be done now, as a first PR.
The issue would simply be -> add EVM.cairo in the deployments scripts
That way, we can retrieve the address of EVM.cairo from the deployments artifacts like we'll be doing for Kakarot main contracts.

What is the status of this issue?
It appears it'll be done within ethereum/tests implementation?
afaiu we are deprioritizing this


Shotgun Doesn't Respond to SIGTERM

Shotgun does not seem to respond to the SIGTERM process signal, which can make starting and stopping shotgun and real pain, as the common CTRL+C doesn't kill it. Is there any reason for this? If not, is it something that can be fixed in a future version?
Cheers

It's working for me, even on 1.8.7. So please reopen if still an issue.


FATA[0000] pulling image: rpc error: code = Unknown desc = Error response from daemon: Head "http://sealos.hub:5000/v2/pause/manifests/3.6": no basic auth credentials

Sealos Version
v4.1.3
How to reproduce the bug?
1.执行命令
sealos gen labring/kubernetes-docker:v1.23.15 labring/helm:v3.9.4 labring/calico:v3.22.1 --masters <IP_ADDRESS> --nodes <IP_ADDRESS> -p *** > Clusterfile
2.部署集群
sealos apply -f Clusterfile
3.报错

What is the expected behavior?
No response
What do you see instead?
No response
Operating environment
- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information
No response

https://github.com/labring/sealos/releases/tag/v4.1.4-rc3 try this version.

https://github.com/labring/sealos/releases/tag/v4.1.4-rc3 try this version.

still not working


Add exclusion for HA.yaml files as they are part of core tests that need to be editable.

My regex is rusty, hopefully I got it right.
/cc @eparis

xref: https://github.com/kubernetes/kubernetes/pull/30514

Why do you have extra parenthesis around yaml?

Why do you have extra parenthesis around yaml?

I put it there in case I needed to | extensions but it's not needed.
Happy to remove if desired.

Yeah it doesn't make a difference,

Hmm it does not look like the bot is respecting this rule?  Does the bot need to be reset?

Yes, we would have to redeploy the bot, which may not have happened yet.
Let me check ...
Image:	docker.io/foxish/submit-queue:2016-07-29-68fd252
It hasn't been deployed in quite some time. I'll try to let you know when it happens.


[fix][cli] pulsar-perf fails on jdk17

Motivation
pulsar-perf fails with jdk17.
2022-12-06T09:43:53,357-0600 [pulsar-perf-producer-exec-1-1] WARN  io.netty.resolver.dns.DnsServerAddressStreamProviders - Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
2022-12-06T09:43:53,369-0600 [pulsar-perf-producer-exec-1-1] WARN  org.apache.pulsar.common.util.netty.DnsResolverUtil - Cannot get DNS TTL settings from sun.net.InetAddressCachePolicy class
java.lang.IllegalAccessException: class org.apache.pulsar.common.util.netty.DnsResolverUtil cannot access class sun.net.InetAddressCachePolicy (in module java.base) because module java.base does not export sun.net to unnamed module @6456fb59
    at jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) ~[?:?]
    at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) ~[?:?]

Modifications
Add --add-opens like in the other cli tools.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Codecov Report

Merging #18806 (78b6a93) into master (68ca60c) will decrease coverage by 12.98%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #18806       +/-   ##
=============================================
- Coverage     50.05%   37.07%   -12.99%
+ Complexity    11024     1968     -9056
=============================================
  Files           703      209      -494
  Lines         68814    14425    -54389
  Branches       7378     1574     -5804
=============================================
- Hits          34446     5348    -29098
+ Misses        30621     8491    -22130
+ Partials       3747      586     -3161

Flag
Coverage Δ

unittests
37.07% <ø> (-12.99%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../org/apache/pulsar/client/impl/ConnectionPool.java
37.43% <0.00%> (-1.03%)
:arrow_down:

...java/org/apache/pulsar/proxy/stats/ProxyStats.java

.../org/apache/pulsar/broker/admin/v1/Properties.java

...ervice/streamingdispatch/StreamingEntryReader.java

...e/HashRangeAutoSplitStickyKeyConsumerSelector.java

...roker/systopic/TopicPoliciesSystemTopicClient.java

...rg/apache/pulsar/broker/web/PulsarWebResource.java

...va/org/apache/bookkeeper/mledger/util/SafeRun.java

...r/loadbalance/impl/GenericBrokerHostUsageImpl.java

...er/loadbalance/extensions/data/BrokerLoadData.java

... and 485 more

Hi, I also get this error from pulsar java client api using Java 17. When I add pulsar to my application should I also use the JVM option mentioned above? Or there will be a fix for this? Running previous versions of pulsar client with Java 17 were not giving this error...


New release?

Any chance you guys can do a new release?  It looks like you may have some fixes in master for something I'm seeing:
tsd[6437]: ERROR (dogstatsd.py:311): Error receiving datagram
Traceback (most recent call last):
File "/opt/datadog-agent/agent/dogstatsd.py", line 299, in start
aggregator_submit(message)
File "/opt/datadog-agent/agent/aggregator.py", line 604, in submit_packets
parsed_packets = self.parse_metric_packet(packet)
File "/opt/datadog-agent/agent/aggregator.py", line 479, in parse_metric_packet
raise Exception('Metric value must be a number: %s, %s' % (name, raw_value))
Exception: Metric value must be a number: responses.inbound.nobid.mean, �
I think the Aug 7th commit for NaN would fix this, but we just need a new release out!

I'll publish a new version today.

2.0.13 released.

Thanks!  I only just saw this, I'm a terrible person :)


Add contribution guidelines to README.md

The README.md file is missing the contribution guidelines:

pull requests should have a clear description of what they add
code must be formatted using clang format
camelCase is used for functions, methods, local variables and fields (no underscore prefixing on private fields)
PascalCase is used for class names
UPPER_CASE is used for macros
snake_case is used for namespaces, folders and files
each file should have an #ifndefinclude guard
when closing a namespace the namespace name should be added as a comment, the same goes for if macros (#ifdef, ...)
namespaces should match the directory structure, except namespace impl, which can be used to hide implementation details (check cubos::gl::impl)
everything should be well documented (/// style, check already existing files)

There should also be a mention to the gh page with documentation.

Add diagram of the game's systems (implemented and to be implemented), a high level explanation of how the system's interact.