ASF Bugzilla – Attachment 22166 Details for
Bug 45261
Concurrent node failure leads to inconsistent views.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Demonstrate view inconsistency.
View3Demo.java (text/x-java), 848 bytes, created by
Robert Newson
on 2008-06-23 14:13:00 UTC
(
hide
)
Description:
Demonstrate view inconsistency.
Filename:
MIME Type:
Creator:
Robert Newson
Created:
2008-06-23 14:13:00 UTC
Size:
848 bytes
patch
obsolete
>package com.ironmountain.bedrock.groups.demo; > >import java.util.Arrays; > >import org.apache.catalina.tribes.Channel; >import org.apache.catalina.tribes.Member; >import org.apache.catalina.tribes.UniqueId; >import org.apache.catalina.tribes.group.GroupChannel; >import org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator; > >public class View3Demo { > > public static void main(final String[] args) throws Exception { > final GroupChannel c = new GroupChannel(); > final NonBlockingCoordinator coord = new NonBlockingCoordinator() { > > @Override > protected void viewChange(UniqueId viewId, Member[] view) { > System.out.printf("new view: %s\n", viewId); > } > }; > > c.addInterceptor(coord); > c.start(Channel.DEFAULT); > > while (true) { > System.out.printf("current view: %s\n", coord.getViewId()); > Thread.sleep(5000); > } > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45261
: 22166 |
22179