newrelic_rpm slows down requests 10x when used with graphql dataloader

See https://github.com/rmosolgo/graphql-ruby/issues/3945 for some info about the error
Note the investigation at https://github.com/rmosolgo/graphql-ruby/issues/3945#issuecomment-1186232935 which shows where in newrelic_rpm the slowdown occurs
And the repro at https://github.com/rmosolgo/graphql-ruby/issues/3945#issuecomment-1186210895
Thanks to @hkdnet for moving this along
For Maintainers Only or Hero Triaging this bug
Suggested Priority (P1,P2,P3,P4,P5):
Suggested T-Shirt size (S, M, L, XL, Unknown):

@bmulholland @hkdnet I opened up lib/new_relic/agent/range_extensions.rb and rewrote merge and merge_append like so:
  # CHANGES: 1. instead of instantiating new Integer objects with 'range_min'
  #             and 'range_max' variables, just use a one-liner to build a new
  #             Range object directly (object allocation savings)
  #          2. remove the intersects? check and assume that it has already been
  #             performed elsewhere
  def merge(r1, r2)
    (r1.begin < r2.begin ? r1.begin : r2.begin)..(r1.end > r2.end ? r1.end : r2.end)
  end

  # CHANGES: 1. instead of using Array#each_with_index and finding the first
  #             range with overlap, use Array#index and get the index for the
  #             range instead
  #          2. instead of calling merge on every range, perform the intersects?
  #             check in the Array#index block itself
  def merge_or_append(range, ranges)
    i = ranges.index { |r| intersects?(r, range) }
    (ranges[i] = merge(ranges[i], range) and return ranges) if i
    ranges << range
  end

On my development machine with Ruby 3.1.2, these two changes produce about a 27% speed boost.
It appears that the remaining time is being spent inside the intersects? method. That method checks to see if 2 ranges have an intersection. For example:

1..3 and 2..4 => true, these 2 intersect
1..3 and 4..5 => false, these 2 do not intersect

ActiveSupport's core extensions for Range define an #overlaps? method which uses #cover? on each of 2 ranges to see if there's overlap. Our intersects? method is instead using #include?. #include? ought to be slower in general, but with the specific code in question, it seems to be slightly faster than #cover?.
That's all I have as an update for now. If we can speed up the intersects? method in the New Relic Ruby agent code or avoid calling it as often by making changes in the graphql gem, we ought to be able to further improve performance.
@hkdnet's PR #1266 provides a terrific speed boost but currently breaks the way that the agent handles a transaction's children (unit tests are currently failing). Getting that PR to pass the unit tests is another possible solution.

Hi @bmulholland @hkdnet,
With #1274, we have made a change that completely removes the merge_or_append method and causes the agent to no longer check to see if pairs of ranges overlap until the very last stage when a segment of data is being reported to New Relic's servers.
We would love to have some GraphQL users test the new strider branch to see if the changes improve performance.
A Ruby project's Gemfile can be set to use the strider branch of the New Relic Ruby agent like so:
gem 'newrelic_rpm', git: 'https://github.com/newrelic/newrelic-ruby-agent', branch: 'strider'

Hi @bmulholland @hkdnet,
Were you able to take a look at #1274 / the strider branch of the repo to see if those changes help at all with the performance issues?

@fallwith Sorry, I don't have bandwidth right now

@bmulholland no worries at all. I'll drop a note in https://github.com/rmosolgo/graphql-ruby/issues/3945 so that the participants know the branch is available.

Thank you for your great work. I tried your branch and on my laptop it works very well. The RoR's output was significantly reduced (more than 30sec -> about 800ms).
I found another issue that RoR says it took 800ms but in Chrome's Dev Tool the request took about 1200ms. Usually this is because Rack middleware consumed 400ms in total.
I need to take another look on which Rack middleware takes so long time and why. But it seems another issue.
#1274  looks good to me 😃

Thank you @hkdnet for testing the changes! The rest of the maintainers will review this PR and then the improvements will go out with upcoming gem version 8.10.0, hopefully to be released before September.

Looks like it wasn't linked to the PR #1274 before merging to get auto-closed, so closing now since we have completed the work and it will be included in the upcoming release. 👍

The v8.10.0 release of the newrelic_rpm gem with the improvements is now available on RubyGems.org.


fix: include a new flag to strip existing prerelease before calculating next version

closes #267

Codecov Report

Merging #268 (031d1ff) into main (0361b04) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #268      +/-   ##
==========================================
+ Coverage   84.17%   84.32%   +0.14%
==========================================
  Files          43       43
  Lines        2054     2073      +19
==========================================
+ Hits         1729     1748      +19
  Misses        257      257
  Partials       68       68

Impacted Files
Coverage Δ

internal/context/context.go
100.00% <ø> (ø)

cmd/uplift/bump.go
82.66% <100.00%> (+0.72%)
:arrow_up:

cmd/uplift/release.go
84.67% <100.00%> (+0.37%)
:arrow_up:

cmd/uplift/root.go
80.00% <100.00%> (+0.51%)
:arrow_up:

cmd/uplift/tag.go
84.14% <100.00%> (+0.60%)
:arrow_up:

internal/task/nextsemver/nextsemver.go
95.77% <100.00%> (+0.61%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


cf login fails with non-ascii password characters

Tested under windows 7, configured with french local with both MSDOS shell and cygwin, on both private cf instance and public pivotal.run.io
When the password contains an accentuated character é in our case, the UAA rejects the login. However, web UIs such as run.pivotal.io properly accept the login with the accentuated characters, which makes me suspect there is something related to the way the CLI sends the password. I'm suspecting the CLI suffers from a Mojibake bug when posting passwords to login endpoint.
Further diagnostic follow. Hope this helps.

The CLI offers no way to this display the sent password even with CF_TRACE we get grant_type=password&password=[PRIVATE DATA HIDDEN]&scope=&username=...
However here is a fiddler intercepted trace of the posted json when authenticating:
$ http_proxy=http://localhost:8888 cf auth userid 'é'
API endpoint: https://api.[...]
Authenticating...
FAILED
Credentials were rejected, please try again.

POST https://login.[...]/oauth/token HTTP/1.1
Host: login.[...]
User-Agent: go-cli 6.12.2-24abed3 / windows
Content-Length: 58
Accept: application/json
Authorization: Basic [...]
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=password&password=%C3%A9&scope=&username=userid

We see that the password is encoded as %C3%A9 which in decimal correspond to two bytes with ascii values 195 169
As a comparison, the browsers when submitting the login form from webui such as run.pivotal.io URL encode the é character properly as password=%E9 is single byte with 233 decimal value, as expected:
Unicode number: U+00E9 dec 233 see http://unicode-table.com/en/#00E9
%A9 is the value of é in the iso latin-1 cf http://www.ic.unicamp.br/~stolfi/EXPORT/www/ISO-8859-1-Encoding.html
This matches the symptoms of Mojibake bug in english texts

Thanks for the report. Since it's now in Tracker, you can track its progress there.

@camelpunch @dkoper
I see the following drawbacks when closing a reported issue while the associated story in the backlog has not been addressed/accepted for resolution:

it is harder for CF CLI users to be aware of known limitations (it is pretty common practice to look at open issues for this purpose)
CLI team might get duplicate issues from github, as reporters may think that's a regression
CF CLI contributors are less likely to get support from the community (e.g. to validate the issue was indeed fixed) when this story will be tackled: there currently no way for community to watch a public pivotal tracker (i.e. be notified by email of progress of a story or comments added to it).

Would you consider reopening this issue and closing when the story will be addressed in the backlog ?
Adding tags to issues such as "pr-welcome" or "p3-priority" might be a way to allow lower priority issues to not clutter the issues list while keeping the community engaged on reporting issues and validating fixed
Cf
https://help.github.com/articles/applying-labels-to-issues-and-pull-requests/
https://help.github.com/articles/creating-and-editing-labels-for-issues-and-pull-requests/

Reopened as requested.
You should be able to "watch" updates to stories in the public tracker. You do need to sign in (and sign-up is easy), and then click on the tickbox next to "Follow this story". Please try.
I wasn't able to create a new label - maybe I don't have the right permissions.

thanks @dkoper
I believe even public pivotal trackers don't let non project members follow stories. I retried today with either signed-out or signed-in user (using Firefox 42.0 on windows). I had made the request to the pivotal tracker team for such feature for about 2 years without luck so far. I'd love to be wrong on this as this would be so much easier than regularly polling stories to be updated about their status.

I thought we validated that it was possible but received a reply from Tracker support that indeed it's not. Sorry about that. We'll change our strategy and not close GH issues in favor of Tracker.

Thanks Dies

@gberche-orange We looked into this and found that the CLI is doing the right thing; it's the web UI that is not.
We believe the problem is due to the login form not setting an accept-charset attribute, which means characters like é become something else; in this case, a non-accented e.
We've reached out to the Identity team for a solution.

Identity's story is here: https://www.pivotaltracker.com/n/projects/997278/stories/114531721

We believe that this is fixed in the latest release of UAA
The following commands all worked
CF_TRACE=true cf auth internationalé passwordé

curl -v -u "cf:" --data "grant_type=password&username=internationalé&password=passwordé" -H"Content-Type: application/x-www-form-urlencoded" -H"Accept:application/json" http://localhost:8080/uaa/oauth/toke

 uaac -t token owner get cf internationalé -s "" -p passwordé

All three commands yielded an access token

We believe this issue can be closed as not reproducible with the latest version

Closing as suggested. More details in the Identity story linked to above.
Feel free to re-open or create a new issue (possibly in the UAA tracker) if you still see issues with this.


Feature/services

:rocket: deployed to http://profiles-pr-85.dev.c2s.nhschoices.net

:rocket: deployed to http://profiles-pr-85.dev.c2s.nhschoices.net


chore: whitelist storage items that are read every block

Is there any consequence if a whitelisted storage item is not read every block?

Is there any consequence if a whitelisted storage item is not read every block?

The idea is that benchmarks which use this storage value will not consider that for the final weight since it is already read on_initialize they should be cached. If the item is not read then the benchmark will slightly underestimate the cost.

If all benchmarks ignore it, wouldn't it always underestimate the real cost since it also excludes the first read inside on_initialize? Or is that considered to be neglectable?

I think it's negligible.


docs Fix the information in auditlog plugin documentation

Proposed changes
The information in the document is incomplete, user may be get error message like:
mysql> INSTALL PLUGIN FROM "http://<IP_ADDRESS>:8039/auditloader.zip";
ERROR 1105 (HY000): errCode = 2, detailMessage = http://<IP_ADDRESS>:8039/auditloader.zip.md5. you should set md5sum in plugin properties or provide a md5 URI to check plugin file

Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


As a user, I want to see the cumulative impact score and associated info for communities that are not prioritized, so that I can learn more about how communities are scored

Description
The current version of the tool does not let you select non-prioritized or threshold CBGs to see what their cumulative index score percentile, non-prioritized Categorization, indicators and associated percentiles for those, etc.
Solution
For non-prioritized CBGs, enabled CBG selection and side panel information similar to prioritized and threshold communities
Describe alternatives you've considered
Links to user research or other resources

@janelien confirm design, so it's clear what the Categorization should look like on the side panel for non-prioritized communities, etc.

Tasks

[ ] @janelien confirm design
[ ] Dev enable non-prioritized CBG selection
[ ] Dev implement valid score data to be populated in side panel matching design

Definition of "Done"
Valid cumulative index score percentile, categorization, CBG ID, indicators and percentiles shown for all non-threshold CBGs

Pushed the first part of this change just now , which allows you to interact with non-prioritized communities:
You can test this here: https://d2zjid6n5ja2pt.cloudfront.net/justice40-tool/ccb080/en/cejst/
We still need to add the side panel as well to complete the above requirements, but this is the first part

Design is under Sprint 4 so it's next to the other side panel designs but titled:
J40_Sprint 5_map_not prioritized

Met with Vim and discussed a few small edits.

Changing from title case to sentence case (for Housing burden and Linguistic isolation)
Unemployment to be 'Unemployment rate'
Changing mobile breakpoint to 414px. It's currently at 400px, but 400px doesn't work for iPhone 11s. This would be a temporary fix with a more permanent fix being tackled in the mobile readiness ticket.

We looked at breakpoints and 800px would be good for pretty much all tablets/mobile devices. Tablet view would benefit from being the same as the mobile view.
Overall, it's looking great!

A bit more of what we looked at for reference:
https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design
According to the Worldwide Screen Resolution Stats (Jan 2020 – Jan 2021), the most commonly used resolutions across mobile, desktop, and tablet are:
1920×1080 (8.89%)
1366×768 (8.44%)
360×640 (7.28%)
414×896 (4.58%)
1536×864 (3.88%)
375×667 (3.75%)
and this: https://www.icwebdesign.co.uk/common-viewport-sizes

whoop - were these comments on the correct ticket / did you mean to put them over on https://github.com/usds/justice40-tool/issues/288 ?

yep! just moved them over!


Where can I post issues about the REST API?

Hi
I am having recent stability issues with the REST API for MSTeams. Every now and then I see errors such as

{
u'error': {
u'code': u'ServiceError',
u'message': u'Failure due to: AclCheckFailed.'
}
}

{
u'error': {
u'code': u'ServiceError',
u'message': u'You do not have sufficient privileges to execute this operation.'
}
}

Please can you advice on how to contact the right people/devs at MSTeams to ask for help with these issues?

this seems like the same issue in https://github.com/Microsoft/BotBuilder/issues/4286
Can you please copy this information in the other post?


Addressing timestamp and preserve_index changes in pyarrow

This PR is in response to an issue raised in arrow/PR#4718 - ARROW-5730.  Adding minor changes to test_roundtrip_from_pandas to accound for changes in in pyarrow index-preservation.  Also skipping timestamp conversion for newest version of pyarrow.

[ ] Tests added / passed
[x] Passes black dask / flake8 dask

Thanks @rjzamora!


Resized droplist for station location name and contest name

Resized droplist for station location name and contest name to full width on pages Import/Export ADIF and eQSL Import.
Before resize the width of the droplist was less then station location name width:

After resize it looks better. IMHO

To be honest: 100% width makes the form look a bit odd in my eyes. Maybe we can stretch it to 50%? Would that suit your case?

Done. View with 50% width is still better than 20%. :)

Do you have any idea how to increase the width of the file selector to 50% as well?

Do you have any idea how to increase the width of the file selector to 50% as well?

Will have a look.

Like that?

Like that?

Yes! Perfectly.

Here is the code:
diff --git a/application/views/adif/import.php b/application/views/adif/import.php
index b9dd0a089..a6469b975 100644
--- a/application/views/adif/import.php
+++ b/application/views/adif/import.php
@@ -75,7 +75,9 @@
                             } ?>
                        </select>
                        <?= __("ADIF File") ?>
-                        <input class="form-control mb-2 me-sm-2 w-auto" type="file" name="userfile" id="userfile" size="20" />
+

+                        <input class="form-control mb-2 me-sm-2" type="file" name="userfile" id="userfile" />
+

+
+

Code inserted.  Thank you!

@phl0 and @R1BLH
Why not using the w-auto class by bootstrap?

It's better then fixed width!

I think @HB9HIL's PR in https://github.com/R1BLH/wavelog/pull/1 is a good way to have wider fields and also working on mobile. So if you merge that PR to your branch for this PR I will merge this one uptream.


update contact section of the html  the css styles of the contact se…

add  contact section in the HTML file
add style to the HTML contact section

added the form section
added  an action attribute leading to a FormSpree submission, and a method attribute, with the value POST to indicate that data is been submitted to the database
textarea element is also in between the form element.
As it is in the requirement, all the input fields have the required attribute
add the limitation for maximum length
fixed all aspect of the design to match the Figma design as much as possible
removed the black border around the button, and fix the capitalization of the text in the button.
the buttons also follow the design guidelines, such as enabled, hover, pressed, and disabled


Log links with ?

When a user uses a link that includes the ? instead of the #, we want to log that information. We want to be able to see how many users come to our web app from indexed (and searchable) links.

We already agreed on the syntax.. Please document and close the issue.

We're using "cqp": 1 to indicate the link was using ? instead of #. This is documented in here


Save link to to Integrated Item

Once you start Timetracking for a Irem Integrated you should store a backlink.
i.e. Once I start working on a Redmine Issue, Github Issue, PR etc. I would like a link in the time tracking
record brings me back to the Item I'm worked on

Currently toggl does not support urls. From Toggl Button-s side we could save the url data with the time entry but it would be available only in Toggl Button making it useless as you see no history in Toggl Button.
Other choice would be to add the link to the end of the description. This way the link would be there as a text.

@IndrekV Any chance this could be implemented also on the Toggl website to support this feature? This is something I really liked about tmetric.com app.


maze issues

my maze is not opening , whenever i enter my password it becomes blank again

@Raghib0 Try clearing your local storage and cookies / logging in with an incognito browser. If you're using v0.9.73, you may need to use a https deployment if you installed Mage with pip.


Can't control my CPH1861 device with windos

Screen Mirroring is done but i can able to control my device with windos mouse or keyboard

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#mouse-and-keyboard-do-not-work

I had done USB Deb but then also can't able use it show error in cmd like
[server] WARN: Ignore touch event, it was generated for a different device size

https://github.com/Genymobile/scrcpy/issues/1645#issuecomment-670433990

Using this command i can control with mouse and keyboard
scrcpy --max-size 1024
scrcpy -m1920


[Explore] make Table chart column formatting section dynamic

To reproduce: in Table Raw record mode, when columns are added but user doesn't run the query, they see a line showing in column formatter section.
Formatting section should be part of the dynamic control project, it should only shows when it's applicable.
https://user-images.githubusercontent.com/67837651/118720094-0934a580-b7de-11eb-9a8c-e243218765af.mov

Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please open a new Issue or a PR to address the problem.


🐛 Header - org name should link to home

In the header, the organisation name ("Ministry of Justice") appears to be a link but doesn't go anywhere:

It should be part of the link to home along with the service name ("Find MoJ data"). See e.g. the MoJ Design System header.

https://github.com/ministryofjustice/find-moj-data/pull/849


blink-ripgrep uses 100% of all cpu cores when writing text in buffer

I on a Macbook Air M1 and since one of the latest updates whenever I type anything in a buffer while blink-ripgrep is enabled as a source for blink.cmp it makes all my cpu cores go to 100% and then crash nvim with an out of memory error.
Disabling this plugin as source fixes the issue.
My config is the default one.

Try the section of the readme that explains adjusting performance.
What is your project like? Does it contain a lot of files?
Is it open source?
Is there a clear root directory that your config should be able to find, such as .git?


MN-486: update the Insolar to v1.6.1

- What I did
I have updated the Insolar Platform to v1.6.1
I have updated the insolar-scripts dependency to the last master commit

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #25   +/-   ##
=======================================
  Coverage   15.30%   15.30%
=======================================
  Files           7        7
  Lines        1006     1006
=======================================
  Hits          154      154
  Misses        844      844
  Partials        8        8

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41bcc7a...a824332. Read the comment docs.


Training#1

Practicing by creating two endpoints in app.js file
"/mars"
"/myworld"

I will be working on this issue


feat: swap inter font for open runde

Describe the changes you have made in this PR
Fixes #2612

The path to the font is correct in the builds?

The path to the font is correct in the builds?

Which builds do you mean? The font is correctly displayed in the extension:

👍 can you make a PR for the website, too?

Will do :ok_hand:


Problems running example

Steps I took:

git clone git@github.com:lrettig/react-native-stripe.git
cd react-native-stripe/example
npm install
react-native start
open ios/example.xcodeproj/
hit run (command-r)

What I expected to happen:
I expected the example project to build and run
What actually happened:
Linker errors
Ld /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/example.app/example normal x86_64
    cd /Users/mike/src/react-native-stripe/example/ios
    export IPHONEOS_DEPLOYMENT_TARGET=8.4
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -L/Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator -F/Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator -F/Users/mike/src/react-native-stripe/example/ios/../.. -filelist /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.4 -Xlinker -object_path_lto -Xlinker /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/Stripe/libStripe.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libStripeNative.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libReact.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -Xlinker -dependency_info -Xlinker /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example_dependency_info.dat -o /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/example.app/example

Undefined symbols for architecture x86_64:
  "std::__1::__next_prime(unsigned long)", referenced from:
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
  "std::__1::mutex::lock()", referenced from:
      -[RCTModuleData setUpInstanceAndBridge] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking handlerForRequest:] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler sendRequest:withDelegate:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler cancelRequest:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:dataTask:didReceiveResponse:completionHandler:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      ...
  "std::__1::mutex::unlock()", referenced from:
      -[RCTModuleData setUpInstanceAndBridge] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking handlerForRequest:] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler sendRequest:withDelegate:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler cancelRequest:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:dataTask:didReceiveResponse:completionHandler:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      ...
  "std::__1::mutex::~mutex()", referenced from:
      -[RCTModuleData .cxx_destruct] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking .cxx_destruct] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler .cxx_destruct] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
  "std::terminate()", referenced from:
      ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
  "operator delete[](void*)", referenced from:
      -[RCTJSCExecutor dealloc] in libReact.a(RCTJSCExecutor.o)
      executeRandomAccessModule(RCTJSCExecutor*, unsigned int, unsigned long, unsigned long) in libReact.a(RCTJSCExecutor.o)
      readRAMBundle(std::__1::unique_ptr<__sFILE, int (*)(__sFILE*)>, RandomAccessBundleData&) in libReact.a(RCTJSCExecutor.o)
      RandomAccessBundleData::~RandomAccessBundleData() in libReact.a(RCTJSCExecutor.o)
  "operator delete(void*)", referenced from:
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::~__hash_table() in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__deallocate(std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>*) in libReact.a(RCTJSCExecutor.o)
      ____ZL37installBasicSynchronousHooksOnContextP9JSContext_block_invoke_5 in libReact.a(RCTJSCExecutor.o)
      std::__1::unique_ptr<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>, std::__1::__hash_node_destructor<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*> > > > std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__construct_node_hash<std::__1::pair<unsigned long const, unsigned long> const&>(unsigned long, std::__1::pair<unsigned long const, unsigned long> const&&&) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::erase(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>*>) in libReact.a(RCTJSCExecutor.o)
      RCTSetUpCustomLibraryPointers() in libReact.a(RCTJSCWrapper.o)
      ...
  "operator new[](unsigned long)", referenced from:
      executeRandomAccessModule(RCTJSCExecutor*, unsigned int, unsigned long, unsigned long) in libReact.a(RCTJSCExecutor.o)
      readRAMBundle(std::__1::unique_ptr<__sFILE, int (*)(__sFILE*)>, RandomAccessBundleData&) in libReact.a(RCTJSCExecutor.o)
  "operator new(unsigned long)", referenced from:
      std::__1::unique_ptr<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>, std::__1::__hash_node_destructor<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*> > > > std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__construct_node_hash<std::__1::pair<unsigned long const, unsigned long> const&>(unsigned long, std::__1::pair<unsigned long const, unsigned long> const&&&) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
      RCTSetUpCustomLibraryPointers() in libReact.a(RCTJSCWrapper.o)
      RCTSetUpSystemLibraryPointers() in libReact.a(RCTJSCWrapper.o)
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
  "___cxa_demangle", referenced from:
      ____RCTLogNativeInternal_block_invoke in libReact.a(RCTLog.o)
  "___cxa_guard_acquire", referenced from:
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
  "___cxa_guard_release", referenced from:
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
  "___gxx_personality_v0", referenced from:
      -[RCTJavaScriptContext initWithJSContext:onThread:] in libReact.a(RCTJSCExecutor.o)
      -[RCTJavaScriptContext init] in libReact.a(RCTJSCExecutor.o)
      -[RCTJavaScriptContext invalidate] in libReact.a(RCTJSCExecutor.o)
      +[RCTJSCExecutor runRunLoopThread] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor setBridge:] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor init] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor initWithUseCustomJSCLibrary:] in libReact.a(RCTJSCExecutor.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This was in the latest xcode (8.1). Building default example scheme for iPhone 7 Plus.
Another co-worker tried it as well, and had duplicate results.

@mikelovesrobots  Did you get solution?

I think the library worked great but the example project didn't. It was a half year ago so I don't really remember. Sorry!


node set to hip on axis software not connecting to slimevr

As title says, i drag a node to hip for hip tracking, then when i go to slimevr the node shows up but does not track and eventually disconnects. I tried more than one node to make sure its not just the node and none of them would track.

I believe an update to the AXIS software fixed this behaviour, make sure your AXIS software is up to date.

My axis software is on the latest stable version, 0.12.2

This turned out to be a error by me, i did not make a steamvr profile in the axis software with the hip tracker enabled and once i did slime vr picked it up.


Typo in pyproject.toml

There is a typo in pyproject.toml, where scipy is spelled 'scypi'.

Duplicate of PR I opened.


V2.3 Release Plan

New Features

The Primary Key model supports the full DELETE WHERE syntax
The Primary Key model supports persistent primary key indexes to prevent excessive memory consumption
When a Routine Load job is executed, and a global dictionary is built to optimize queries on low-cardinality columns, the global dictionary can be updated, thus improving query performance.
Stream Load provides a transaction interface that supports splitting the execution of "sending data" and "submitting transaction", enabling two-phase commit of transactions tha stream data by Apache Flink® and improve loading performance with highly concurrency.
The CREATE TABLE AS SELECT statement can be executed asynchronously and write results to a new table.
Support the following resource group-related features:

Monitor resource groups: You can view a query in which resource group from the audit log and call API operations to obtain the monitoring metrics of resource groups.
Limit the consumption of large queries on CPU, memory, or I/O resources: You can route queries to resource groups by matching classifiers or configure session variables to directly specify resource groups for queries.

StarRocks provides JDBC external tables to query Oracle, PostgreSQL, MySQL, SQLServer, Clickhouse, and other databases. StarRocks also supports predicate pushdown when performing queries.
[Preview] A new Data Source Connector framework support user-defined external catalogs. You can use the external catalogs to directly analyze Hive without creating any external tables.
Add the following functions：
window_funnel
ntile
bitmap_union_count
week
Add the EXECUTE AS statement. After you use the GRANT statement to impersonate a specific user identity to perform operations, you can use the EXECUTE AS statement to switch the execution context of the current session to this user.

Improvements

The compaction mechanism can merge large metadata more quickly. This prevents metadata squeezing and excessive disk usage that can occur shortly after frequent data updates.
The performance of loading Parquet files and compressed files is optimized.
The mechanism of creating materialized views is optimized. After the optimization, materialized views can be created at a speed up to 10 times higher than before.
The performance of the following operators is optimized:

TopN and sort operators
Equivalence comparison operators that contain functions can use Zone Map indexes when these operators are pushed down to scan operators.

Optimize the Apache Hive™ external tables.

When Apache Hive™ Table is stored as Parquet, ORC, or CSV format, StarRocks can sync the schema changes like ADD COLUMN and REPLACE COLUMN when users perform REFRESH statement.
Hive resources' hive.metastore.uris can be modified.

Optimize the Elasticsearch external tables: Sniffing the addresses of the data nodes in an Elasticsearch cluster can be disabled.
When the sum() function calculates numeric strings, implicit conversion is performed.
Optimize the GRANT statements.

Use the GRANT statement to grant a role to a user, or to grant user_a the privilege to perform operations as user_b.
Use the REVOKE statement to revoke a role from a user, or to revoke the privilege that allows user_a to perform operations as user_b.

The 8year, month, and day functions support the DATE data type.

Others

StarGo, a cluster management tool, can deploy, start, upgrade, and roll back clusters and manage multiple clusters.
StarRocks clusters can be quickly deployed on AWS by using CloudFormation.

The 2.3 RC version is ready to release now, and the 2.3 formal version will be released after 2 weeks in this month

能支持delete 删除条件子查询吗

expect better

is the primaryKey model support update table in plan list of V2.3 release?

@wangyouzhuo  Does the primaryKey model support update table in plan list of V2.3 release?


Live demo link leads to Not Found page

As in title - demo page doesn't work, it does a redirect to skdev.info domain

@dzek69 thank you for reporting it! It's fixed now, please see demo here


Update participants.yml

add ethereum address for scarletdeth

Awesome, thank you! Merged. Please tell four friends also on the list.


Clean on embedded derby database does not clean triggers

When calling flyway.clean() from our Java application (on derby embedded db) using the maven Flyway plugin (v3.2.1), we get exceptions telling that there still are triggers depending on tables. It seems thus that the triggers are forgotten in the clean.
Exception:
Operation 'DROP TABLE' cannot be performed on object 'table-name' because TRIGGER 'trigger-name' is dependent on that object.
Example script:
CREATE TABLE TEST (
ID INTEGER NOT NULL,
NAME VARCHAR(128) NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE TEST_REFERENCE (
REF_ID INTEGER NOT NULL,
TEST_ID INTEGER NOT NULL,
PRIMARY KEY (REF_ID),
CONSTRAINT FK_TEST_ID FOREIGN KEY (TEST_ID) REFERENCES TEST (ID)
);
CREATE TRIGGER TRG_Del_Test AFTER DELETE ON TEST_REFERENCE
REFERENCING OLD AS EXISTING
FOR EACH ROW MODE DB2SQL
DELETE FROM TEST
WHERE ID = EXISTING.TEST_ID
;
INSERT INTO TEST VALUES (1, 'Test trigger');
INSERT INTO TEST_REFERENCE VALUES (1, 1);

Thank you very much. Your sample script was hugely helpful in creating a test for this. Fixed.


Update Meta “authors”

Automatically generated by Netlify CMS

👷 Deploy Preview for nsharmaxyzblog processing.
🔨 Explore the source changes: e85299e6af6c680c50e7ec714deae05879dd73d5
🔍 Inspect the deploy log: https://app.netlify.com/sites/nsharmaxyzblog/deploys/61b5baa72220d60007ec989c


confusion about skiplist test method

A newer to leveldb，I've read the db/skiplist_test.cc recently and has some confusion about ReadStep method for concurrent test.
WriteStep(..) seem to insert into skiplist among K insert point. ReadStep(..) read  initial_state at begin，and iterate the skiplist to get the newer version in bucket k，in order to compare newer version with initial_state.
So, here occurs some confusion.

The method only take sample read to verify if there some version conflict，but indeed we want a method that check all the insert point to cover all unexpected result.
ReadStep func get the initial_state at the begin, but it does not get the lasted state in later read while loop. That is to say, the function only check the state some time before, instead of check the state immediately after write.

wish you response~
thanks

It seems OK after read again，update some of my understanding.
Here the test case tests the basic Read and Write api，so it is the only way to seek the skiplist and get newest states(some time after insert, not immediately). So, in this perspective, the test case is indeed expected.
Originally, I expect a state that can show skiplist state immediately after the insert.  But that need a point read, not seek read


Support  ansible-runner  2.0.0+

Bug Report

What did you do?
I upgraded to the latest ansible-operator and ansible-runner versions.  I then ran make run via the Makefile generated by the operator-sdk create api.  The ansible-operator would launch and connect but as soon as the socket became available it would try to launch ansible-runner and fail.  The failure was due to ansible-runner > 2.0.0 changing the order required for parameter input.

What did you expect to see?
I'm guessing compatability with ansible-runner > 2.0.0 just simply has not been implemented yet so let me know if a bug is not the appropriate thing to do here.  I expected to see a functional ansible-runner exec via ansible-operator.

What did you see instead? Under which circumstances?
The parameters supplied to ansible-runner via this code block are wrong.  All of them need to be moved.  They should instead be appended after the run command (when and only when ansible-runner version > 2.0.0).

Environment
Operator type:

/language ansible

Kubernetes cluster type:

$ operator-sdk version
operator-sdk version: "v1.9.0", commit: "205e0a0c2df0715d133fbe2741db382c9c75a341", kubernetes version: "1.20.2", go version: "go1.16.5", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:12:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.10", GitCommit:"a84e568eeb56c4e3966314fc2d58374febd12ed7", GitTreeState:"clean", BuildDate:"2021-03-09T14:35:22Z", GoVersion:"go1.13.15 BoringCrypto", Compiler:"gc", Platform:"linux/amd64"}

Possible Solution
Described above.

Additional context

@jwitko thanks for raising awareness.   I've updated the description and move this from a bug to a feature.   Changes to support the evolving eco-system doesn't seem like a bug... it is something we need to explicit design and developer a solution for.  Thanks for the early warning.   It is definitely something we want to look into.

Hi!
Maybe it would be nice to point out that version of ansible-runner should be < 2 also inside starting guide, till you fix the issue.
https://sdk.operatorframework.io/docs/building-operators/ansible/installation/
Since with defaut installation (2.0.1) tutorial does not work. And inside error there is no command line arguments that were used. To get parameters and find out what is going on I needed to use strace, and only after confirming the issue I was able to find this post.
Thanks, Jure!


[BUG] xgcm.transform requires argument axis - not described in API docs

The new function xgcm.transform does not include the required argument axis in the API documentation.
When I pass
grid.transform(vel0, target = rho_axis, target_data=(pd0-1000), method='conservative', mask_edges=True, suffix='_transformed')
I get
TypeError: transform() missing 1 required positional argument: 'axis'
xgcm version and environment: v0.5.0

Good catch @cspencerjones! Relevant docs are here: https://xgcm.readthedocs.io/en/latest/api.html#xgcm.Axis.transform

If you are using the grid method this is actually the right doc https://xgcm.readthedocs.io/en/latest/api.html#xgcm.Grid.transform, which includes the axis as far as I can see. Are you using the latest released version @cspencerjones?

Ahh ok sorry my bad! I was apparently looking at axis.transform rather than grid.transform. This subtlety was lost on me.

Perhaps we should consider removing all the Axis stuff from the public API.

Not a bad idea @rabernat. Could we raise another issue? I can group it in our 'refactor project'


Fix several issues in ´TabBar´

TabBar has long been a flawed node, mainly in how it dealt with offsetting and clipping. This PR fixes those issues.

Fully separate caching from drawing.
Fix center and right alignment being ignored when clipping.
Fix major offset issues:

Active tab sometimes no being shown when resizing.
Offset buttons covering tabs when there are still multiple visible.
Number of tabs shown when clipping being less than it should.
Etc...

Before:

After:

This is a major step in order to bring TabBar to a state worthy of (finally) replacing the current implementation inside TabContainer.

Thanks!


How to access vNext current build?

I have searched and I am unable to find the code for vNext. I looked at the branch but I do not seem to have access to the code. I only see the meta files.

We're not quite ready for people to start using the vNEXT branch just yet.
That being said, if you'd like to help contribute to writing it, pulling the branch should have more than just meta files.  Make sure you don't have any pending changes and clean your git folder before pulling.

I have been trying download as zip from the site.

We don't have any releases for vNEXT availible.

Our first (read: Alpha) release is planned for mid-June.
If you clone and checkout MRTK-Version-Next, you should have code under Assets/MixedRealityToolkit.
Enjoy and as @StephenHodgson says, please feel free to contribute.


[STOPPING]

VSCode Version: 1.16.1
OS Version: Ubuntu 16.04 Gnome

Steps to Reproduce:

Upgrade to the latest version
2.Spend a few minutes programming

After I upgraded it overnight to the latest version available, after a few minutes of code, it hangs, and my Ubuntu asks for it to be forced shutdown.

Reproduces without extensions: Yes

@oeduardoal Can you perhaps give us more steps? What do you do specifically when you spend a few minutes programming?
i.e. Do you launch tasks, do you launch commands in the integrated terminal, do you do debugging, do you do git, do you just type in a file, etc. ?

Likely caused by https://github.com/Microsoft/vscode/issues/34301


Using paste tool (or new template tool) - clearing the canvas causes console errors

Steps to Reproduce

Open browser console
Paste a molecule
Click on "clear canvas"

Actual behavior
Multiple type errors appear in the console
Expected behavior
Errors should not appear in the console
Screenshots

Ketcher version
v2.7.0
Additional context
Add any other context about the problem here.

Issue is NOT reproduced in v2.7.0-rc.9


Add CONTRIBUTING.md

Hey, @kennethlumalicay, I saw your post via linkedin, and would like to help out. I've forked and cloned, but I think a CONTRIBUTING.md would be great, so that I, and others, can be consistent with the code.
Perhaps some instructions on getting everything up and running would be beneficial as well. e.g. fork, clone, npm install, etc. :smiley:

Oops, I should have read the issues first. :confused:

Thanks!


Is it possible to copy to the clipboard from a variable?

Apologies if this isn't the right place for this, I'm new to Github.
When my user clicks a button I run some javascript that generates a string. I'd like to have that string copied to the clipboard. The problem is that at this point the string only exists in a variable and not in an input or data- attribute. I can't seem to figure out if clipboard.js can copy to the clipboard straight from a variable when the string doesn't exist in the document. I suppose I could apply the string to an element first and then copy it to the clipboard, but as I have no use for the string in the document I'd like to skip that and just send it straight to the clipboard when the user clicks a button.

Yes, as seen in the docs:
var copyThis = 'foobar';

new Clipboard('.btn', {
    text: function(trigger) {
        return copyThis;
    }
});

Thank you @codeclown I've also needed this question answered, but being new to Javascript I found it difficult to understand the syntax of your answer in the docs and therefore hard to implement. Is there somewhere I could go to understand this better? (I don't want to waste any more of your time in asking for an explaination)

Thank you! One last question, is it possible to do this same thing without requiring the user to click an element?

Unfortunately no @jimmykup, user interaction is required.

@Adomeister here's a good resource to learn JavaScript: http://bonsaiden.github.io/JavaScript-Garden/

thanks @zenorocha I've only been dabbling for a while but now I would like to make an effort at upgrading my limited knowledge and exposure.

@codeclown

var copyThis = 'foobar';

new Clipboard('.btn', {
    text: function(trigger) {
        return copyThis;
    }
});

Hmm . . . That Doesn't Seem To Work Now.
Sure I Changed It To new ClipboardJS(), But IDK Why ?


Add static representation of configuration options

Contributes towards #1174
Context
This adds traits with values to represent all the options that we are
currently setting in the at.forsyte.apalache.tla.tooling.opt.Cmd*
classes. None of those options are actually transferred over here.
The proposed design uses traits to specify all the options, with the idea that
various subprograms can depend on mixins of the traits to statically declare the
configurations they respond to.
Reviewing
This changeset just prepares the representation of the options, with the aim of
obtaining feedback and clearing the way for the changeogver. The followup PR
will remove the PassOptions class, replacing it with objects that implement
the configuration traits needed by the respective subcommands.

[x] Ran make fmt-fix (or had formatting run automatically on all files edited)
[x] Documentation added for any new functionality
[ ] Rebase once #2023 is merged in

Note this PR is quite small, and reviewing should hold off until the pending PRs it branches off of are merged in and this branch is rebased.


Reduce permissions for pubsub

Remove requirement for project.subscription.list IAM permissions to use validator by using the NOT_FOUND exception. Slightly improve logging (add "no permission" message line)

Updated to take out changes to logging - it's now functionally equivalent just without the need for the project.subscription.list permission requirement. Logging changes inc. debug changes to be addressed seperately


rove lock in crd controller

Summary
Related issue(s)
Fixes #
Tests

[ ] Unit/function tests have been added and incorporated into make unit-tests.
[ ] Integration tests have been added and incorporated into make integration-test.
[ ] E2E tests have been added and incorporated into make e2e-test-all.
[ ] List other manual tests you have done.

/retest

/cc @clyang82

/cherry-pick release-2.12


Ability to restrict any user (other than admin) to be able to CUD for environments

Rancher versions:
rancher/server:v1.6.3-rc2
rancher/agent:rancher/agent:v1.2.3-rc2
**Operating system and kernel: (cat /etc/os-release, uname -r preferred)**Ubuntu
**Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)**AWS/GCE
**Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)**Single node
**Environment Template: (Cattle/Kubernetes/Swarm/Mesos)**Cattle
Steps to Reproduce:

Create an environment and enable auth using git-hub
Create another environment and add another github user as a member
Login as a member and create an environment.

As a member, we can create other environments. We should have a mechanism to restrict any user other than admin from creating environments

Tested with v1.6.3-rc3/rc4. Using user-auth.json and admin-auth.json files below, we can restrict members from creating an environment.
user-auth.json
{
    "authorize" : {
        "project" : "r",
        "end" : ""
    }
}

admin-auth.json
{
    "authorize" : {
        "project" : "crud",
        "end" : ""
    }
}


Avoid unnecessary function declarations and call in pretty-format

Summary
Problem:

printPlugin “hoists” the boundPrint and boundIndent declarations and therefore initializes the functions whether or not a plugin matches the value.
prettyFormat calls createIndent if any plugins exist instead of if some plugin matches the value. Because plugins always exist in Jest, the conditional logic to avoid creating indentation for basic values doesn’t save any time.

Solution:

Factor out a findPlugin function.
Factor out if statement to call printPlugin only if a plugin matches the value.
Call createIndent for arg in printPlugin and printComplexValue function calls.

Your review is especially wanted about the decision to throw an error if a plugin returns a non-string value. Am happy to revert that change if it’s a step in a wrong direction. Current logic quietly falls through to print the value as either basic or complex.
Interpretation of the following performance measurements:

Big improvement for massive object with no plugins outside Jest.
Almost as big improvement with default plugins (not called) inside Jest.
Only slight change for small elements with default plugins (called) inside Jest.

scenario
plugins
proposed
baseline
ratio

geo.json
0
30693309
72540558
0.423

geo.json
10
70169013
127109022
0.552

React elements
10
1283359
1287893
0.996

P.S. The calls to printPlugin are nice example of not ignoring indentation in a diff, heh :)
Test plan
Jest

Codecov Report

Merging #3962 into master will decrease coverage by 0.02%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master    #3962      +/-   ##
==========================================
- Coverage   59.86%   59.84%   -0.03%
==========================================
  Files         196      196
  Lines        6763     6761       -2
  Branches        6        6
==========================================
- Hits         4049     4046       -3
- Misses       2711     2712       +1
  Partials        3        3

Impacted Files
Coverage Δ

packages/pretty-format/src/index.js
97.54% <92.85%> (-0.51%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b079d2a...a875660. Read the comment docs.

This is great, thanks so much for optimizing the code here. How did you track this down, did you do some profiling?
As for throwing an error: while technically a breaking change, the type of the print function of a Plugin is defined to return a string. I think your added constraint in the code makes sense, given that we don't have control over the behavior of user plugins. While it may be beneficial to return another value that will then be printed by prettyFormat, you have the print function available from within plugins so we aren't limiting the functionality of plugins.
Thanks for coming up with this PR!

You’re welcome. Something didn’t feel right in the function when I thought about a code change to support alternative API discussed in https://github.com/facebook/jest/issues/3518#issuecomment-312079575.  The performance improvements are a side effect of making the package more correct and clear where it has been hard for me understand, so a wider range of people might contribute successfully in the future to keep up with ECMAScript and application-specific data types.
When Jest turns 21 people can reasonably expect it to break some things, heh?


Updated readme with setup section.

Description
I have wrote the standard setup for getting started with this project. Please accept these changes and if you find any additional setup settings please add them as well.

#103
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Closing this PR since it's a duplicate of #105


Invalid value for option '--xyz': '' is not an int

For the following code:
@Command(name = "foo", defaultValueProvider = FooCommandDefaultValueProvider.class)
public class FooCommand implements Runnable {

    public static class FooCommandDefaultValueProvider implements IDefaultValueProvider {
        public String defaultValue(ArgSpec argSpec) throws Exception {
            if ("DURATION".equals(argSpec.paramLabel())) {
                return "1200";
            }
            return null;
        }
    }

    @Option(names = "--delay", paramLabel = "DURATION", //
        description = "The delay time in seconds.", //
        arity = "0..1" //
    )
    protected Integer delayDuration;

    // ... more code
}

I would expect:

delayDuration is null if option "--delay" is not specified at all. (this works)
delayDuration is 4000 if option "--delay 4000" is specified. (this works)
delayDuration is 1200 if option "--delay" is specified without parameter where 1200 comes from the default value provider. However in that case I get the error:
Invalid value for option '--duration': '' is not an int

Actually, what happens during a call to parse is this:

First all options and positional parameters are reset to their initial values (field value in the declaration)
Next, default values are applied to all options and positional parameters
Finally, the input is parsed which may result in option and positional parameter values being overwritten with values matched from the command line

So, if the option is not specified on the command line, it should get the default value. I’m surprised you are getting null, that should not happen. Can you run with -Dpicocli.trace=DEBUG` and post the output?
When the option is specified without a value, it is assigned an empty string. You can use a custom typeConverter for that option to convert this empty string to the desired value. See also the discussion in #280 about API to make this more convenient.

Regarding: "When the option is specified without a value, it is assigned an empty string."
When I specify artiy='0..1" I am declaring that the parameter of the option is optional, so why would picocli then try to assign an empty string to as parameter value to the option of type integer?

The idea (see #279 and #280 for background) is that some applications want to distinguish between the option not being specified at all, and the option being specified without a value.
In the latter case, picocli assigns an empty string. This is documented in the user manual: https://picocli.info/#_optional_values
With the current version of picocli, you need to specify a custom converter to replace the empty string with some legal value. This is not the most convenient way, so we’re looking for a better alternative in #280.
By the way, were you able to verify that the default value is assigned when the option isn’t specified altogether?

By the way, any feedback, comments or suggestions related to syntax on #280 are welcome!

I just checked again, you are right, when I don't specify the option, the default value is applied. I must have mixed this up during all the testing.
I am closing this in favor of #280


Flickering Scoreboard Since Updating

What is the output link of /viaversion dump?
https://dump.viaversion.com/dd179511ae6694438930e70fc060d599432da8b2f1470d495e34d3edcf1e8e05
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
BungeeCord Build #1333
How does this error happen? login? Using an item?
All the time
Is there an error in the console? Use pastebin.com. Is there a kick message?
Nope.
Before and after:
Before: No flickering, full messages
1.13, after: https://ibb.co/nqawpJ As you might be able to see, it's supposed to say 'Owner' up top and lots of variables aren't being filled in.

Not really sure what i'm supposed to be looking for, could you elaborate further? Can you also try with the latest version?
Could you try with only ViaVersion + Scoreboard? (Copy server etc)

Ok it seems to have been an issue with BungeeCord. After updating both BungeeCord and ViaVersion the issue has disappeared.


Too many models don't allow datastore syncing

Describe the bug
I have a schema.graphql with 37 model/schema types.  When I run my iOS project and perform an amplify query (which starts the syncing process), I get a tremendous number of messages in the console, but the one appears to be the description of why syncing does not work is:
AppSyncRealTimeClient.AppSyncJSONValue.string("MaxSubscriptionsReachedError"), "message": AppSyncRealTimeClient.AppSyncJSONValue.string(
"Max number of 100 subscriptions reached"
)])])
lient.AppSyncJSONValue.object(["errorType": AppSyncRealTimeClient.AppSyncJSONValue.string("MaxSubscriptionsReachedError"), "message": AppSyncRealTimeClient.AppSyncJSONValue.string("Max number of 100 subscriptions reached")])]))
If I manually comment out all but 1 model in the AmplifyModels.swift so that only that single model registers, then the same code to query and save that model works and the syncing works (so I know I have everything configured properly... I can even manually add a record via AdminUI and see it show up on client).
I saw somewhere you could add @model(subscriptions: null) and I updated my @model attribute to that, and then regenerated the models (and amplify push), but when all 37 models registered (the AmplifyModels.swift got regenerated without my comments) I get the same error about max subscriptions reached.
Question:  Is there a way to specify only the tables that need to be synced?  If not, does that mean data store syncing only works with 33 tables (onCreate, OnUpdate, onDelete = 3 x 33 = 99)?
Environment(please complete the following information):

Amplify Framework Version: 1.5.3
Dependency Manager: Cocoapods
Swift Version: 5.0
CLI Version: 4.45.0

Device Information (please complete the following information):

Device:
iOS Version: iOS 14.4
Specific to simulators:  iPad Simulator - iPad Pro (12.9) - 4th generation

@3m You can define types used in your application as standard GraphQL types, without annotating them as @model. This will allow you to work with generated type code in your application, but will not create local DataStore tables or attempt to sync them. Currently, though, syncing is an all-or-nothing proposition on @models for your app domain--we don't expose a way to treat data as "local-only".
We'll explore options for the max subscription error. Can you provide some more context around your use case for not syncing some models while syncing other ones? What local-only data would you like to be operating with?

I think I have found a work around — if I comment out some of the models in AmplifyModels.swift, it will not try and store them locally, but I can still use Amplify.API.mutate to hit the Appsync graphql endpoint on all of the models and thus update the dynamo db tables.
I don’t really want to to have some local and some not, I was just trying to figure out a way for this to work since currently the max subscription error is preventing it from working at all if there are too many tables.  Some of the tables are accessed much less frequently so I can use the API category for CRUD on those, but ideally I could work with everything locally and let Amplify do it’s magic to get it to the cloud for me.
Thanks much.

On Mar 17, 2021, at 9:47 AM, Tim Schmelter @.***> wrote:
@3m https://github.com/3m You can define types used in your application as standard GraphQL types, without annotating them as @model. This will allow you to work with generated type code in your application, but will not create local DataStore tables or attempt to sync them. Currently, though, syncing is an all-or-nothing proposition on @models for your app domain--we don't expose a way to treat data as "local-only".
We'll explore options for the max subscription error. Can you provide some more context around your use case for not syncing some models while syncing other ones? What local-only data would you like to be operating with?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-ios/issues/1106#issuecomment-801144423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLQCSH77XIXPJVU7IEAPLTEC6I3ANCNFSM4ZI3QJFA.

Is there a work around for schemas with 33+ tables ? I'm getting also the "Max number of 100 subscriptions reached" warning and I get the point where I cannot update my data, either from the admin UI or from my app. Is there anything we can do in this case to avoid subscriptions for just some specific tables ?

This looks related https://github.com/aws-amplify/amplify-js/issues/6260 For anyone coming back here now, this is an AppSync limit, you can request the limit to be increased via support team. (https://github.com/aws-amplify/amplify-js/issues/6260#issuecomment-1133229983)


[FEATURE]: Convert Dockerfiles into templates

Feature Type
Changing existing functionality in the BlueROV2 driver
Problem Description
The existing Dockerfile is beginning to get a bit redundant and is becoming relatively large as a consequence. This makes it difficult to integrate new changes.
Feature Description
Convert the existing Dockerfile into a template which should be built and released using a CD pipeline. It would also be useful to create a dedicated development image which pulls from one of the published images. This would help reduce cycle time when testing new dependencies.
Alternative Solutions
Another alternative could be to break the image down into some smaller images, but I don't believe that this ultimately solves the problem as there would still be a fair amount of boilerplate code.
Additional Context
No response

I'm not convinced that this needs to happen. I would much rather just clean up the Dockerfiles that currently exist and use those. That will make it easier for new users as well.


Add new feature flag to allow RKE1 UI functionality to be hidden

Issue:

#43131
https://github.com/rancher/dashboard/issues/9823
Problem

This PR adds a new feature flag to allow a user to hide the RKE1 functionality in the UI.
Solution

Simple new feature flag in support of the UI work here - https://github.com/rancher/dashboard/issues/9823 and https://github.com/rancher/dashboard/pull/10056
Testing

Testing will be covered by the UI PR.
Engineering Testing
Manual Testing

Automated Testing

Test types added/modified:

Unit - UI Unit tests

QA Testing Considerations

Regressions Considerations

None
Existing / newly added automated tests that provide evidence there are no regressions:
See UI tests

sorry @torchiaf - my bad - updated now

@prachidamle Could we get a review from someone in backend for this, please? FYI @gaktive


unarg_samples/draw_subpasses failing to compile

Hi!
I tried to run it on my machine (ubuntu 20.04) but it failed.
~/go/src/github.com/vkngwrapper/examples/lunarg_samples/draw_subpasses$ go run .
# github.com/vkngwrapper/core/core1_0
/home/dolanor/go/pkg/mod/github.com/vkngwrapper/core@v1.0.1/core1_0/pipeline_createinfo.go:105:49: cannot convert (_Ciconst_VK_NULL_HANDLE) (untyped int constant 0) to type _Ctype_VkPipeline

It looks like all samples will fail because this is a compiler error in vkngwrapper/core - unfortunately, it does build on my machine (windows) so this is probably not going to be an easy fix.
createInfo.basePipelineHandle = (C.VkPipeline)(C.VK_NULL_HANDLE) - this is the line
VK_NULL_HANDLE is a const that exists to be specifically used for that purpose. I can't get to my mac right now to see if I can repro it on that- could you do me a favor and:
A) Verify that go build ./... fails for vkngwrapper/core on your machine
B) See if changing that line to createInfo.basePipelineHandle = (C.VkPipeline)(nil) fixes it?

What arch is your computer, and is it 64-bit? I wonder if this is due to differences in VK_NULL_HANDLE definitions for 32-bit

We spoke offline- this issue has been addressed.  There were also issues with users not being directed to install the Vulkan SDK when onboarding via some paths (for instance, examples repo instead of vulkan-tutorial). That has also been addressed.
The last remaining issue coming up from our conversation is that the LunarG validation messages are CONSIDERABLY noisier than the vulkan-tutorial validation messages. I need to address that.

That's been addressed & I think this is good to close now.


Fix Big Bang example NetworkPolicy CIDRs

What/Why

Change the NetworkPolicy CIDRs back to <IP_ADDRESS>/0 so that the example can work on different Linux distros and other user environments.

I guess we don’t block without tests yet?


OCPBUGS-42434: Reconcile SecretProviderClass for Cloud Provider on ARO HCP

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

Needs the following PR before we can continue with this PR:

https://github.com/openshift/hypershift/pull/4877

/test all


Update network_timezones.txt

Thanks for the pull request! Before a real human comes by, please make sure your PR has all of the below criteria checked

[ ] Give a description on what the PR is for.
[ ] Make sure your PR is based on the DEVELOP branch
[x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review

Please make sure you also read contribution guide and followed all of the steps.
Thanks!

Like I wrote in original request:
No, not 2 timezones, but 'NET5 & VT4' as a single line, I still get:
Missing time zone for network: NET5 & VT4
this is with the master version released today.


Test

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@shawns1,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Hit the wrong branch.

Hi There,
I am the AutoRest Linter Azure bot. I am here to help. My task to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:
File: arm-billing/2017-04-24-preview/swagger/billing.json
Number of linter errors/warnings before the PR: 0
Number of linter errors/warnings after the PR: 0
File: arm-cdn/2016-10-02/swagger/cdn.json
Number of linter errors/warnings before the PR: 0
Number of linter errors/warnings after the PR: 0
File: arm-compute/2017-01-31/swagger/containerService.json
Number of linter errors/warnings before the PR: 0
Number of linter errors/warnings after the PR: 0
Thanks for your co-operation.


fix(connector): [fiuu]fix mandates for fiuu

Type of Change

[ ] Bugfix
[ ] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

This PR fixes following things
-> Required fileds for mandates for fiuu
-> fix check for required fileds for mandates
-> add 3ds cypress 3ds test case
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

added cypress tests

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible

@srujanchikke Fix is required for cypress test to pass(Mandate flow with mandate id). Please assign someone or you can take this as seperate PR. As of now ill merge this.
CC : @pranav-arjunan


[BUG] 表格视图的项为0时，会显示成“-”

🐛 Bug description [Please make everyone to understand it]

🚑 Any additional [like screenshots]

SwanLab Version:v0.3.0

除了0，还有false也会

fixed


WFS 3 alignment: camelCase

WFS 3 uses camelCase for property names. This changes the 2 affected core property names (stac_version and derived_from) to match for consistency.
Refs #305

Agreed that both external and internal consistency is desirable. I skipped the extensions as they've been in use prior to 0.6.0, but with the idea that they'd be aligned longer-term.

Discussed on oct 23 2018 call, decided we are sticking with snake case in core. WFS3 alignment is nice, but it is seen as the api mechanism, while STAC's place is content, so we don't feel like we need to align with their style. Extensions can do what they want.


Fix num_micro_batches when using forward_mbs

What does this PR do ?
Fix the num_microbatches in forward_backward_func when using customized log_prob_forward_micro_batch_size.

When using the default log_prob_forward_mbs = 2 * micro_batch_size, this does not affect num_microbatches.
When using a customized log_prob_forward_mbs, the num_microbatches should be changed accordingly.

Changelog

Please update the CHANGELOG.md under next version with high level changes in this PR.

Usage

You can potentially add a usage example below

# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"
Pre checks:

[ ] Make sure you read and followed Contributor guidelines
[ ] Did you write any new necessary tests?
[ ] Did you add or update any necessary documentation? Make sure to also update the NeMo Framework User Guide which contains the tutorials

Checklist when contributing a new algorithm

[ ] Does the trainer resume and restore model state all states?
[ ] Does the trainer support all parallelism techniques(PP, TP, DP)?
[ ] Does the trainer support max_steps=-1 and validation?
[ ] Does the trainer only call APIs defined in alignable_interface.py?
[ ] Does the trainer have proper logging?

Additional Information

Related to # (issue)

@terrykong this code need on r0.4.0?


Improved Debug Output

Passing --debug to molecule now displays config, environment (separated into ansible and other groups) and ansible-playbook command.

Refactored converge code slightly to remove duplication. Multiple return values weren't being used and were unnecessary.

Question: Does init(autoreset=True) work in our use cases? If no, disregard. If yes, why not using it?

Good find with colorama! I'll take a look at doing that in a future update.

:+1:


Migration was refused connection to the destination. Please check libvirt configurations compatibility and firewall

Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
ISSUE TYPE

Other

COMPONENT NAME

CLOUDSTACK VERSION

CONFIGURATION
3 KVM hosts on Ubuntu 22.04 all are in same subnet.
Zone :- Datacenter-Linux
Pod :- Linux
Clusters :- Linux
enable automatic DRS in global settings and also on the cluster.
Firewall is disable on cloudstack and kvm hosts.
OS / ENVIRONMENT

SUMMARY
2024-11-22 17:34:27,689 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-15:ctx-36934979 job-484/job-485 ctx-bb524027) (logid:1ece315b) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,690 INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-15:ctx-36934979 job-484/job-485 ctx-bb524027) (logid:1ece315b) Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,690 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-15:ctx-36934979 job-484/job-485) (logid:1ece315b) Unable to complete AsyncJobVO: {id:485, userId: 1, accountId: 1, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: rO0ABXNyABpjb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZRdxQXtPtzYqAgAGSgAJc3JjSG9zdElkTAAJY2x1c3RlcklkdAAQTGphdmEvbGFuZy9Mb25nO0wABmhvc3RJZHEAfgABTAAFcG9kSWRxAH4AAUwAB3N0b3JhZ2V0AA9MamF2YS91dGlsL01hcDtMAAZ6b25lSWRxAH4AAXhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAIHQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAABXNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAAAAnNxAH4ABwAAAAAAAAAEcQB-AAlwcQB-AAk, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:<PHONE_NUMBER>61, completeMsid: null, lastUpdated: null, lastPolled: null, created: Fri Nov 22 17:34:26 UTC 2024, removed: null}, job origin:484
com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,698 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-15:ctx-36934979 job-484/job-485) (logid:1ece315b) Complete async job-485, jobStatus: FAILED, resultCode: 0, result: rO0ABXNyAC9jb20uY2xvdWQudXRpbHMuZXhjZXB0aW9uLkNsb3VkUnVudGltZUV4Y2VwdGlvblZNT3AAAAACAwABSQALY3NFcnJvckNvZGV4cgAaamF2YS5sYW5nLlJ1bnRpbWVFeGNlcHRpb26eXwZHCjSD5QIAAHhyABNqYXZhLmxhbmcuRXhjZXB0aW9u0P0fPho7HMQCAAB4cgATamF2YS5sYW5nLlRocm93YWJsZdXGNSc5d7jLAwAETAAFY2F1c2V0ABVMamF2YS9sYW5nL1Rocm93YWJsZTtMAA1kZXRhaWxNZXNzYWdldAASTGphdmEvbGFuZy9TdHJpbmc7WwAKc3RhY2tUcmFjZXQAHltMamF2YS9sYW5nL1N0YWNrVHJhY2VFbGVtZW50O0wAFHN1cHByZXNzZWRFeGNlcHRpb25zdAAQTGphdmEvdXRpbC9MaXN0O3hwcQB-AAh0ALxNaWdyYXRpb24gd2FzIHJlZnVzZWQgY29ubmVjdGlvbiB0byBkZXN0aW5hdGlvbjogcWVtdSt0Y3A6Ly8xOTIuMTY4LjEwMS4xMDAvc3lzdGVtLiBQbGVhc2UgY2hlY2sgbGlidmlydCBjb25maWd1cmF0aW9uIGNvbXBhdGliaWxpdHkgYW5kIGZpcmV3YWxsIHJ1bGVzIG9uIHRoZSBzb3VyY2UgYW5kIGRlc3RpbmF0aW9uIGhvc3RzLnVyAB5bTGphdmEubGFuZy5TdGFja1RyYWNlRWxlbWVudDsCRio8PP0iOQIAAHhwAAAAFnNyABtqYXZhLmxhbmcuU3RhY2tUcmFjZUVsZW1lbnRhCcWaJjbdhQIACEIABmZvcm1hdEkACmxpbmVOdW1iZXJMAA9jbGFzc0xvYWRlck5hbWVxAH4ABUwADmRlY2xhcmluZ0NsYXNzcQB-AAVMAAhmaWxlTmFtZXEAfgAFTAAKbWV0aG9kTmFtZXEAfgAFTAAKbW9kdWxlTmFtZXEAfgAFTAANbW9kdWxlVmVyc2lvbnEAfgAFeHABAAALA3QAA2FwcHQAJmNvbS5jbG91ZC52bS5WaXJ0dWFsTWFjaGluZU1hbmFnZXJJbXBsdAAeVmlydHVhbE1hY2hpbmVNYW5hZ2VySW1wbC5qYXZhdAAHbWlncmF0ZXBwc3EAfgAMAQAACodxAH4ADnEAfgAPcQB-ABB0ABJvcmNoZXN0cmF0ZU1pZ3JhdGVwcHNxAH4ADAEAABWJcQB-AA5xAH4AD3EAfgAQcQB-ABNwcHNxAH4ADAL____-cHQALWpkay5pbnRlcm5hbC5yZWZsZWN0Lk5hdGl2ZU1ldGhvZEFjY2Vzc29ySW1wbHQAHU5hdGl2ZU1ldGhvZEFjY2Vzc29ySW1wbC5qYXZhdAAHaW52b2tlMHQACWphdmEuYmFzZXQABzExLjAuMjVzcQB-AAwCAAAAPnBxAH4AFnEAfgAXdAAGaW52b2tlcQB-ABlxAH4AGnNxAH4ADAIAAAArcHQAMWpkay5pbnRlcm5hbC5yZWZsZWN0LkRlbGVnYXRpbmdNZXRob2RBY2Nlc3NvckltcGx0ACFEZWxlZ2F0aW5nTWV0aG9kQWNjZXNzb3JJbXBsLmphdmFxAH4AHHEAfgAZcQB-ABpzcQB-AAwCAAACNnB0ABhqYXZhLmxhbmcucmVmbGVjdC5NZXRob2R0AAtNZXRob2QuamF2YXEAfgAccQB-ABlxAH4AGnNxAH4ADAEAAABpcQB-AA50ACJjb20uY2xvdWQudm0uVm1Xb3JrSm9iSGFuZGxlclByb3h5dAAaVm1Xb3JrSm9iSGFuZGxlclByb3h5LmphdmF0AA9oYW5kbGVWbVdvcmtKb2JwcHNxAH4ADAEAABXqcQB-AA5xAH4AD3EAfgAQcQB-ACZwcHNxAH4ADAEAAABmcQB-AA50ACBjb20uY2xvdWQudm0uVm1Xb3JrSm9iRGlzcGF0Y2hlcnQAGFZtV29ya0pvYkRpc3BhdGNoZXIuamF2YXQABnJ1bkpvYnBwc3EAfgAMAQAAAo5xAH4ADnQAP29yZy5hcGFjaGUuY2xvdWRzdGFjay5mcmFtZXdvcmsuam9icy5pbXBsLkFzeW5jSm9iTWFuYWdlckltcGwkNXQAGEFzeW5jSm9iTWFuYWdlckltcGwuamF2YXQADHJ1bkluQ29udGV4dHBwc3EAfgAMAQAAADBxAH4ADnQAPm9yZy5hcGFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuTWFuYWdlZENvbnRleHRSdW5uYWJsZSQxdAAbTWFuYWdlZENvbnRleHRSdW5uYWJsZS5qYXZhdAADcnVucHBzcQB-AAwBAAAAN3EAfgAOdABCb3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5pbXBsLkRlZmF1bHRNYW5hZ2VkQ29udGV4dCQxdAAaRGVmYXVsdE1hbmFnZWRDb250ZXh0LmphdmF0AARjYWxscHBzcQB-AAwBAAAAZnEAfgAOdABAb3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5pbXBsLkRlZmF1bHRNYW5hZ2VkQ29udGV4dHEAfgA2dAAPY2FsbFdpdGhDb250ZXh0cHBzcQB-AAwBAAAANHEAfgAOcQB-ADlxAH4ANnQADnJ1bldpdGhDb250ZXh0cHBzcQB-AAwBAAAALXEAfgAOdAA8b3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5NYW5hZ2VkQ29udGV4dFJ1bm5hYmxlcQB-ADJxAH4AM3Bwc3EAfgAMAQAAAlpxAH4ADnEAfgAtcQB-AC5xAH4AM3Bwc3EAfgAMAgAAAgNwdAAuamF2YS51dGlsLmNvbmN1cnJlbnQuRXhlY3V0b3JzJFJ1bm5hYmxlQWRhcHRlcnQADkV4ZWN1dG9ycy5qYXZhcQB-ADdxAH4AGXEAfgAac3EAfgAMAgAAAQhwdAAfamF2YS51dGlsLmNvbmN1cnJlbnQuRnV0dXJlVGFza3QAD0Z1dHVyZVRhc2suamF2YXEAfgAzcQB-ABlxAH4AGnNxAH4ADAIAAARocHQAJ2phdmEudXRpbC5jb25jdXJyZW50LlRocmVhZFBvb2xFeGVjdXRvcnQAF1RocmVhZFBvb2xFeGVjdXRvci5qYXZhdAAJcnVuV29ya2VycQB-ABlxAH4AGnNxAH4ADAIAAAJ0cHQALmphdmEudXRpbC5jb25jdXJyZW50LlRocmVhZFBvb2xFeGVjdXRvciRXb3JrZXJxAH4ASHEAfgAzcQB-ABlxAH4AGnNxAH4ADAIAAAM9cHQAEGphdmEubGFuZy5UaHJlYWR0AAtUaHJlYWQuamF2YXEAfgAzcQB-ABlxAH4AGnNyAB9qYXZhLnV0aWwuQ29sbGVjdGlvbnMkRW1wdHlMaXN0ergXtDynnt4CAAB4cHgAABCadwgAAAAAAAAAAHg
2024-11-22 17:34:27,726 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-6:ctx-b5d1c146 job-484) (logid:1ece315b) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,727 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-6:ctx-b5d1c146 job-484) (logid:1ece315b) Complete async job-484, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Migration was refused connection to destination: qemu+tcp://<IP_ADDRESS>/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts."}
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

@verendrakalsi can you explain bit more instead of just pasting the logs.

not sure why all the details are not showing up, i have updated it.
Anyways.
I have 3 KVM hosts in same subnet and cloudstack mgmt on a different subnet but there is communication between KVM hosts & cloudstack mgmt. There is no firewall in between.
I have enabled DRS at global & cluster level and also they are on same storage as well. However either DRS runs automatic or manual, the VMs doesnt move and i get this error

Actually i am using ubuntu 22.04 as base OS not RHEL and yes Libvirt TCP connection is allowed

@verendrakalsi
can you check /etc/default/libvirtd if it has the following config ?
LIBVIRTD_ARGS="--listen"

Here is the screenshot from one of the server and it is same for all of them.

Here is the screenshot from one of the server and it is same for all of them.

can you remove the line LIBVIRTD_ARGS="" and restart libvirtd ?
if everything works, the output should be same as
# ps -ef|grep libvirtd
root         969       1  0 Oct31 ?        00:20:07 /usr/sbin/libvirtd -l

i have commented the line and i get this output after running the ps command.

@verendrakalsi, can you check that TCP port for libvirt is open?
netstat -lntp | grep libvirtd
this is in my lab

[root@cs-dev-kvm1-4 packages]# cat /etc/libvirt/libvirtd.conf | grep listen_tcp
#listen_tcp = 1
listen_tcp=0
[root@cs-dev-kvm1-4 packages]# virsh -c qemu+tcp://<IP_ADDRESS>/system
setlocale: No such file or directory
error: failed to connect to the hypervisor
error: unable to connect to server at '<IP_ADDRESS>:16509': Connection refused

after changing to listen_tcp=1
[root@cs-dev-kvm1-4 packages]# virsh -c qemu+tcp://<IP_ADDRESS>/system
setlocale: No such file or directory
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

As per the documentation https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#kvm-installation-overview
The both should be '0'
listen_tcp=0
listen_tls=0
However i changed it to this and now migration is working.
listen_tcp=1
listen_tls=0
I am going to load more VMs and see if even automatic is working or not. mostly it should.

As per the documentation https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#kvm-installation-overview The both should be '0' listen_tcp=0 listen_tls=0
However i changed it to this and now migration is working. listen_tcp=1 listen_tls=0
I am going to load more VMs and see if even automatic is working or not. mostly it should.

did you add the host via cloudstack UI ?
it looks like your host is unsecure. you can go to host details and click "provision host security keys" which will secure cloudstack-agent and libvirtd with certificates.
please refer to https://docs.cloudstack.apache.org/en/latest/adminguide/hosts.html#securing-process

yes i did added it via cloudstacck UI and yes it was unsecure.
I just secured it on all the hosts.
Thank you for this information


chore(package): update micro to version 9.3.2

:tada: This PR is included in version 1.0.9 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature Request: Additional empty slots

It would be nice to have additional empty slots between each of the main slots like overview and overview-api-description allowing you to add additional content between each slot.
In our scenario we want to add a Download OpenApi Specification button between the overview and overview-api-description slot, however this doesn't appear to be possible without overwriting the entire contents of the overview which we are hoping to avoid.
My suggestion would be empty before and after slots for each existing slot (where it makes sense). So before-overview, after-overview, before-overview-api-description, after-overview-api-description  etc

In 2.1.656 there are three new slots: https://github.com/Authress-Engineering/openapi-explorer/blob/release/2.1/docs/documentation.md#slots


"Operating Systems - Prof. Subhashis Banerjee, IIT Delhi" is a course page

There's an Operating Systems - Prof. Subhashis Banerjee, IIT Delhi in Operating Systems section of the free-programming-books.md, however, it's a course page rather than a book online. What's more, many links in that page, including some web resources, are no longer available now. So, I think it would be better to remove it or put it elsewhere.

#1448 was merged in by @vhf
title suggests lecture notes but clicking on the link i just see links to tests and quizzes
maybe we move this to another file, though im not sure if it fits in free-courses-en.md either