Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLR-13655:Upgrade Collections.unModifiableSet to Set.of and Set.copyOf #817

Merged
merged 3 commits into from
Aug 23, 2019

Conversation

atris
Copy link
Contributor

@atris atris commented Aug 2, 2019

No description provided.

@atris
Copy link
Contributor Author

atris commented Aug 6, 2019

Any thoughts on this? Seems safe enough to merge?

@atris
Copy link
Contributor Author

atris commented Aug 23, 2019

Gentle Ping

@tflobbe
Copy link
Member

tflobbe commented Aug 23, 2019

Thanks @atris. Changes look good to me, however, I think there are a couple more cases that we could change:

  • ConfigNameConstants
  • Variable.Type
  • SolrRequest
  • ZkStateReader.KNOWN_CLUSTER_PROPS

@atris
Copy link
Contributor Author

atris commented Aug 23, 2019

@tflobbe Thanks, for some reason, my grep command missed those ones. Updated the PR with the same.

Copy link
Member

@tflobbe tflobbe left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM, but I think some of the copyOf calls could actually be of. let me know what you think

@atris
Copy link
Contributor Author

atris commented Aug 23, 2019

@tflobbe Thanks. I was slightly unsure about whether these sections actually need an immutable copy of the original set (by their usage patterns), hence was being conservative by doing copyOf instead of of(). However, post your comment, I looked at the call sites of these methods and they look to be fine with an immutable reference, so changed the calls.

@tflobbe tflobbe merged commit 19aecb0 into apache:master Aug 23, 2019
@tflobbe
Copy link
Member

tflobbe commented Aug 23, 2019

Thanks @atris! squashed/merged

@atris
Copy link
Contributor Author

atris commented Aug 24, 2019

Thanks @tflobbe !

MarcusSorealheis added a commit to MarcusSorealheis/lucene-solr that referenced this pull request Aug 27, 2019
…cusSorealheis/lucene-solr into enhancement_blockUnkwon-default-true

* 'enhancement_blockUnkwon-default-true' of github.com:MarcusSorealheis/lucene-solr: (37 commits)
  SOLR-13699 - maxChars no longer working on CopyField with javabin
  SOLR-13699 - maxChars no longer working on CopyField with Javabin
  SOLR-13655: Fix precommit
  SOLR-11601: Improve geodist error message when using with LLPSF.
  SOLR-13655: Added CHANGES entry
  SOLR-13655:Upgrade Collections.unModifiableSet to Set.of and Set.copyOf (apache#817)
  SOLR-13702: Fix precommit
  SOLR-13702: Some components register twice their metric names (apache#834)
  LUCENE-8952: Use a sort key instead of true distance in NearestNeighbor. (apache#832)
  SOLR-13707: API to expose the currently used package name, details for each plugin
  SOLR-13707: API to expose the currently used package name, details for each plugin (apache#841)
  Additional logging in test framework methods that 'waitFor' something to better trace order of operations when failures occur
  SOLR-13257: Support deterministic replica routing
  SOLR-13706: Config API output is broken for "highlight" component
  LUCENE-8755: Spatial-extras quad and packed-quad trees now index  points a little faster, and also fix an edge case bug.  Fixes apache#824
  removed unnecessary comments
  SOLR-13650: AwaitsFix TestContainerReqHandler.testCacheFromGlobalLoader
  SOLR-13650:ref guide typo
  SOLR-13704: correct error codes for client errors in expand component
  SOLR-13650: ref guide
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants