-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Update Azure Storage SDK to v12, add logging for Azure Blob storage directory #198
Closed
Closed
Changes from 43 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
688b287
POC of nomerge, no write for readonly event for v1
a5f09bf
add more security on missing files
dbd12f1
ver
16c3429
Merge remote-tracking branch 'github.com/v1.0.6' into bugfix/azure-bl…
0f58a0e
semi working ver
c4edc82
make no merge sheduler public
e342c4a
create proper readonly DIrectory with aliasing for time of resync
e53d62a
correct versions
d439b77
Merge remote-tracking branch 'github.com/master' into bugfix/azure-bl…
62f0fb9
move definition to new interface
23257d7
Separate method from new interface to new Factory
1ccbdec
removed unsed code and definitions
5ebc18e
correct definition
35afc28
correct nuspec and directory
9ee49ac
Fix ruleset so this builds
nzdev be6ccb7
Update blob storage package as previous obsolete. Add logging extensi…
nzdev fb79db7
Add logging
nzdev 2993a68
Deduplicate isreadonly
nzdev 2b60857
don't change name unintentionally
nzdev 0d80363
logging for lock errors
nzdev 9fb1f56
Renamed AzureDirectory to AzureLuceneDirectory to avoid conflicts wit…
nzdev b7af836
revert overwrite
nzdev 66a16d9
Tests run (with possible bugs) in azurite
nzdev 8c94405
allow overwrite
nzdev df80409
More extensibility
nzdev e0f5504
update nuspec
nzdev 7e65b23
update nuspec dependencies
nzdev abd1216
bugfix. update nuspec
nzdev 005632c
Prevent indexwriter's merge scheduler being replaced.
nzdev 19feb3a
refactor
nzdev 31176c5
optimize when Indexwriter is created to avoid creating twice due to d…
nzdev 07770fd
Add test for readonly azuredirectory. Fix getallblobfiles.
nzdev b4f720c
more logging. More virtual methods so fault handling / retries can be…
nzdev 26add11
revert changes to createnewindex
nzdev 6f7177a
revert exists check to save on transactions.
nzdev 2da83a6
Remove microsoft.logging. Use Trace for logs instead.
761826b
change version number
a636d95
just needs to stop writing the .lock file in the readonly cache
b6043f2
test passes
4d119d5
Fix test
3f0ea94
wip, use a manifest
0e469fb
disable writes for readonly indexes. Fix decompression.
5f069ce
fix documentwriting event
7086766
Remove cachedirectory from examinedirectory
8f1431c
remove commented out code
805b5c7
merge
nzdev 311f347
test fix
nzdev c4f9483
Fix lock name (bielu). Catch exception for empty old sync dir
nzdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<build> | ||
<project id="Examine" version="1.0.6"/> | ||
<project id="Examine.AzureDirectory" version="1.0.0-beta07"/> | ||
</build> | ||
<project id="Examine" version="1.0.7"/> | ||
<project id="Examine.AzureDirectory" version="1.0.0-beta08"/> | ||
</build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Azure.Storage.Blobs; | ||
using Lucene.Net.Store; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Examine.AzureDirectory | ||
{ | ||
public class AzureIndexInputFactory : IAzureIndexInputFactory | ||
{ | ||
public IndexInput GetIndexInput(AzureLuceneDirectory azuredirectory, BlobClient blob) | ||
{ | ||
return new AzureIndexInput(azuredirectory, blob); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Azure.Storage.Blobs; | ||
using Lucene.Net.Store; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Examine.AzureDirectory | ||
{ | ||
public class AzureIndexOutputFactory : IAzureIndexOutputFactory | ||
{ | ||
public IndexOutput CreateIndexOutput(AzureLuceneDirectory azureDirectory, BlobClient blob, string name) | ||
{ | ||
return new AzureIndexOutput(azureDirectory, blob, name); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to catch this and then just re-throw? Or is this just for debugging if breakpointing?