Skip to content

Comments

SAI-4486: force update collection if is missing #1776

Closed
noblepaul wants to merge 1030 commits intoapache:mainfrom
cowpaths:noble/force_update_coll
Closed

SAI-4486: force update collection if is missing #1776
noblepaul wants to merge 1030 commits intoapache:mainfrom
cowpaths:noble/force_update_coll

Conversation

@noblepaul
Copy link
Contributor

No description provided.

NazerkeBS and others added 30 commits January 10, 2023 00:47
…pache#1239)

Co-authored-by: Nazerke Seidan <nseidan@salesforce.com>
Co-authored-by: Kevin Risden <krisden@apache.org>
(cherry picked from commit bb94e78)
* Changed indent size for state.json file from 2 to 0

* updated test. Set default indent to 0

* Update test to remove log message.

Co-authored-by: Hitesh Khamesra <hiteshk25@yahoo.com>
Co-authored-by: hitesh <hitesh@fullstory.com>
Prior to this commit, the "disable.v2.api" flag covered some aspects of
request routing, but wasn't consulted during requestHandler
parsing/bootstrapping or CoreContainer initialization.

This commit creates a small utility method in V2ApiUtils to simplify
the enabled/disabled check, and uses it in a few additional places to
make sure Solr isn't doing any unnecessary work when v2 has explicitly
been turned off.
Co-authored-by: Eric Pugh <epugh@opensourceconnections.com>
…e#1177)

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
noblepaul and others added 24 commits April 21, 2023 15:20
* Allowing for distinct Solr SSL port so that http and https can exist side by side

* Adding redirect on http call

* Attempting to exclude metrics and health endpoints from SSL

* Attempting to exclude metrics and health endpoints from SSL

* Adding ability to set a secure port as well as a host port and using the secure port of the urlscheme is https

* Fixing string equality

* Handling cases where only https is used so secure port isn't set differently

* Adding secureHostPort to solr xml config parsing

* Fixing break
* For select/get query, adjust the description in PrometheusMetricsServlet to describe the new definition of distributed/local metrics

for udpate request, add a new [local] metrics so it's consistent with 8.x

* Fixed unit test case
…n" (#97)

* Revert "Avoid unnecessary map creation while serializing DocCollection"

This reverts commit 2ac7ed2.

SOLR-16753: SplitShardWithNodeRoleTest.testSolrClusterWithNodeRoleWithPull failures

* minor fix

---------

Co-authored-by: Noble Paul <noble.paul@gmail.com>
…ly do not want that returned unless specifically added as an fl param (#98)

* Ignoring _version_ field for glob patterns on export since we typically do not want that returned unless specifically added as an fl param

* Using CommonParams property and adding test

* Tidying code

* Fixing message for test
* Fixed metrics for update requests

* Fixed unit test case
* Adding Breakpoint injection to CommonTestInjection

* ./gradlew tidy

* Fixed javadoc

* Fixed race condition for PRS collection on deletion

Added unit test case in ZkStateReaderTest#testDeletePrsCollection

* ./gradlew tidy

* Separate the exception handling of NoNodeException and PrsZkNodeNotFoundException as their conditions/handling are quite different.

* Fixed Execution failed for task ':solr:solrj-zookeeper:validateLogCalls'.

* ./gradlew tidy

* Fixed validateLogCalls
* Fixed breakpoint cleanup

* ./gradlew tidy
* Ensuring coordinator role can work when enabled on mulitple nodes

* Improving logic for creating coordinator node cores

* Using constant for coordinator collection
* Updating SelectStream to handle glob patterns

* Tidying code

* Ensuring initialization of glob patterns list in constructor
Co-authored-by: Michael Gibney <michael@michaelgibney.net>
(cherry picked from commit 658889c)
* Fixed missing rid in SearchHandler log message

* ./gradlew tidy
…r Node upon collection deletion (apache#1754)

* CoordinatorHttpSolrCall should remove collection from mapping upon collection deletion

* Updated CHANGES.txt

---------

Co-authored-by: Justin Sweeney <justinsweeney@fullstory.com>
ports changes from:
fullstorydev/lucene-solr#204 (60964ece8abc1e7e838b9a8f1e54ff7f4505d91d)
fullstorydev/lucene-solr#207 (ee264220729490da81916af8c2ae23c5e4e52718)
fullstorydev/lucene-solr#208 (20b2b694c223723c6e80c2344b401772c67221ce)
fullstorydev/lucene-solr#209 (8835c4d0b4d90de90559c380dab8e51a0ee895a6)

along with updates to compile against branch_9x

(cherry picked from commit 0df9c08)
@noblepaul noblepaul closed this Jul 12, 2023
print(' Running techproducts example on port 8983 from %s' % binaryDistPath)
try:
if not cygwin:
runExampleStatus = subprocess.call(['bin/solr','-e','techproducts'])
Copy link

Choose a reason for hiding this comment

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

7% of developers fix this issue

B607: Starting a process with a partial executable path


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

print(' Running techproducts example on port 8983 from %s' % binaryDistPath)
try:
if not cygwin:
runExampleStatus = subprocess.call(['bin/solr','-e','techproducts'])
Copy link

Choose a reason for hiding this comment

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

6% of developers fix this issue

B603: subprocess call - check for execution of untrusted input.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

rev = open('%s/solr/distribution/build/release/.gitrev' % root, encoding='UTF-8').read()

dir = 'solr-%s-RC%d-rev-%s' % (version, rcNum, rev)
os.makedirs('%s/%s/solr' % (localDir, dir))
Copy link

Choose a reason for hiding this comment

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

3% of developers fix this issue

E111: indentation is not a multiple of 4

❗❗ 4 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
dev-tools/scripts/buildAndPushRelease.py 230
dev-tools/scripts/smokeTestRelease.py 543
dev-tools/scripts/smokeTestRelease.py 739
dev-tools/scripts/smokeTestRelease.py 1125

Visit the Lift Web Console to find more details in your report.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

print(' Running techproducts example on port 8983 from %s' % binaryDistPath)
try:
if not cygwin:
runExampleStatus = subprocess.call(['bin/solr','-e','techproducts'])
Copy link

Choose a reason for hiding this comment

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

2% of developers fix this issue

E231: missing whitespace after ','


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

print(' Running techproducts example on port 8983 from %s' % binaryDistPath)
try:
if not cygwin:
runExampleStatus = subprocess.call(['bin/solr','-e','techproducts'])
Copy link

Choose a reason for hiding this comment

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

2% of developers fix this issue

E231: missing whitespace after ','


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.