Skip to content

Convert Tagsync into webapp and add metrics - #1107

Open
Sanket-Shelar wants to merge 3 commits into
apache:masterfrom
Sanket-Shelar:RANGER-4153-Tagsync-webapp-docker
Open

Convert Tagsync into webapp and add metrics#1107
Sanket-Shelar wants to merge 3 commits into
apache:masterfrom
Sanket-Shelar:RANGER-4153-Tagsync-webapp-docker

Conversation

@Sanket-Shelar

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Converted tagsync into webapp, made changes to start tagsync in docker with webapp and added metrics for tagsync

How was this patch tested?

Local build passed and tested tags are syncing in docker


RANGER-4153: Ranger Tagsync - Convert to Web Application
RANGER-5706: Support for Tagsync as Webapp in Docker
RANGER-5707: Add/ Update metric details for Ranger TagSync

import java.util.List;
import java.util.Map;

public class EmbeddedServer {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Try to use existing embedded webserver rather copying and introducing one more.

@Sanket-Shelar
Sanket-Shelar force-pushed the RANGER-4153-Tagsync-webapp-docker branch from 30b1dea to 7dc5afe Compare August 24, 2026 10:45
LOG.debug("==> AtlasRESTTagSource.run()");

while (true) {
StopWatch eventStopWatchRest = new StopWatch().start();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it seems updateTotalUploadsTime(timeElapsed) runs every loop iteration and includes the full sleep interval, not just upload work. Metric name suggests upload time but measures cycle time.

@@ -183,6 +187,11 @@ public void run() {
LOG.debug("==> This server is running passive mode");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this should be part of else block ?

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.

2 participants