Questions tagged [isolation]

258 questions
544
votes
10 answers

Spring @Transactional - isolation, propagation

Can someone explain what isolation & propagation parameters are for in the @Transactional annotation via real-world example? Basically when and why I should choose to change their default values.
MatBanik
  • 26,356
  • 39
  • 116
  • 178
38
votes
5 answers

How to really isolate stylesheets in the Google Chrome extension?

I wrote a Google Chrome extension, which popups a dialog with an autocomplete field and it's own style, but there are some sites where my CSS gets totally broken, which doesn't look very nice. I know about isolating styles with iFrames, but in…
smileart
  • 1,598
  • 1
  • 15
  • 17
27
votes
2 answers

Safe execution of untrusted Haskell code

I'm looking for a way to run an arbitrary Haskell code safely (or refuse to run unsafe code). Must have: module/function whitelist timeout on execution memory usage restriction Capabilities I would like to see: ability to kill thread compiling…
Tener
  • 5,280
  • 4
  • 25
  • 44
20
votes
4 answers

How to achieve test isolation testing Oracle PL/SQL?

In Java projects, JUnit tests do a setup, test, teardown. Even when mocking out a real db using an in-memory db, you usually rollback the transaction or drop the db from memory and recreate it between each test. This gives you test isolation since…
Bill
  • 201
  • 2
  • 3
20
votes
5 answers

Isolate execution of JavaScript

One of the limitation of JS that bugs me the most is the poor ability to isolate code's execution. I want to be able to control the context in which the code is executed, Something that achieve a similar effect to what Script.createContext &…
Raweden
  • 319
  • 2
  • 5
17
votes
5 answers

How to isolate different javascript libraries on the same page?

Suppose we need to embed a widget in third party page. This widget might use jquery for instance so widget carries a jquery library with itself. Suppose third party page also uses jquery but a different version. How to prevent clash between them…
sha1dy
  • 980
  • 2
  • 11
  • 27
16
votes
0 answers

vstest.console.exe execution model and isolation behaviors

I'm trying to determine the considerations that should be made when writing tests that are going to run under vstest.console.exe. Example 1: Let's say that I have two tests both of which rely on MyClass.Singleton.Counter having a value of zero. Now…
Kaleb Pederson
  • 45,767
  • 19
  • 102
  • 147
15
votes
6 answers

Should transactions be specified outside a stored procedure or inside?

We can wrap a call to a stored procedure in a transaction and specify an isolation level. Or we can put the transaction inside the stored procedure specify an isolation level there. Which is it better to do?
tpower
  • 56,100
  • 19
  • 68
  • 100
15
votes
2 answers

Isolated RazorEngine failing to pass model to different AppDomain

When I render my template without the EditHistory member, this works. However, when I add that additional member that is within my application I get an exception Could not load file or assembly 'Models, Version=1.0.0.0, Culture=neutral,…
Sam
  • 4,219
  • 7
  • 52
  • 80
15
votes
3 answers

Isolation in Vagrant vs. Docker

Why is Vagrant not considered an isolation, and Docker is, when Vagrant run a new OS and isolates everything in there? What is meant by isolation when one says: "if you're looking for isolation, use Docker"?
darksky
  • 20,411
  • 61
  • 165
  • 254
9
votes
1 answer

@Transactional propagation on private methods

I have the following code: @Service public class MyService implements IMyService { @Inject IAnotherService anotherService; // injects go here // some code @Transactional(isolation=Isolation.SERIALIZABLE) public Result…
dantebarba
  • 1,396
  • 1
  • 12
  • 22
8
votes
3 answers

How to isolate user sessions in a Java EE?

We are considering development of a mission critical application in Java EE, and one thing that really impressed me is the lack of session isolation in the platform. Let me explain the scenario. We have a native Windows application (a complete ERP…
fernacolo
  • 7,012
  • 5
  • 40
  • 61
8
votes
5 answers

Build environment isolation and file system diffing

Alright so after trying to chase down the dependencies for various pieces of software for the n-th time and replicating work that various people do for all the different linux distributions I would like to know if there is a better way of bundling…
David K.
  • 6,153
  • 10
  • 47
  • 78
8
votes
1 answer

Pin processor CPU Isolation on Windows

In linux where I work mostly, we use a technique called CPU isolation, that effectively locks a process on to a processor and also prevents the processor from running anything else. Our kernel guys did some magic to handle the interrupts. In…
user805547
  • 1,245
  • 1
  • 15
  • 23
7
votes
1 answer

Deadlock on SELECT/UPDATE

I'm having a problem with deadlock on SELECT/UPDATE on SQL Server 2008. I read answers from this thread: SQL Server deadlocks between select/update or multiple selects but I still don't understand why I get deadlock. I have recreated the situation…
empi
  • 15,755
  • 8
  • 62
  • 78
1
2 3
17 18