question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-scope ReaderGroup

See original GitHub issue

Problem description This issue relates to a feature improvement that would allow an RG to read streams across numerous scopes. For example, we may wish to create an RG that reads from ‘A/Foo’ and ‘B/Bar’ (where ‘A’ is a scope and ‘Foo’ is a stream).

For another example, imagine a scenario where a scope ‘A’ contains a stream that is writable by party ‘X’ and readable by party ‘Y’, with the additional constraint that ‘Y’ is disallowed from writing or creating streams in ‘A’. Assume that ‘Y’ is allowed to create and write streams in another scope ‘B’.

Suggestions for an improvement Option 1: Rework ReaderGroupManager interface to accept fully-qualified stream names. e.g.:

interface Stream { String getScope(); String getStreamName(); }

interface ReaderGroupManager {
  ReaderGroup createReaderGroup(String groupName, ReaderGroupConfig config, Set<Stream> streamNames);
}

Option 2: Add scope to ReaderGroupConfig to override the scope associated with the data stream(s). This option would allow for an RG to use a different scope for its sync stream, but would not solve the general problem.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shridscommented, Apr 4, 2018

With PR: https://github.com/pravega/pravega/pull/2374 getting in, ReaderGroupConfig#stream method now expects a full qualified stream name or a Stream object. This implies that a Readergroup can read from multiple streams across various Scopes. For e.g:

ReaderGroupManager groupManager = ReaderGroupManager.withScope("scope1", ...);
ReaderGroup rg = groupManager.createReaderGroup( "rg1", 
ReaderGroupConfig.builder().stream("scope1/StreamA").stream("scope2/StreamB", startStreamCut).build());
//streams from  scope1 and scope2 can be configured to be part of readergroup.

Note: Related issue https://github.com/pravega/pravega/issues/2397 is still present. i.e. the current code expects a scoped stream name (scope/streamName) as part of the ReaderGroupConfig. Once issue 2397 is resolved , the default scope (scope1 in the above e.g) will be used if the scoped stream name is not provided to the ReaderGroupConfig. (i.e. if just “streamx” is provided then it will be considered as “scope1/streamx”)

0reactions
EronWrightcommented, Jun 26, 2018

This feature is done AFAIK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiscope - Zibra Corp
The Multiscope platform is a compact, easy to use borescope system which allows users to easily interchange scope types. The cable free borescope...
Read more >
Multiscope | Fallout Wiki - Fandom
The multiscope is a junk and quest item in the Fallout 76 update Wastelanders. Multiscopes are used in biohazard research by the medical...
Read more >
(PDF) Overview of Bacterial Pathogens Affecting Companion Birds ...
Abstract Bacterial pathogens affecting birds are numerous. This paper covers many of the species that affect companion birds and the antibiotics most ...
Read more >
Multiscope 3 - Universal Medical Instruments
A basic 5 Parameter Patient Monitor with possible up-gradations Flawless and accurate monitoring of all parameters. Capable of monitoring in low perfusion and ......
Read more >
Full text of "BYTE Volume 16 Number 11" - Internet Archive
Who else is in the reader group? Docs it cite other people whose work I know? How much does it cost? How much...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found