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

update files in distributed mode to use hash #761

Merged
merged 10 commits into from
Apr 19, 2024

Conversation

Eshanatnight
Copy link
Contributor

@Eshanatnight Eshanatnight commented Apr 16, 2024

Needs to be rebased after #760 merge

@@ -105,6 +105,7 @@ hashlru = { version = "0.11.0", features = ["serde"] }
path-clean = "1.0.1"
prost = "0.12.3"
prometheus-parse = "0.2.5"
sha2 = "0.10.8"
Copy link
Member

Choose a reason for hiding this comment

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

why not use ulid that we use for deployment ids?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am hashing the timestamp, so I needed sha2

@nitisht
Copy link
Member

nitisht commented Apr 16, 2024 via email

@Eshanatnight Eshanatnight force-pushed the file-with-hash branch 2 times, most recently from 4bcbc13 to 7ce300f Compare April 18, 2024 09:40
@nitisht nitisht merged commit 8e710f2 into parseablehq:main Apr 19, 2024
6 checks passed
@Eshanatnight Eshanatnight deleted the file-with-hash branch April 19, 2024 07:19
nikhilsinhaparseable added a commit to nikhilsinhaparseable/parseable that referenced this pull request Apr 20, 2024
This PR ensures all metadata and data files (json and parquet) use 
a simple sha256 based hash name mechanism. Each ingestor 
allocates itself a unique hash which is used in all file names
relevant to that ingestor. This hash is persisted in metadata file
content also and is supposed to be the same for the lifecycle 
of the ingestor.
---------

Co-authored-by: Nikhil Sinha <[email protected]>
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.

3 participants